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 = [ |
85 "../../modules/rtp_rtcp/", | 88 "../../base:rtc_base_approved", |
| 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 = [ |
104 "../../modules/rtp_rtcp/", | 109 "../../base:rtc_base_approved", |
| 110 "../../modules/rtp_rtcp", |
105 ] | 111 ] |
106 } | 112 } |
107 | 113 |
108 webrtc_fuzzer_test("ulpfec_generator_fuzzer") { | 114 webrtc_fuzzer_test("ulpfec_generator_fuzzer") { |
109 sources = [ | 115 sources = [ |
110 "ulpfec_generator_fuzzer.cc", | 116 "ulpfec_generator_fuzzer.cc", |
111 ] | 117 ] |
112 deps = [ | 118 deps = [ |
113 "../../modules/rtp_rtcp/", | 119 "../../base:rtc_base_approved", |
| 120 "../../modules/rtp_rtcp", |
| 121 "../../modules/rtp_rtcp:rtp_rtcp_unittests", |
114 ] | 122 ] |
115 } | 123 } |
116 | 124 |
117 webrtc_fuzzer_test("flexfec_receiver_fuzzer") { | 125 webrtc_fuzzer_test("flexfec_receiver_fuzzer") { |
118 sources = [ | 126 sources = [ |
119 "flexfec_receiver_fuzzer.cc", | 127 "flexfec_receiver_fuzzer.cc", |
120 ] | 128 ] |
121 deps = [ | 129 deps = [ |
122 "../../modules/rtp_rtcp/", | 130 "../../base:rtc_base_approved", |
| 131 "../../modules/rtp_rtcp", |
123 ] | 132 ] |
124 libfuzzer_options = [ "max_len=2000" ] | 133 libfuzzer_options = [ "max_len=2000" ] |
125 } | 134 } |
126 | 135 |
127 webrtc_fuzzer_test("packet_buffer_fuzzer") { | 136 webrtc_fuzzer_test("packet_buffer_fuzzer") { |
128 sources = [ | 137 sources = [ |
129 "packet_buffer_fuzzer.cc", | 138 "packet_buffer_fuzzer.cc", |
130 ] | 139 ] |
131 deps = [ | 140 deps = [ |
132 "../../modules/video_coding/", | 141 "../../modules/video_coding", |
| 142 "../../system_wrappers", |
133 ] | 143 ] |
134 libfuzzer_options = [ "max_len=2000" ] | 144 libfuzzer_options = [ "max_len=2000" ] |
135 } | 145 } |
136 | 146 |
137 webrtc_fuzzer_test("rtcp_receiver_fuzzer") { | 147 webrtc_fuzzer_test("rtcp_receiver_fuzzer") { |
138 sources = [ | 148 sources = [ |
139 "rtcp_receiver_fuzzer.cc", | 149 "rtcp_receiver_fuzzer.cc", |
140 ] | 150 ] |
141 deps = [ | 151 deps = [ |
142 "../../modules/rtp_rtcp/", | 152 "../../base:rtc_base_approved", |
| 153 "../../modules/rtp_rtcp", |
| 154 "../../system_wrappers", |
143 ] | 155 ] |
144 seed_corpus = "corpora/rtcp-corpus" | 156 seed_corpus = "corpora/rtcp-corpus" |
145 } | 157 } |
146 | 158 |
147 webrtc_fuzzer_test("rtp_packet_fuzzer") { | 159 webrtc_fuzzer_test("rtp_packet_fuzzer") { |
148 sources = [ | 160 sources = [ |
149 "rtp_packet_fuzzer.cc", | 161 "rtp_packet_fuzzer.cc", |
150 ] | 162 ] |
151 deps = [ | 163 deps = [ |
152 "../../modules/rtp_rtcp/", | 164 "../../modules/rtp_rtcp", |
153 ] | 165 ] |
154 seed_corpus = "corpora/rtp-corpus" | 166 seed_corpus = "corpora/rtp-corpus" |
155 } | 167 } |
156 | 168 |
157 webrtc_fuzzer_test("rtp_header_fuzzer") { | 169 webrtc_fuzzer_test("rtp_header_fuzzer") { |
158 sources = [ | 170 sources = [ |
159 "rtp_header_fuzzer.cc", | 171 "rtp_header_fuzzer.cc", |
160 ] | 172 ] |
161 deps = [ | 173 deps = [ |
162 "../../modules/rtp_rtcp/", | 174 "../../modules/rtp_rtcp", |
163 ] | 175 ] |
164 } | 176 } |
165 | 177 |
166 webrtc_fuzzer_test("congestion_controller_feedback_fuzzer") { | 178 webrtc_fuzzer_test("congestion_controller_feedback_fuzzer") { |
167 sources = [ | 179 sources = [ |
168 "congestion_controller_feedback_fuzzer.cc", | 180 "congestion_controller_feedback_fuzzer.cc", |
169 ] | 181 ] |
170 deps = [ | 182 deps = [ |
| 183 "../../logging:rtc_event_log_api", |
171 "../../logging:rtc_event_log_impl", | 184 "../../logging:rtc_event_log_impl", |
172 "../../modules/congestion_controller/", | 185 "../../modules/congestion_controller", |
| 186 "../../modules/remote_bitrate_estimator", |
| 187 "../../modules/rtp_rtcp", |
173 ] | 188 ] |
174 } | 189 } |
175 | 190 |
176 rtc_static_library("audio_decoder_fuzzer") { | 191 rtc_static_library("audio_decoder_fuzzer") { |
177 sources = [ | 192 sources = [ |
178 "audio_decoder_fuzzer.cc", | 193 "audio_decoder_fuzzer.cc", |
179 "audio_decoder_fuzzer.h", | 194 "audio_decoder_fuzzer.h", |
180 ] | 195 ] |
| 196 deps = [ |
| 197 "../..:webrtc_common", |
| 198 "../../api/audio_codecs:audio_codecs_api", |
| 199 "../../base:rtc_base_approved", |
| 200 "../../modules/rtp_rtcp", |
| 201 ] |
181 } | 202 } |
182 | 203 |
183 webrtc_fuzzer_test("audio_decoder_ilbc_fuzzer") { | 204 webrtc_fuzzer_test("audio_decoder_ilbc_fuzzer") { |
184 sources = [ | 205 sources = [ |
185 "audio_decoder_ilbc_fuzzer.cc", | 206 "audio_decoder_ilbc_fuzzer.cc", |
186 ] | 207 ] |
187 deps = [ | 208 deps = [ |
188 ":audio_decoder_fuzzer", | 209 ":audio_decoder_fuzzer", |
189 "../../modules/audio_coding:ilbc", | 210 "../../modules/audio_coding:ilbc", |
190 ] | 211 ] |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 deps = [ | 268 deps = [ |
248 "../../media:media", | 269 "../../media:media", |
249 ] | 270 ] |
250 } | 271 } |
251 | 272 |
252 webrtc_fuzzer_test("neteq_rtp_fuzzer") { | 273 webrtc_fuzzer_test("neteq_rtp_fuzzer") { |
253 sources = [ | 274 sources = [ |
254 "neteq_rtp_fuzzer.cc", | 275 "neteq_rtp_fuzzer.cc", |
255 ] | 276 ] |
256 deps = [ | 277 deps = [ |
| 278 "../../base:rtc_base_approved", |
257 "../../modules/audio_coding:neteq", | 279 "../../modules/audio_coding:neteq", |
258 "../../modules/audio_coding:neteq_test_minimal", | 280 "../../modules/audio_coding:neteq_test_minimal", |
| 281 "../../modules/audio_coding:neteq_unittest_tools", |
259 "../../modules/audio_coding:pcm16b", | 282 "../../modules/audio_coding:pcm16b", |
260 "../../modules/rtp_rtcp", | 283 "../../modules/rtp_rtcp", |
261 ] | 284 ] |
262 } | 285 } |
263 | 286 |
264 webrtc_fuzzer_test("sdp_parser_fuzzer") { | 287 webrtc_fuzzer_test("sdp_parser_fuzzer") { |
265 sources = [ | 288 sources = [ |
266 "sdp_parser_fuzzer.cc", | 289 "sdp_parser_fuzzer.cc", |
267 ] | 290 ] |
268 deps = [ | 291 deps = [ |
(...skipping 22 matching lines...) Expand all Loading... |
291 ] | 314 ] |
292 seed_corpus = "corpora/stun-corpus" | 315 seed_corpus = "corpora/stun-corpus" |
293 dict = "corpora/stun.tokens" | 316 dict = "corpora/stun.tokens" |
294 } | 317 } |
295 | 318 |
296 webrtc_fuzzer_test("pseudotcp_parser_fuzzer") { | 319 webrtc_fuzzer_test("pseudotcp_parser_fuzzer") { |
297 sources = [ | 320 sources = [ |
298 "pseudotcp_parser_fuzzer.cc", | 321 "pseudotcp_parser_fuzzer.cc", |
299 ] | 322 ] |
300 deps = [ | 323 deps = [ |
| 324 "../../base:rtc_base", |
301 "../../p2p:rtc_p2p", | 325 "../../p2p:rtc_p2p", |
302 ] | 326 ] |
303 } | 327 } |
304 | 328 |
305 webrtc_fuzzer_test("transport_feedback_packet_loss_tracker_fuzzer") { | 329 webrtc_fuzzer_test("transport_feedback_packet_loss_tracker_fuzzer") { |
306 sources = [ | 330 sources = [ |
307 "transport_feedback_packet_loss_tracker_fuzzer.cc", | 331 "transport_feedback_packet_loss_tracker_fuzzer.cc", |
308 ] | 332 ] |
309 deps = [ | 333 deps = [ |
| 334 "../../base:rtc_base_approved", |
310 "../../modules/rtp_rtcp", | 335 "../../modules/rtp_rtcp", |
311 "../../voice_engine", | 336 "../../voice_engine", |
312 ] | 337 ] |
313 } | 338 } |
OLD | NEW |