Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("//build/config/features.gni") | 9 import("//build/config/features.gni") |
| 10 import("//testing/test.gni") | 10 import("webrtc_fuzzer.gni") |
| 11 | 11 |
| 12 static_library("webrtc_fuzzer_main") { | 12 static_library("webrtc_fuzzer_main") { |
| 13 public_configs = [ "../..:common_inherited_config" ] | 13 public_configs = [ "../..:common_inherited_config" ] |
| 14 sources = [ | 14 sources = [ |
| 15 "webrtc_fuzzer_main.cc", | 15 "webrtc_fuzzer_main.cc", |
| 16 ] | 16 ] |
| 17 deps = [ | 17 deps = [ |
| 18 "../../system_wrappers:field_trial_default", | 18 "../../system_wrappers:field_trial_default", |
| 19 "../../system_wrappers:metrics_default", | 19 "../../system_wrappers:metrics_default", |
| 20 "//testing/libfuzzer:libfuzzer_main", | 20 "//testing/libfuzzer:libfuzzer_main", |
| 21 ] | 21 ] |
| 22 } | 22 } |
| 23 | 23 |
| 24 test("vp9_depacketizer_fuzzer") { | 24 webrtc_fuzzer_test("vp9_depacketizer_fuzzer") { |
| 25 sources = [ | 25 sources = [ |
| 26 "vp9_depacketizer_fuzzer.cc", | 26 "vp9_depacketizer_fuzzer.cc", |
| 27 ] | 27 ] |
| 28 deps = [ | 28 deps = [ |
| 29 ":webrtc_fuzzer_main", | |
| 30 "../../modules/rtp_rtcp", | 29 "../../modules/rtp_rtcp", |
| 31 ] | 30 ] |
| 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 } | 31 } |
| 38 | 32 |
| 39 test("vp8_qp_parser_fuzzer") { | 33 webrtc_fuzzer_test("vp8_qp_parser_fuzzer") { |
| 40 sources = [ | 34 sources = [ |
| 41 "vp8_qp_parser_fuzzer.cc", | 35 "vp8_qp_parser_fuzzer.cc", |
| 42 ] | 36 ] |
| 43 deps = [ | 37 deps = [ |
| 44 ":webrtc_fuzzer_main", | |
| 45 "../../modules/video_coding/", | 38 "../../modules/video_coding/", |
| 46 ] | 39 ] |
| 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 } | 40 } |
| 54 | 41 |
| 55 test("producer_fec_fuzzer") { | 42 webrtc_fuzzer_test("producer_fec_fuzzer") { |
| 56 sources = [ | 43 sources = [ |
| 57 "producer_fec_fuzzer.cc", | 44 "producer_fec_fuzzer.cc", |
| 58 ] | 45 ] |
| 59 deps = [ | 46 deps = [ |
| 60 ":webrtc_fuzzer_main", | |
| 61 "../../modules/rtp_rtcp/", | 47 "../../modules/rtp_rtcp/", |
| 62 ] | 48 ] |
| 63 | |
| 64 if (is_clang) { | |
| 65 # Suppress warnings from Chrome's Clang plugins. | |
| 66 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | |
| 67 configs -= [ "//build/config/clang:find_bad_constructs" ] | |
| 68 } | |
| 69 } | 49 } |
| 70 | 50 |
| 71 source_set("audio_decoder_fuzzer") { | 51 source_set("audio_decoder_fuzzer") { |
| 52 public_configs = [ "../..:common_inherited_config" ] | |
|
kjellander_webrtc
2015/12/15 21:48:03
Things like this keeps biting us. It will be nice
| |
| 72 sources = [ | 53 sources = [ |
| 73 "audio_decoder_fuzzer.cc", | 54 "audio_decoder_fuzzer.cc", |
| 74 "audio_decoder_fuzzer.h", | 55 "audio_decoder_fuzzer.h", |
| 75 ] | 56 ] |
| 76 deps = [ | |
| 77 ":webrtc_fuzzer_main", | |
| 78 ] | |
| 79 } | 57 } |
| 80 | 58 |
| 81 test("audio_decoder_ilbc_fuzzer") { | 59 webrtc_fuzzer_test("audio_decoder_ilbc_fuzzer") { |
| 82 sources = [ | 60 sources = [ |
| 83 "audio_decoder_ilbc_fuzzer.cc", | 61 "audio_decoder_ilbc_fuzzer.cc", |
| 84 ] | 62 ] |
| 85 deps = [ | 63 deps = [ |
| 86 ":audio_decoder_fuzzer", | 64 ":audio_decoder_fuzzer", |
| 87 "../../modules/audio_coding:ilbc", | 65 "../../modules/audio_coding:ilbc", |
| 88 ] | 66 ] |
| 89 } | 67 } |
| 90 | 68 |
| 91 test("audio_decoder_isac_fuzzer") { | 69 webrtc_fuzzer_test("audio_decoder_isac_fuzzer") { |
| 92 sources = [ | 70 sources = [ |
| 93 "audio_decoder_isac_fuzzer.cc", | 71 "audio_decoder_isac_fuzzer.cc", |
| 94 ] | 72 ] |
| 95 deps = [ | 73 deps = [ |
| 96 ":audio_decoder_fuzzer", | 74 ":audio_decoder_fuzzer", |
| 97 "../../modules/audio_coding:isac", | 75 "../../modules/audio_coding:isac", |
| 98 ] | 76 ] |
| 99 } | 77 } |
| 100 | 78 |
| 101 test("audio_decoder_isacfix_fuzzer") { | 79 webrtc_fuzzer_test("audio_decoder_isacfix_fuzzer") { |
| 102 sources = [ | 80 sources = [ |
| 103 "audio_decoder_isacfix_fuzzer.cc", | 81 "audio_decoder_isacfix_fuzzer.cc", |
| 104 ] | 82 ] |
| 105 deps = [ | 83 deps = [ |
| 106 ":audio_decoder_fuzzer", | 84 ":audio_decoder_fuzzer", |
| 107 "../../modules/audio_coding:isac_fix", | 85 "../../modules/audio_coding:isac_fix", |
| 108 ] | 86 ] |
| 109 } | 87 } |
| 110 | 88 |
| 111 test("audio_decoder_opus_fuzzer") { | 89 webrtc_fuzzer_test("audio_decoder_opus_fuzzer") { |
| 112 sources = [ | 90 sources = [ |
| 113 "audio_decoder_opus_fuzzer.cc", | 91 "audio_decoder_opus_fuzzer.cc", |
| 114 ] | 92 ] |
| 115 deps = [ | 93 deps = [ |
| 116 ":audio_decoder_fuzzer", | 94 ":audio_decoder_fuzzer", |
| 117 "../../modules/audio_coding:webrtc_opus", | 95 "../../modules/audio_coding:webrtc_opus", |
| 118 ] | 96 ] |
| 119 } | 97 } |
| OLD | NEW |