Peter Boström | 62e9bda | 2015-11-23 15:12:06 +0100 | [diff] [blame] | 1 | # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license |
| 4 | # that can be found in the LICENSE file in the root of the source |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
| 8 | |
| 9 | import("//build/config/features.gni") |
| 10 | import("//testing/test.gni") |
| 11 | |
| 12 | static_library("webrtc_fuzzer_main") { |
Henrik Lundin | fe32a76 | 2015-12-08 11:27:27 +0100 | [diff] [blame^] | 13 | public_configs = [ "../..:common_inherited_config" ] |
Peter Boström | 62e9bda | 2015-11-23 15:12:06 +0100 | [diff] [blame] | 14 | sources = [ |
| 15 | "webrtc_fuzzer_main.cc", |
| 16 | ] |
| 17 | deps = [ |
Peter Boström | 89d658f | 2015-11-25 21:58:36 +0100 | [diff] [blame] | 18 | "../../system_wrappers:field_trial_default", |
Peter Boström | 871c419 | 2015-11-26 14:52:23 +0100 | [diff] [blame] | 19 | "../../system_wrappers:metrics_default", |
Peter Boström | 62e9bda | 2015-11-23 15:12:06 +0100 | [diff] [blame] | 20 | "//testing/libfuzzer:libfuzzer_main", |
| 21 | ] |
| 22 | } |
| 23 | |
| 24 | test("vp9_depacketizer_fuzzer") { |
| 25 | sources = [ |
| 26 | "vp9_depacketizer_fuzzer.cc", |
| 27 | ] |
| 28 | deps = [ |
| 29 | ":webrtc_fuzzer_main", |
| 30 | "../../modules/rtp_rtcp", |
| 31 | ] |
| 32 | if (is_clang) { |
| 33 | # Suppress warnings from Chrome's Clang plugins. |
| 34 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 35 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 36 | } |
| 37 | } |
Peter Boström | 871c419 | 2015-11-26 14:52:23 +0100 | [diff] [blame] | 38 | |
| 39 | test("vp8_qp_parser_fuzzer") { |
| 40 | sources = [ |
| 41 | "vp8_qp_parser_fuzzer.cc", |
| 42 | ] |
| 43 | deps = [ |
| 44 | ":webrtc_fuzzer_main", |
| 45 | "../../modules/video_coding/", |
| 46 | ] |
| 47 | |
| 48 | if (is_clang) { |
| 49 | # Suppress warnings from Chrome's Clang plugins. |
| 50 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 51 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 52 | } |
| 53 | } |
Henrik Lundin | fe32a76 | 2015-12-08 11:27:27 +0100 | [diff] [blame^] | 54 | |
| 55 | source_set("audio_decoder_fuzzer") { |
| 56 | sources = [ |
| 57 | "audio_decoder_fuzzer.cc", |
| 58 | "audio_decoder_fuzzer.h", |
| 59 | ] |
| 60 | deps = [ |
| 61 | ":webrtc_fuzzer_main", |
| 62 | ] |
| 63 | } |
| 64 | |
| 65 | test("audio_decoder_ilbc_fuzzer") { |
| 66 | sources = [ |
| 67 | "audio_decoder_ilbc_fuzzer.cc", |
| 68 | ] |
| 69 | deps = [ |
| 70 | ":audio_decoder_fuzzer", |
| 71 | "../../modules/audio_coding:ilbc", |
| 72 | ] |
| 73 | } |
| 74 | |
| 75 | test("audio_decoder_isac_fuzzer") { |
| 76 | sources = [ |
| 77 | "audio_decoder_isac_fuzzer.cc", |
| 78 | ] |
| 79 | deps = [ |
| 80 | ":audio_decoder_fuzzer", |
| 81 | "../../modules/audio_coding:isac", |
| 82 | ] |
| 83 | } |
| 84 | |
| 85 | test("audio_decoder_isacfix_fuzzer") { |
| 86 | sources = [ |
| 87 | "audio_decoder_isacfix_fuzzer.cc", |
| 88 | ] |
| 89 | deps = [ |
| 90 | ":audio_decoder_fuzzer", |
| 91 | "../../modules/audio_coding:isac_fix", |
| 92 | ] |
| 93 | } |
| 94 | |
| 95 | test("audio_decoder_opus_fuzzer") { |
| 96 | sources = [ |
| 97 | "audio_decoder_opus_fuzzer.cc", |
| 98 | ] |
| 99 | deps = [ |
| 100 | ":audio_decoder_fuzzer", |
| 101 | "../../modules/audio_coding:webrtc_opus", |
| 102 | ] |
| 103 | } |