OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 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/ui.gni") | 10 import("//build/config/ui.gni") |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 "video_capturer.cc", | 46 "video_capturer.cc", |
47 "video_capturer.h", | 47 "video_capturer.h", |
48 ] | 48 ] |
49 | 49 |
50 if (!build_with_chromium && is_clang) { | 50 if (!build_with_chromium && is_clang) { |
51 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 51 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
52 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 52 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
53 } | 53 } |
54 | 54 |
55 deps = [ | 55 deps = [ |
56 "..:webrtc_common", | |
57 "../base:rtc_base_approved", | |
58 "../base:rtc_task_queue", | |
59 "../common_video", | 56 "../common_video", |
60 "../media:rtc_media_base", | 57 "../media:rtc_media_base", |
61 "../modules/video_capture:video_capture_module", | 58 "../modules/video_capture:video_capture_module", |
62 "../system_wrappers", | |
63 ] | 59 ] |
64 } | 60 } |
65 | 61 |
66 rtc_source_set("rtp_test_utils") { | 62 rtc_source_set("rtp_test_utils") { |
67 testonly = true | 63 testonly = true |
68 sources = [ | 64 sources = [ |
69 "rtcp_packet_parser.cc", | 65 "rtcp_packet_parser.cc", |
70 "rtcp_packet_parser.h", | 66 "rtcp_packet_parser.h", |
71 "rtp_file_reader.cc", | 67 "rtp_file_reader.cc", |
72 "rtp_file_reader.h", | 68 "rtp_file_reader.h", |
73 "rtp_file_writer.cc", | 69 "rtp_file_writer.cc", |
74 "rtp_file_writer.h", | 70 "rtp_file_writer.h", |
75 ] | 71 ] |
76 | 72 |
77 if (!build_with_chromium && is_clang) { | 73 if (!build_with_chromium && is_clang) { |
78 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 74 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
79 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 75 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
80 } | 76 } |
81 | 77 |
82 deps = [ | 78 deps = [ |
83 "..:webrtc_common", | 79 "..:webrtc_common", |
84 "../base:rtc_base_approved", | |
85 "../modules/rtp_rtcp", | 80 "../modules/rtp_rtcp", |
86 "//testing/gtest", | 81 "//testing/gtest", |
87 ] | 82 ] |
88 } | 83 } |
89 | 84 |
90 rtc_source_set("field_trial") { | 85 rtc_source_set("field_trial") { |
91 testonly = true | 86 testonly = true |
92 sources = [ | 87 sources = [ |
93 "field_trial.cc", | 88 "field_trial.cc", |
94 "field_trial.h", | 89 "field_trial.h", |
(...skipping 10 matching lines...) Expand all Loading... |
105 testonly = true | 100 testonly = true |
106 sources = [ | 101 sources = [ |
107 "test_main.cc", | 102 "test_main.cc", |
108 ] | 103 ] |
109 | 104 |
110 public_deps = [ | 105 public_deps = [ |
111 ":test_support", | 106 ":test_support", |
112 ] | 107 ] |
113 deps = [ | 108 deps = [ |
114 ":field_trial", | 109 ":field_trial", |
115 "../base:rtc_base_approved", | |
116 "../system_wrappers:metrics_default", | 110 "../system_wrappers:metrics_default", |
117 "//testing/gmock", | 111 "//testing/gmock", |
118 "//testing/gtest", | 112 "//testing/gtest", |
119 "//third_party/gflags", | 113 "//third_party/gflags", |
120 ] | 114 ] |
121 } | 115 } |
122 | 116 |
123 rtc_source_set("fileutils") { | 117 rtc_source_set("fileutils") { |
124 testonly = true | 118 testonly = true |
125 sources = [ | 119 sources = [ |
126 "testsupport/fileutils.cc", | 120 "testsupport/fileutils.cc", |
127 "testsupport/fileutils.h", | 121 "testsupport/fileutils.h", |
128 ] | 122 ] |
129 if (is_ios) { | 123 if (is_ios) { |
130 sources += [ "testsupport/iosfileutils.mm" ] | 124 sources += [ "testsupport/iosfileutils.mm" ] |
131 configs += [ "//build/config/compiler:enable_arc" ] | 125 configs += [ "//build/config/compiler:enable_arc" ] |
132 } | 126 } |
133 visibility = [ ":*" ] | 127 visibility = [ ":*" ] |
134 deps = [ | |
135 "..:webrtc_common", | |
136 "../base:rtc_base_approved", | |
137 ] | |
138 if (is_ios) { | |
139 deps += [ "../sdk:rtc_sdk_common_objc" ] | |
140 } | |
141 if (is_win) { | |
142 deps += [ "../base:rtc_base" ] | |
143 } | |
144 } | 128 } |
145 | 129 |
146 rtc_source_set("video_test_support") { | 130 rtc_source_set("video_test_support") { |
147 testonly = true | 131 testonly = true |
148 | 132 |
149 sources = [ | 133 sources = [ |
150 "testsupport/frame_reader.h", | 134 "testsupport/frame_reader.h", |
151 "testsupport/frame_writer.h", | 135 "testsupport/frame_writer.h", |
152 "testsupport/metrics/video_metrics.cc", | 136 "testsupport/metrics/video_metrics.cc", |
153 "testsupport/metrics/video_metrics.h", | 137 "testsupport/metrics/video_metrics.h", |
154 "testsupport/mock/mock_frame_reader.h", | 138 "testsupport/mock/mock_frame_reader.h", |
155 "testsupport/mock/mock_frame_writer.h", | 139 "testsupport/mock/mock_frame_writer.h", |
156 "testsupport/y4m_frame_writer.cc", | 140 "testsupport/y4m_frame_writer.cc", |
157 "testsupport/yuv_frame_reader.cc", | 141 "testsupport/yuv_frame_reader.cc", |
158 "testsupport/yuv_frame_writer.cc", | 142 "testsupport/yuv_frame_writer.cc", |
159 ] | 143 ] |
160 | 144 |
161 deps = [ | 145 deps = [ |
162 ":test_support", | |
163 ":video_test_common", | |
164 "..:webrtc_common", | |
165 "../base:rtc_base_approved", | 146 "../base:rtc_base_approved", |
166 "../common_video", | 147 "../common_video", |
167 "../system_wrappers", | 148 "../system_wrappers", |
168 "//testing/gmock", | 149 "//testing/gmock", |
169 "//testing/gtest", | 150 "//testing/gtest", |
170 "//third_party/gflags", | 151 "//third_party/gflags", |
171 ] | 152 ] |
172 | 153 |
173 public_deps = [ | 154 public_deps = [ |
174 ":fileutils", | 155 ":fileutils", |
(...skipping 28 matching lines...) Expand all Loading... |
203 "testsupport/packet_reader.cc", | 184 "testsupport/packet_reader.cc", |
204 "testsupport/packet_reader.h", | 185 "testsupport/packet_reader.h", |
205 "testsupport/perf_test.cc", | 186 "testsupport/perf_test.cc", |
206 "testsupport/perf_test.h", | 187 "testsupport/perf_test.h", |
207 "testsupport/trace_to_stderr.cc", | 188 "testsupport/trace_to_stderr.cc", |
208 "testsupport/trace_to_stderr.h", | 189 "testsupport/trace_to_stderr.h", |
209 "testsupport/unittest_utils.h", | 190 "testsupport/unittest_utils.h", |
210 ] | 191 ] |
211 | 192 |
212 deps = [ | 193 deps = [ |
213 "..:webrtc_common", | |
214 "../base:gtest_prod", | 194 "../base:gtest_prod", |
215 "../base:rtc_base_approved", | 195 "../base:rtc_base_approved", |
216 "../common_video", | 196 "../common_video", |
217 "../system_wrappers", | 197 "../system_wrappers", |
218 "//testing/gmock", | 198 "//testing/gmock", |
219 "//testing/gtest", | 199 "//testing/gtest", |
220 "//third_party/gflags", | 200 "//third_party/gflags", |
221 ] | 201 ] |
222 | 202 |
223 public_deps = [ | 203 public_deps = [ |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 deps += [ "//testing/android/native_test:native_test_support" ] | 289 deps += [ "//testing/android/native_test:native_test_support" ] |
310 shard_timeout = 900 | 290 shard_timeout = 900 |
311 } | 291 } |
312 | 292 |
313 if (is_ios) { | 293 if (is_ios) { |
314 deps += [ ":test_support_unittests_bundle_data" ] | 294 deps += [ ":test_support_unittests_bundle_data" ] |
315 } | 295 } |
316 | 296 |
317 deps += [ | 297 deps += [ |
318 ":direct_transport", | 298 ":direct_transport", |
319 ":fake_audio_device", | |
320 ":fileutils_unittests", | 299 ":fileutils_unittests", |
321 ":rtp_test_utils", | |
322 ":test_common", | 300 ":test_common", |
323 ":test_main", | 301 ":test_main", |
324 ":video_test_common", | 302 ":video_test_common", |
325 ":video_test_support", | 303 ":video_test_support", |
326 "../api:video_frame_api", | |
327 "../base:rtc_base_approved", | |
328 "../call:call_interfaces", | |
329 "../common_audio", | |
330 "../modules/rtp_rtcp", | |
331 "../modules/video_capture", | 304 "../modules/video_capture", |
332 "../system_wrappers", | |
333 "//testing/gmock", | 305 "//testing/gmock", |
334 "//testing/gtest", | 306 "//testing/gtest", |
335 "//third_party/gflags", | 307 "//third_party/gflags", |
336 ] | 308 ] |
337 } | 309 } |
338 rtc_source_set("fileutils_unittests") { | 310 rtc_source_set("fileutils_unittests") { |
339 testonly = true | 311 testonly = true |
340 sources = [ | 312 sources = [ |
341 "testsupport/fileutils_unittest.cc", | 313 "testsupport/fileutils_unittest.cc", |
342 ] | 314 ] |
343 deps = [ | 315 deps = [ |
344 ":fileutils", | 316 ":fileutils", |
345 ":test_support", | |
346 "//testing/gmock", | 317 "//testing/gmock", |
347 "//testing/gtest", | 318 "//testing/gtest", |
348 ] | 319 ] |
349 } | 320 } |
350 | 321 |
351 rtc_source_set("direct_transport") { | 322 rtc_source_set("direct_transport") { |
352 testonly = true | 323 testonly = true |
353 sources = [ | 324 sources = [ |
354 "direct_transport.cc", | 325 "direct_transport.cc", |
355 "direct_transport.h", | 326 "direct_transport.h", |
356 "fake_network_pipe.cc", | 327 "fake_network_pipe.cc", |
357 "fake_network_pipe.h", | 328 "fake_network_pipe.h", |
358 ] | 329 ] |
359 if (!build_with_chromium && is_clang) { | 330 if (!build_with_chromium && is_clang) { |
360 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 331 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
361 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 332 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
362 } | 333 } |
363 deps = [ | 334 deps = [ |
364 "..:webrtc_common", | |
365 "../api:transport_api", | 335 "../api:transport_api", |
366 "../base:rtc_base_approved", | 336 "../base:rtc_base_approved", |
367 "../call", | 337 "../call", |
368 "../modules/rtp_rtcp", | |
369 "../system_wrappers", | |
370 ] | 338 ] |
371 } | 339 } |
372 | 340 |
373 rtc_source_set("fake_audio_device") { | 341 rtc_source_set("fake_audio_device") { |
374 testonly = true | 342 testonly = true |
375 sources = [ | 343 sources = [ |
376 "fake_audio_device.cc", | 344 "fake_audio_device.cc", |
377 "fake_audio_device.h", | 345 "fake_audio_device.h", |
378 ] | 346 ] |
379 if (!build_with_chromium && is_clang) { | 347 if (!build_with_chromium && is_clang) { |
380 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 348 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
381 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 349 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
382 } | 350 } |
383 deps = [ | 351 deps = [ |
384 "..:webrtc_common", | |
385 "../base:rtc_base_approved", | 352 "../base:rtc_base_approved", |
386 "../common_audio", | 353 "../modules/audio_device:audio_device", |
387 "../modules/audio_device", | |
388 "../system_wrappers", | |
389 ] | 354 ] |
390 } | 355 } |
391 | 356 |
392 rtc_source_set("test_common") { | 357 rtc_source_set("test_common") { |
393 testonly = true | 358 testonly = true |
394 sources = [ | 359 sources = [ |
395 "call_test.cc", | 360 "call_test.cc", |
396 "call_test.h", | 361 "call_test.h", |
397 "configurable_frame_size_encoder.cc", | 362 "configurable_frame_size_encoder.cc", |
398 "configurable_frame_size_encoder.h", | 363 "configurable_frame_size_encoder.h", |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 396 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
432 } | 397 } |
433 | 398 |
434 deps = [ | 399 deps = [ |
435 ":direct_transport", | 400 ":direct_transport", |
436 ":fake_audio_device", | 401 ":fake_audio_device", |
437 ":rtp_test_utils", | 402 ":rtp_test_utils", |
438 ":test_support", | 403 ":test_support", |
439 ":video_test_common", | 404 ":video_test_common", |
440 "..:webrtc_common", | 405 "..:webrtc_common", |
441 "../api:transport_api", | |
442 "../api:video_frame_api", | |
443 "../api/audio_codecs:builtin_audio_decoder_factory", | |
444 "../api/video_codecs:video_codecs_api", | 406 "../api/video_codecs:video_codecs_api", |
445 "../audio", | 407 "../audio", |
446 "../base:rtc_base_approved", | 408 "../base:rtc_base_approved", |
447 "../base:rtc_task_queue", | |
448 "../call", | 409 "../call", |
449 "../logging:rtc_event_log_api", | |
450 "../modules/audio_device:mock_audio_device", | |
451 "../modules/audio_mixer:audio_mixer_impl", | 410 "../modules/audio_mixer:audio_mixer_impl", |
452 "../modules/audio_processing", | 411 "../modules/audio_processing", |
453 "../modules/rtp_rtcp:rtp_rtcp", | |
454 "../modules/video_coding:webrtc_h264", | |
455 "../modules/video_coding:webrtc_vp8", | |
456 "../modules/video_coding:webrtc_vp9", | |
457 "../system_wrappers", | |
458 "../video", | 412 "../video", |
459 "../voice_engine", | |
460 "//testing/gmock", | 413 "//testing/gmock", |
461 "//testing/gtest", | 414 "//testing/gtest", |
462 ] | 415 ] |
463 if (!is_android) { | 416 if (!is_android) { |
464 deps += [ "../modules/video_capture:video_capture_internal_impl" ] | 417 deps += [ "../modules/video_capture:video_capture_internal_impl" ] |
465 } | 418 } |
466 } | 419 } |
467 | 420 |
468 config("test_renderer_exported_config") { | 421 config("test_renderer_exported_config") { |
469 if (is_win && is_clang) { | 422 if (is_win && is_clang) { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 | 478 |
526 public_configs = [ ":test_renderer_exported_config" ] | 479 public_configs = [ ":test_renderer_exported_config" ] |
527 | 480 |
528 if (!build_with_chromium && is_clang) { | 481 if (!build_with_chromium && is_clang) { |
529 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 482 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
530 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 483 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
531 } | 484 } |
532 | 485 |
533 deps = [ | 486 deps = [ |
534 ":test_support", | 487 ":test_support", |
535 "..:webrtc_common", | |
536 "../base:rtc_base_approved", | |
537 "../common_video", | |
538 "../modules/media_file", | 488 "../modules/media_file", |
539 "//testing/gtest", | 489 "//testing/gtest", |
540 ] | 490 ] |
541 } | 491 } |
542 | 492 |
543 rtc_source_set("audio_codec_mocks") { | 493 rtc_source_set("audio_codec_mocks") { |
544 testonly = true | 494 testonly = true |
545 sources = [ | 495 sources = [ |
546 "mock_audio_decoder.h", | 496 "mock_audio_decoder.h", |
547 "mock_audio_decoder_factory.h", | 497 "mock_audio_decoder_factory.h", |
548 ] | 498 ] |
549 deps = [ | |
550 ":test_support", | |
551 "../api/audio_codecs:audio_codecs_api", | |
552 "../api/audio_codecs:builtin_audio_decoder_factory", | |
553 "../base:rtc_base_approved", | |
554 ] | |
555 } | 499 } |
OLD | NEW |