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("webrtc_fuzzer.gni") | 10 import("//testing/test.gni") |
| 11 import("//testing/libfuzzer/fuzzer_test.gni") |
11 | 12 |
12 static_library("webrtc_fuzzer_main") { | 13 static_library("webrtc_fuzzer_main") { |
13 public_configs = [ "../..:common_inherited_config" ] | 14 public_configs = [ "../..:common_inherited_config" ] |
14 sources = [ | 15 sources = [ |
15 "webrtc_fuzzer_main.cc", | 16 "webrtc_fuzzer_main.cc", |
16 ] | 17 ] |
17 deps = [ | 18 deps = [ |
18 "../../system_wrappers:field_trial_default", | 19 "../../system_wrappers:field_trial_default", |
19 "../../system_wrappers:metrics_default", | 20 "../../system_wrappers:metrics_default", |
20 "//testing/libfuzzer:libfuzzer_main", | 21 "//testing/libfuzzer:libfuzzer_main", |
21 ] | 22 ] |
22 } | 23 } |
23 | 24 |
| 25 template("webrtc_fuzzer_test") { |
| 26 fuzzer_test(target_name) { |
| 27 forward_variables_from(invoker, "*") |
| 28 deps += [ ":webrtc_fuzzer_main" ] |
| 29 if (is_clang) { |
| 30 # Suppress warnings from Chrome's Clang plugins. |
| 31 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details |
| 32 suppressed_configs = [ "//build/config/clang:find_bad_constructs" ] |
| 33 } |
| 34 } |
| 35 } |
| 36 |
24 webrtc_fuzzer_test("h264_depacketizer_fuzzer") { | 37 webrtc_fuzzer_test("h264_depacketizer_fuzzer") { |
25 sources = [ | 38 sources = [ |
26 "h264_depacketizer_fuzzer.cc", | 39 "h264_depacketizer_fuzzer.cc", |
27 ] | 40 ] |
28 deps = [ | 41 deps = [ |
29 "../../modules/rtp_rtcp", | 42 "../../modules/rtp_rtcp", |
30 ] | 43 ] |
31 } | 44 } |
32 | 45 |
33 webrtc_fuzzer_test("vp8_depacketizer_fuzzer") { | 46 webrtc_fuzzer_test("vp8_depacketizer_fuzzer") { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 157 |
145 webrtc_fuzzer_test("audio_decoder_opus_redundant_fuzzer") { | 158 webrtc_fuzzer_test("audio_decoder_opus_redundant_fuzzer") { |
146 sources = [ | 159 sources = [ |
147 "audio_decoder_opus_redundant_fuzzer.cc", | 160 "audio_decoder_opus_redundant_fuzzer.cc", |
148 ] | 161 ] |
149 deps = [ | 162 deps = [ |
150 ":audio_decoder_fuzzer", | 163 ":audio_decoder_fuzzer", |
151 "../../modules/audio_coding:webrtc_opus", | 164 "../../modules/audio_coding:webrtc_opus", |
152 ] | 165 ] |
153 } | 166 } |
OLD | NEW |