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 "../../base:rtc_base_approved", | |
19 "../../system_wrappers:field_trial_default", | 18 "../../system_wrappers:field_trial_default", |
20 "../../system_wrappers:metrics_default", | 19 "../../system_wrappers:metrics_default", |
21 "//testing/libfuzzer:libfuzzer_main", | 20 "//testing/libfuzzer:libfuzzer_main", |
22 ] | 21 ] |
23 } | 22 } |
24 | 23 |
25 template("webrtc_fuzzer_test") { | 24 template("webrtc_fuzzer_test") { |
26 fuzzer_test(target_name) { | 25 fuzzer_test(target_name) { |
27 forward_variables_from(invoker, "*") | 26 forward_variables_from(invoker, "*") |
28 deps += [ ":webrtc_fuzzer_main" ] | 27 deps += [ ":webrtc_fuzzer_main" ] |
(...skipping 29 matching lines...) Expand all Loading... |
58 deps = [ | 57 deps = [ |
59 "../../modules/rtp_rtcp", | 58 "../../modules/rtp_rtcp", |
60 ] | 59 ] |
61 } | 60 } |
62 | 61 |
63 webrtc_fuzzer_test("vp8_qp_parser_fuzzer") { | 62 webrtc_fuzzer_test("vp8_qp_parser_fuzzer") { |
64 sources = [ | 63 sources = [ |
65 "vp8_qp_parser_fuzzer.cc", | 64 "vp8_qp_parser_fuzzer.cc", |
66 ] | 65 ] |
67 deps = [ | 66 deps = [ |
68 "../../modules/video_coding:video_coding_utility", | |
69 "../../modules/video_coding/", | 67 "../../modules/video_coding/", |
70 ] | 68 ] |
71 } | 69 } |
72 | 70 |
73 webrtc_fuzzer_test("h264_bitstream_parser_fuzzer") { | 71 webrtc_fuzzer_test("h264_bitstream_parser_fuzzer") { |
74 sources = [ | 72 sources = [ |
75 "h264_bitstream_parser_fuzzer.cc", | 73 "h264_bitstream_parser_fuzzer.cc", |
76 ] | 74 ] |
77 deps = [ | 75 deps = [ |
78 "../../common_video", | |
79 "../../modules/video_coding/", | 76 "../../modules/video_coding/", |
80 ] | 77 ] |
81 } | 78 } |
82 | 79 |
83 webrtc_fuzzer_test("flexfec_header_reader_fuzzer") { | 80 webrtc_fuzzer_test("flexfec_header_reader_fuzzer") { |
84 sources = [ | 81 sources = [ |
85 "flexfec_header_reader_fuzzer.cc", | 82 "flexfec_header_reader_fuzzer.cc", |
86 ] | 83 ] |
87 deps = [ | 84 deps = [ |
88 "../../base:rtc_base_approved", | |
89 "../../modules/rtp_rtcp", | 85 "../../modules/rtp_rtcp", |
90 ] | 86 ] |
91 } | 87 } |
92 | 88 |
93 webrtc_fuzzer_test("flexfec_sender_fuzzer") { | 89 webrtc_fuzzer_test("flexfec_sender_fuzzer") { |
94 sources = [ | 90 sources = [ |
95 "flexfec_sender_fuzzer.cc", | 91 "flexfec_sender_fuzzer.cc", |
96 ] | 92 ] |
97 deps = [ | 93 deps = [ |
98 "../../modules/rtp_rtcp", | 94 "../../modules/rtp_rtcp", |
99 "../../system_wrappers", | |
100 ] | 95 ] |
101 libfuzzer_options = [ "max_len=200" ] | 96 libfuzzer_options = [ "max_len=200" ] |
102 } | 97 } |
103 | 98 |
104 webrtc_fuzzer_test("ulpfec_header_reader_fuzzer") { | 99 webrtc_fuzzer_test("ulpfec_header_reader_fuzzer") { |
105 sources = [ | 100 sources = [ |
106 "ulpfec_header_reader_fuzzer.cc", | 101 "ulpfec_header_reader_fuzzer.cc", |
107 ] | 102 ] |
108 deps = [ | 103 deps = [ |
109 "../../base:rtc_base_approved", | |
110 "../../modules/rtp_rtcp", | 104 "../../modules/rtp_rtcp", |
111 "../../modules/rtp_rtcp:fec_test_helper", | 105 "../../modules/rtp_rtcp:fec_test_helper", |
112 ] | 106 ] |
113 } | 107 } |
114 | 108 |
115 webrtc_fuzzer_test("ulpfec_generator_fuzzer") { | 109 webrtc_fuzzer_test("ulpfec_generator_fuzzer") { |
116 sources = [ | 110 sources = [ |
117 "ulpfec_generator_fuzzer.cc", | 111 "ulpfec_generator_fuzzer.cc", |
118 ] | 112 ] |
119 deps = [ | 113 deps = [ |
120 "../../base:rtc_base_approved", | 114 "../../base:rtc_base_approved", |
121 "../../modules/rtp_rtcp", | 115 "../../modules/rtp_rtcp", |
122 "../../modules/rtp_rtcp:fec_test_helper", | 116 "../../modules/rtp_rtcp:fec_test_helper", |
123 ] | 117 ] |
124 } | 118 } |
125 | 119 |
126 webrtc_fuzzer_test("flexfec_receiver_fuzzer") { | 120 webrtc_fuzzer_test("flexfec_receiver_fuzzer") { |
127 sources = [ | 121 sources = [ |
128 "flexfec_receiver_fuzzer.cc", | 122 "flexfec_receiver_fuzzer.cc", |
129 ] | 123 ] |
130 deps = [ | 124 deps = [ |
131 "../../base:rtc_base_approved", | |
132 "../../modules/rtp_rtcp", | 125 "../../modules/rtp_rtcp", |
133 ] | 126 ] |
134 libfuzzer_options = [ "max_len=2000" ] | 127 libfuzzer_options = [ "max_len=2000" ] |
135 } | 128 } |
136 | 129 |
137 webrtc_fuzzer_test("packet_buffer_fuzzer") { | 130 webrtc_fuzzer_test("packet_buffer_fuzzer") { |
138 sources = [ | 131 sources = [ |
139 "packet_buffer_fuzzer.cc", | 132 "packet_buffer_fuzzer.cc", |
140 ] | 133 ] |
141 deps = [ | 134 deps = [ |
142 "../../modules/video_coding/", | 135 "../../modules/video_coding/", |
143 "../../system_wrappers", | |
144 ] | 136 ] |
145 libfuzzer_options = [ "max_len=2000" ] | 137 libfuzzer_options = [ "max_len=2000" ] |
146 } | 138 } |
147 | 139 |
148 webrtc_fuzzer_test("rtcp_receiver_fuzzer") { | 140 webrtc_fuzzer_test("rtcp_receiver_fuzzer") { |
149 sources = [ | 141 sources = [ |
150 "rtcp_receiver_fuzzer.cc", | 142 "rtcp_receiver_fuzzer.cc", |
151 ] | 143 ] |
152 deps = [ | 144 deps = [ |
153 "../../base:rtc_base_approved", | |
154 "../../modules/rtp_rtcp", | 145 "../../modules/rtp_rtcp", |
155 "../../system_wrappers:system_wrappers", | |
156 ] | 146 ] |
157 seed_corpus = "corpora/rtcp-corpus" | 147 seed_corpus = "corpora/rtcp-corpus" |
158 } | 148 } |
159 | 149 |
160 webrtc_fuzzer_test("rtp_packet_fuzzer") { | 150 webrtc_fuzzer_test("rtp_packet_fuzzer") { |
161 sources = [ | 151 sources = [ |
162 "rtp_packet_fuzzer.cc", | 152 "rtp_packet_fuzzer.cc", |
163 ] | 153 ] |
164 deps = [ | 154 deps = [ |
165 "../../modules/rtp_rtcp", | 155 "../../modules/rtp_rtcp", |
166 ] | 156 ] |
167 seed_corpus = "corpora/rtp-corpus" | 157 seed_corpus = "corpora/rtp-corpus" |
168 } | 158 } |
169 | 159 |
170 webrtc_fuzzer_test("rtp_header_fuzzer") { | 160 webrtc_fuzzer_test("rtp_header_fuzzer") { |
171 sources = [ | 161 sources = [ |
172 "rtp_header_fuzzer.cc", | 162 "rtp_header_fuzzer.cc", |
173 ] | 163 ] |
174 deps = [ | 164 deps = [ |
175 "../../modules/rtp_rtcp", | 165 "../../modules/rtp_rtcp", |
176 ] | 166 ] |
177 } | 167 } |
178 | 168 |
179 webrtc_fuzzer_test("congestion_controller_feedback_fuzzer") { | 169 webrtc_fuzzer_test("congestion_controller_feedback_fuzzer") { |
180 sources = [ | 170 sources = [ |
181 "congestion_controller_feedback_fuzzer.cc", | 171 "congestion_controller_feedback_fuzzer.cc", |
182 ] | 172 ] |
183 deps = [ | 173 deps = [ |
184 "../../logging:rtc_event_log_api", | |
185 "../../logging:rtc_event_log_impl", | 174 "../../logging:rtc_event_log_impl", |
186 "../../modules/congestion_controller/", | 175 "../../modules/congestion_controller/", |
187 "../../modules/remote_bitrate_estimator:remote_bitrate_estimator", | |
188 "../../modules/rtp_rtcp", | |
189 ] | 176 ] |
190 } | 177 } |
191 | 178 |
192 rtc_static_library("audio_decoder_fuzzer") { | 179 rtc_static_library("audio_decoder_fuzzer") { |
193 sources = [ | 180 sources = [ |
194 "audio_decoder_fuzzer.cc", | 181 "audio_decoder_fuzzer.cc", |
195 "audio_decoder_fuzzer.h", | 182 "audio_decoder_fuzzer.h", |
196 ] | 183 ] |
197 deps = [ | |
198 "../..:webrtc_common", | |
199 "../../api/audio_codecs:audio_codecs_api", | |
200 "../../base:rtc_base_approved", | |
201 "../../modules/rtp_rtcp", | |
202 ] | |
203 } | 184 } |
204 | 185 |
205 webrtc_fuzzer_test("audio_decoder_ilbc_fuzzer") { | 186 webrtc_fuzzer_test("audio_decoder_ilbc_fuzzer") { |
206 sources = [ | 187 sources = [ |
207 "audio_decoder_ilbc_fuzzer.cc", | 188 "audio_decoder_ilbc_fuzzer.cc", |
208 ] | 189 ] |
209 deps = [ | 190 deps = [ |
210 ":audio_decoder_fuzzer", | 191 ":audio_decoder_fuzzer", |
211 "../../modules/audio_coding:ilbc", | 192 "../../modules/audio_coding:ilbc", |
212 ] | 193 ] |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 } | 253 } |
273 | 254 |
274 webrtc_fuzzer_test("neteq_rtp_fuzzer") { | 255 webrtc_fuzzer_test("neteq_rtp_fuzzer") { |
275 sources = [ | 256 sources = [ |
276 "neteq_rtp_fuzzer.cc", | 257 "neteq_rtp_fuzzer.cc", |
277 ] | 258 ] |
278 deps = [ | 259 deps = [ |
279 "../../base:rtc_base_approved", | 260 "../../base:rtc_base_approved", |
280 "../../base:rtc_base_tests_utils", | 261 "../../base:rtc_base_tests_utils", |
281 "../../modules/audio_coding:neteq", | 262 "../../modules/audio_coding:neteq", |
282 "../../modules/audio_coding:neteq_test_tools", | |
283 "../../modules/audio_coding:neteq_tools_minimal", | 263 "../../modules/audio_coding:neteq_tools_minimal", |
284 "../../modules/audio_coding:pcm16b", | 264 "../../modules/audio_coding:pcm16b", |
285 "../../modules/rtp_rtcp", | 265 "../../modules/rtp_rtcp", |
286 ] | 266 ] |
287 } | 267 } |
288 | 268 |
289 webrtc_fuzzer_test("residual_echo_detector_fuzzer") { | 269 webrtc_fuzzer_test("residual_echo_detector_fuzzer") { |
290 sources = [ | 270 sources = [ |
291 "residual_echo_detector_fuzzer.cc", | 271 "residual_echo_detector_fuzzer.cc", |
292 ] | 272 ] |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 ] | 306 ] |
327 seed_corpus = "corpora/stun-corpus" | 307 seed_corpus = "corpora/stun-corpus" |
328 dict = "corpora/stun.tokens" | 308 dict = "corpora/stun.tokens" |
329 } | 309 } |
330 | 310 |
331 webrtc_fuzzer_test("pseudotcp_parser_fuzzer") { | 311 webrtc_fuzzer_test("pseudotcp_parser_fuzzer") { |
332 sources = [ | 312 sources = [ |
333 "pseudotcp_parser_fuzzer.cc", | 313 "pseudotcp_parser_fuzzer.cc", |
334 ] | 314 ] |
335 deps = [ | 315 deps = [ |
336 "../../base:rtc_base", | |
337 "../../p2p:rtc_p2p", | 316 "../../p2p:rtc_p2p", |
338 ] | 317 ] |
339 } | 318 } |
340 | 319 |
341 webrtc_fuzzer_test("transport_feedback_packet_loss_tracker_fuzzer") { | 320 webrtc_fuzzer_test("transport_feedback_packet_loss_tracker_fuzzer") { |
342 sources = [ | 321 sources = [ |
343 "transport_feedback_packet_loss_tracker_fuzzer.cc", | 322 "transport_feedback_packet_loss_tracker_fuzzer.cc", |
344 ] | 323 ] |
345 deps = [ | 324 deps = [ |
346 "../../base:rtc_base_approved", | |
347 "../../modules/rtp_rtcp", | 325 "../../modules/rtp_rtcp", |
348 "../../voice_engine", | 326 "../../voice_engine", |
349 ] | 327 ] |
350 } | 328 } |
OLD | NEW |