Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: webrtc/test/fuzzers/BUILD.gn

Issue 1524993002: Base webrtc fuzzers on a template. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/test/fuzzers/webrtc_fuzzer.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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") {
72 sources = [ 52 sources = [
73 "audio_decoder_fuzzer.cc", 53 "audio_decoder_fuzzer.cc",
74 "audio_decoder_fuzzer.h", 54 "audio_decoder_fuzzer.h",
75 ] 55 ]
76 deps = [
77 ":webrtc_fuzzer_main",
78 ]
79 } 56 }
80 57
81 test("audio_decoder_ilbc_fuzzer") { 58 webrtc_fuzzer_test("audio_decoder_ilbc_fuzzer") {
82 sources = [ 59 sources = [
83 "audio_decoder_ilbc_fuzzer.cc", 60 "audio_decoder_ilbc_fuzzer.cc",
84 ] 61 ]
85 deps = [ 62 deps = [
86 ":audio_decoder_fuzzer", 63 ":audio_decoder_fuzzer",
87 "../../modules/audio_coding:ilbc", 64 "../../modules/audio_coding:ilbc",
88 ] 65 ]
89 } 66 }
90 67
91 test("audio_decoder_isac_fuzzer") { 68 webrtc_fuzzer_test("audio_decoder_isac_fuzzer") {
92 sources = [ 69 sources = [
93 "audio_decoder_isac_fuzzer.cc", 70 "audio_decoder_isac_fuzzer.cc",
94 ] 71 ]
95 deps = [ 72 deps = [
96 ":audio_decoder_fuzzer", 73 ":audio_decoder_fuzzer",
97 "../../modules/audio_coding:isac", 74 "../../modules/audio_coding:isac",
98 ] 75 ]
99 } 76 }
100 77
101 test("audio_decoder_isacfix_fuzzer") { 78 webrtc_fuzzer_test("audio_decoder_isacfix_fuzzer") {
102 sources = [ 79 sources = [
103 "audio_decoder_isacfix_fuzzer.cc", 80 "audio_decoder_isacfix_fuzzer.cc",
104 ] 81 ]
105 deps = [ 82 deps = [
106 ":audio_decoder_fuzzer", 83 ":audio_decoder_fuzzer",
107 "../../modules/audio_coding:isac_fix", 84 "../../modules/audio_coding:isac_fix",
108 ] 85 ]
109 } 86 }
110 87
111 test("audio_decoder_opus_fuzzer") { 88 webrtc_fuzzer_test("audio_decoder_opus_fuzzer") {
112 sources = [ 89 sources = [
113 "audio_decoder_opus_fuzzer.cc", 90 "audio_decoder_opus_fuzzer.cc",
114 ] 91 ]
115 deps = [ 92 deps = [
116 ":audio_decoder_fuzzer", 93 ":audio_decoder_fuzzer",
117 "../../modules/audio_coding:webrtc_opus", 94 "../../modules/audio_coding:webrtc_opus",
118 ] 95 ]
119 } 96 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/test/fuzzers/webrtc_fuzzer.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698