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