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("../../webrtc.gni") | 9 import("../../webrtc.gni") |
10 import("//build/config/features.gni") | 10 import("//build/config/features.gni") |
11 import("//testing/libfuzzer/fuzzer_test.gni") | 11 import("//testing/libfuzzer/fuzzer_test.gni") |
12 | 12 |
13 rtc_static_library("webrtc_fuzzer_main") { | 13 rtc_static_library("webrtc_fuzzer_main") { |
14 sources = [ | 14 sources = [ |
15 "webrtc_fuzzer_main.cc", | 15 "webrtc_fuzzer_main.cc", |
16 ] | 16 ] |
17 deps = [ | 17 deps = [ |
18 "../../rtc_base:rtc_base_approved", | 18 "../../base:rtc_base_approved", |
19 "../../system_wrappers:field_trial_default", | 19 "../../system_wrappers:field_trial_default", |
20 "../../system_wrappers:metrics_default", | 20 "../../system_wrappers:metrics_default", |
21 "//testing/libfuzzer:libfuzzer_main", | 21 "//testing/libfuzzer:libfuzzer_main", |
22 ] | 22 ] |
23 } | 23 } |
24 | 24 |
25 template("webrtc_fuzzer_test") { | 25 template("webrtc_fuzzer_test") { |
26 fuzzer_test(target_name) { | 26 fuzzer_test(target_name) { |
27 forward_variables_from(invoker, "*") | 27 forward_variables_from(invoker, "*") |
28 deps += [ ":webrtc_fuzzer_main" ] | 28 deps += [ ":webrtc_fuzzer_main" ] |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 "../../common_video", | 88 "../../common_video", |
89 "../../modules/video_coding/", | 89 "../../modules/video_coding/", |
90 ] | 90 ] |
91 } | 91 } |
92 | 92 |
93 webrtc_fuzzer_test("flexfec_header_reader_fuzzer") { | 93 webrtc_fuzzer_test("flexfec_header_reader_fuzzer") { |
94 sources = [ | 94 sources = [ |
95 "flexfec_header_reader_fuzzer.cc", | 95 "flexfec_header_reader_fuzzer.cc", |
96 ] | 96 ] |
97 deps = [ | 97 deps = [ |
| 98 "../../base:rtc_base_approved", |
98 "../../modules/rtp_rtcp", | 99 "../../modules/rtp_rtcp", |
99 "../../rtc_base:rtc_base_approved", | |
100 ] | 100 ] |
101 } | 101 } |
102 | 102 |
103 webrtc_fuzzer_test("flexfec_sender_fuzzer") { | 103 webrtc_fuzzer_test("flexfec_sender_fuzzer") { |
104 sources = [ | 104 sources = [ |
105 "flexfec_sender_fuzzer.cc", | 105 "flexfec_sender_fuzzer.cc", |
106 ] | 106 ] |
107 deps = [ | 107 deps = [ |
108 "../../modules/rtp_rtcp", | 108 "../../modules/rtp_rtcp", |
109 "../../system_wrappers", | 109 "../../system_wrappers", |
110 ] | 110 ] |
111 libfuzzer_options = [ "max_len=200" ] | 111 libfuzzer_options = [ "max_len=200" ] |
112 } | 112 } |
113 | 113 |
114 webrtc_fuzzer_test("ulpfec_header_reader_fuzzer") { | 114 webrtc_fuzzer_test("ulpfec_header_reader_fuzzer") { |
115 sources = [ | 115 sources = [ |
116 "ulpfec_header_reader_fuzzer.cc", | 116 "ulpfec_header_reader_fuzzer.cc", |
117 ] | 117 ] |
118 deps = [ | 118 deps = [ |
| 119 "../../base:rtc_base_approved", |
119 "../../modules/rtp_rtcp", | 120 "../../modules/rtp_rtcp", |
120 "../../modules/rtp_rtcp:fec_test_helper", | 121 "../../modules/rtp_rtcp:fec_test_helper", |
121 "../../rtc_base:rtc_base_approved", | |
122 ] | 122 ] |
123 } | 123 } |
124 | 124 |
125 webrtc_fuzzer_test("ulpfec_generator_fuzzer") { | 125 webrtc_fuzzer_test("ulpfec_generator_fuzzer") { |
126 sources = [ | 126 sources = [ |
127 "ulpfec_generator_fuzzer.cc", | 127 "ulpfec_generator_fuzzer.cc", |
128 ] | 128 ] |
129 deps = [ | 129 deps = [ |
| 130 "../../base:rtc_base_approved", |
130 "../../modules/rtp_rtcp", | 131 "../../modules/rtp_rtcp", |
131 "../../modules/rtp_rtcp:fec_test_helper", | 132 "../../modules/rtp_rtcp:fec_test_helper", |
132 "../../rtc_base:rtc_base_approved", | |
133 ] | 133 ] |
134 } | 134 } |
135 | 135 |
136 webrtc_fuzzer_test("flexfec_receiver_fuzzer") { | 136 webrtc_fuzzer_test("flexfec_receiver_fuzzer") { |
137 sources = [ | 137 sources = [ |
138 "flexfec_receiver_fuzzer.cc", | 138 "flexfec_receiver_fuzzer.cc", |
139 ] | 139 ] |
140 deps = [ | 140 deps = [ |
| 141 "../../base:rtc_base_approved", |
141 "../../modules/rtp_rtcp", | 142 "../../modules/rtp_rtcp", |
142 "../../rtc_base:rtc_base_approved", | |
143 ] | 143 ] |
144 libfuzzer_options = [ "max_len=2000" ] | 144 libfuzzer_options = [ "max_len=2000" ] |
145 } | 145 } |
146 | 146 |
147 webrtc_fuzzer_test("packet_buffer_fuzzer") { | 147 webrtc_fuzzer_test("packet_buffer_fuzzer") { |
148 sources = [ | 148 sources = [ |
149 "packet_buffer_fuzzer.cc", | 149 "packet_buffer_fuzzer.cc", |
150 ] | 150 ] |
151 deps = [ | 151 deps = [ |
152 "../../modules/video_coding/", | 152 "../../modules/video_coding/", |
153 "../../system_wrappers", | 153 "../../system_wrappers", |
154 ] | 154 ] |
155 libfuzzer_options = [ "max_len=2000" ] | 155 libfuzzer_options = [ "max_len=2000" ] |
156 } | 156 } |
157 | 157 |
158 webrtc_fuzzer_test("rtcp_receiver_fuzzer") { | 158 webrtc_fuzzer_test("rtcp_receiver_fuzzer") { |
159 sources = [ | 159 sources = [ |
160 "rtcp_receiver_fuzzer.cc", | 160 "rtcp_receiver_fuzzer.cc", |
161 ] | 161 ] |
162 deps = [ | 162 deps = [ |
| 163 "../../base:rtc_base_approved", |
163 "../../modules/rtp_rtcp", | 164 "../../modules/rtp_rtcp", |
164 "../../rtc_base:rtc_base_approved", | |
165 "../../system_wrappers:system_wrappers", | 165 "../../system_wrappers:system_wrappers", |
166 ] | 166 ] |
167 seed_corpus = "corpora/rtcp-corpus" | 167 seed_corpus = "corpora/rtcp-corpus" |
168 } | 168 } |
169 | 169 |
170 webrtc_fuzzer_test("rtp_packet_fuzzer") { | 170 webrtc_fuzzer_test("rtp_packet_fuzzer") { |
171 sources = [ | 171 sources = [ |
172 "rtp_packet_fuzzer.cc", | 172 "rtp_packet_fuzzer.cc", |
173 ] | 173 ] |
174 deps = [ | 174 deps = [ |
(...skipping 25 matching lines...) Expand all Loading... |
200 } | 200 } |
201 | 201 |
202 rtc_static_library("audio_decoder_fuzzer") { | 202 rtc_static_library("audio_decoder_fuzzer") { |
203 sources = [ | 203 sources = [ |
204 "audio_decoder_fuzzer.cc", | 204 "audio_decoder_fuzzer.cc", |
205 "audio_decoder_fuzzer.h", | 205 "audio_decoder_fuzzer.h", |
206 ] | 206 ] |
207 deps = [ | 207 deps = [ |
208 "../..:webrtc_common", | 208 "../..:webrtc_common", |
209 "../../api/audio_codecs:audio_codecs_api", | 209 "../../api/audio_codecs:audio_codecs_api", |
| 210 "../../base:rtc_base_approved", |
210 "../../modules/rtp_rtcp", | 211 "../../modules/rtp_rtcp", |
211 "../../rtc_base:rtc_base_approved", | |
212 ] | 212 ] |
213 } | 213 } |
214 | 214 |
215 webrtc_fuzzer_test("audio_decoder_ilbc_fuzzer") { | 215 webrtc_fuzzer_test("audio_decoder_ilbc_fuzzer") { |
216 sources = [ | 216 sources = [ |
217 "audio_decoder_ilbc_fuzzer.cc", | 217 "audio_decoder_ilbc_fuzzer.cc", |
218 ] | 218 ] |
219 deps = [ | 219 deps = [ |
220 ":audio_decoder_fuzzer", | 220 ":audio_decoder_fuzzer", |
221 "../../modules/audio_coding:ilbc", | 221 "../../modules/audio_coding:ilbc", |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 deps = [ | 279 deps = [ |
280 "../../media:media", | 280 "../../media:media", |
281 ] | 281 ] |
282 } | 282 } |
283 | 283 |
284 webrtc_fuzzer_test("neteq_rtp_fuzzer") { | 284 webrtc_fuzzer_test("neteq_rtp_fuzzer") { |
285 sources = [ | 285 sources = [ |
286 "neteq_rtp_fuzzer.cc", | 286 "neteq_rtp_fuzzer.cc", |
287 ] | 287 ] |
288 deps = [ | 288 deps = [ |
| 289 "../../base:rtc_base_approved", |
| 290 "../../base:rtc_base_tests_utils", |
289 "../../modules/audio_coding:neteq", | 291 "../../modules/audio_coding:neteq", |
290 "../../modules/audio_coding:neteq_test_tools", | 292 "../../modules/audio_coding:neteq_test_tools", |
291 "../../modules/audio_coding:neteq_tools_minimal", | 293 "../../modules/audio_coding:neteq_tools_minimal", |
292 "../../modules/audio_coding:pcm16b", | 294 "../../modules/audio_coding:pcm16b", |
293 "../../modules/rtp_rtcp", | 295 "../../modules/rtp_rtcp", |
294 "../../rtc_base:rtc_base_approved", | |
295 "../../rtc_base:rtc_base_tests_utils", | |
296 ] | 296 ] |
297 } | 297 } |
298 | 298 |
299 webrtc_fuzzer_test("residual_echo_detector_fuzzer") { | 299 webrtc_fuzzer_test("residual_echo_detector_fuzzer") { |
300 sources = [ | 300 sources = [ |
301 "residual_echo_detector_fuzzer.cc", | 301 "residual_echo_detector_fuzzer.cc", |
302 ] | 302 ] |
303 deps = [ | 303 deps = [ |
| 304 "../../base:rtc_base_approved", |
304 "../../modules/audio_processing:audio_processing", | 305 "../../modules/audio_processing:audio_processing", |
305 "../../rtc_base:rtc_base_approved", | |
306 ] | 306 ] |
307 } | 307 } |
308 | 308 |
309 webrtc_fuzzer_test("sdp_parser_fuzzer") { | 309 webrtc_fuzzer_test("sdp_parser_fuzzer") { |
310 sources = [ | 310 sources = [ |
311 "sdp_parser_fuzzer.cc", | 311 "sdp_parser_fuzzer.cc", |
312 ] | 312 ] |
313 deps = [ | 313 deps = [ |
314 "../../pc:libjingle_peerconnection", | 314 "../../pc:libjingle_peerconnection", |
315 ] | 315 ] |
(...skipping 20 matching lines...) Expand all Loading... |
336 ] | 336 ] |
337 seed_corpus = "corpora/stun-corpus" | 337 seed_corpus = "corpora/stun-corpus" |
338 dict = "corpora/stun.tokens" | 338 dict = "corpora/stun.tokens" |
339 } | 339 } |
340 | 340 |
341 webrtc_fuzzer_test("pseudotcp_parser_fuzzer") { | 341 webrtc_fuzzer_test("pseudotcp_parser_fuzzer") { |
342 sources = [ | 342 sources = [ |
343 "pseudotcp_parser_fuzzer.cc", | 343 "pseudotcp_parser_fuzzer.cc", |
344 ] | 344 ] |
345 deps = [ | 345 deps = [ |
| 346 "../../base:rtc_base", |
346 "../../p2p:rtc_p2p", | 347 "../../p2p:rtc_p2p", |
347 "../../rtc_base:rtc_base", | |
348 ] | 348 ] |
349 } | 349 } |
350 | 350 |
351 webrtc_fuzzer_test("transport_feedback_packet_loss_tracker_fuzzer") { | 351 webrtc_fuzzer_test("transport_feedback_packet_loss_tracker_fuzzer") { |
352 sources = [ | 352 sources = [ |
353 "transport_feedback_packet_loss_tracker_fuzzer.cc", | 353 "transport_feedback_packet_loss_tracker_fuzzer.cc", |
354 ] | 354 ] |
355 deps = [ | 355 deps = [ |
| 356 "../../base:rtc_base_approved", |
356 "../../modules/rtp_rtcp", | 357 "../../modules/rtp_rtcp", |
357 "../../rtc_base:rtc_base_approved", | |
358 "../../voice_engine", | 358 "../../voice_engine", |
359 ] | 359 ] |
360 } | 360 } |
361 | 361 |
362 webrtc_fuzzer_test("audio_processing_fuzzer") { | 362 webrtc_fuzzer_test("audio_processing_fuzzer") { |
363 sources = [ | 363 sources = [ |
364 "audio_processing_fuzzer.cc", | 364 "audio_processing_fuzzer.cc", |
365 "audio_processing_fuzzer.h", | 365 "audio_processing_fuzzer.h", |
366 "audio_processing_fuzzer_configs.cc", | 366 "audio_processing_fuzzer_configs.cc", |
367 ] | 367 ] |
368 deps = [ | 368 deps = [ |
| 369 "../../base:rtc_base_approved", |
369 "../../modules:module_api", | 370 "../../modules:module_api", |
370 "../../modules/audio_processing", | 371 "../../modules/audio_processing", |
371 "../../rtc_base:rtc_base_approved", | |
372 ] | 372 ] |
373 } | 373 } |
OLD | NEW |