Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: webrtc/test/BUILD.gn

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

Powered by Google App Engine
This is Rietveld 408576698