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

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

Issue 2845323002: Enabling 'gn check' on webrtc/test. (Closed)
Patch Set: enabling check in .gn after chromium trybots Created 3 years, 7 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
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 "video_capturer.cc", 51 "video_capturer.cc",
52 "video_capturer.h", 52 "video_capturer.h",
53 ] 53 ]
54 54
55 if (!build_with_chromium && is_clang) { 55 if (!build_with_chromium && is_clang) {
56 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 56 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
57 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 57 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
58 } 58 }
59 59
60 deps = [ 60 deps = [
61 "..:video_stream_api",
62 "..:webrtc_common",
63 "../base:rtc_base_approved",
64 "../base:rtc_task_queue",
61 "../common_video", 65 "../common_video",
62 "../media:rtc_media_base", 66 "../media:rtc_media_base",
63 "../modules/video_capture:video_capture_module", 67 "../modules/video_capture:video_capture_module",
68 "../system_wrappers",
64 ] 69 ]
65 } 70 }
66 71
67 rtc_source_set("rtp_test_utils") { 72 rtc_source_set("rtp_test_utils") {
68 testonly = true 73 testonly = true
69 sources = [ 74 sources = [
70 "rtcp_packet_parser.cc", 75 "rtcp_packet_parser.cc",
71 "rtcp_packet_parser.h", 76 "rtcp_packet_parser.h",
72 "rtp_file_reader.cc", 77 "rtp_file_reader.cc",
73 "rtp_file_reader.h", 78 "rtp_file_reader.h",
74 "rtp_file_writer.cc", 79 "rtp_file_writer.cc",
75 "rtp_file_writer.h", 80 "rtp_file_writer.h",
76 ] 81 ]
77 82
78 if (!build_with_chromium && is_clang) { 83 if (!build_with_chromium && is_clang) {
79 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 84 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
80 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 85 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
81 } 86 }
82 87
83 deps = [ 88 deps = [
84 "..:webrtc_common", 89 "..:webrtc_common",
90 "../base:rtc_base_approved",
85 "../modules/rtp_rtcp", 91 "../modules/rtp_rtcp",
86 "//testing/gtest", 92 "//testing/gtest",
87 ] 93 ]
88 } 94 }
89 95
90 rtc_source_set("field_trial") { 96 rtc_source_set("field_trial") {
91 testonly = true 97 testonly = true
92 sources = [ 98 sources = [
93 "field_trial.cc", 99 "field_trial.cc",
94 "field_trial.h", 100 "field_trial.h",
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 testonly = true 164 testonly = true
159 sources = [ 165 sources = [
160 "test_main.cc", 166 "test_main.cc",
161 ] 167 ]
162 168
163 public_deps = [ 169 public_deps = [
164 ":test_support", 170 ":test_support",
165 ] 171 ]
166 deps = [ 172 deps = [
167 ":field_trial", 173 ":field_trial",
174 "../base:rtc_base_approved",
168 "../system_wrappers:metrics_default", 175 "../system_wrappers:metrics_default",
169 "//testing/gmock", 176 "//testing/gmock",
170 "//testing/gtest", 177 "//testing/gtest",
171 "//third_party/gflags", 178 "//third_party/gflags",
172 ] 179 ]
173 } 180 }
174 181
175 rtc_source_set("video_test_support") { 182 rtc_source_set("video_test_support") {
176 testonly = true 183 testonly = true
177 184
178 sources = [ 185 sources = [
179 "testsupport/frame_reader.h", 186 "testsupport/frame_reader.h",
180 "testsupport/frame_writer.h", 187 "testsupport/frame_writer.h",
181 "testsupport/metrics/video_metrics.cc", 188 "testsupport/metrics/video_metrics.cc",
182 "testsupport/metrics/video_metrics.h", 189 "testsupport/metrics/video_metrics.h",
183 "testsupport/mock/mock_frame_reader.h", 190 "testsupport/mock/mock_frame_reader.h",
184 "testsupport/mock/mock_frame_writer.h", 191 "testsupport/mock/mock_frame_writer.h",
185 "testsupport/y4m_frame_writer.cc", 192 "testsupport/y4m_frame_writer.cc",
186 "testsupport/yuv_frame_reader.cc", 193 "testsupport/yuv_frame_reader.cc",
187 "testsupport/yuv_frame_writer.cc", 194 "testsupport/yuv_frame_writer.cc",
188 ] 195 ]
189 196
190 deps = [ 197 deps = [
198 ":test_support",
199 ":video_test_common",
200 "..:webrtc_common",
191 "../base:rtc_base_approved", 201 "../base:rtc_base_approved",
192 "../common_video", 202 "../common_video",
193 "../system_wrappers", 203 "../system_wrappers",
194 "//testing/gmock", 204 "//testing/gmock",
195 "//testing/gtest", 205 "//testing/gtest",
196 "//third_party/gflags", 206 "//third_party/gflags",
197 ] 207 ]
198 208
199 public_deps = [ 209 public_deps = [
200 ":fileutils", 210 ":fileutils",
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 bundle_data("test_support_unittests_bundle_data") { 255 bundle_data("test_support_unittests_bundle_data") {
246 testonly = true 256 testonly = true
247 sources = test_support_unittests_resources 257 sources = test_support_unittests_resources
248 outputs = [ 258 outputs = [
249 "{{bundle_resources_dir}}/{{source_file_part}}", 259 "{{bundle_resources_dir}}/{{source_file_part}}",
250 ] 260 ]
251 } 261 }
252 } 262 }
253 263
254 rtc_test("test_support_unittests") { 264 rtc_test("test_support_unittests") {
255 deps = [] 265 deps = [
266 ":fake_audio_device",
267 ":rtp_test_utils",
268 "../api:video_frame_api",
269 "../base:rtc_base_approved",
270 "../call:call_interfaces",
271 "../common_audio",
272 "../modules/rtp_rtcp",
273 "../system_wrappers",
274 ]
256 sources = [ 275 sources = [
257 "fake_audio_device_unittest.cc", 276 "fake_audio_device_unittest.cc",
258 "fake_network_pipe_unittest.cc", 277 "fake_network_pipe_unittest.cc",
259 "frame_generator_unittest.cc", 278 "frame_generator_unittest.cc",
260 "rtp_file_reader_unittest.cc", 279 "rtp_file_reader_unittest.cc",
261 "rtp_file_writer_unittest.cc", 280 "rtp_file_writer_unittest.cc",
262 "testsupport/always_passing_unittest.cc", 281 "testsupport/always_passing_unittest.cc",
263 "testsupport/isolated_output_unittest.cc", 282 "testsupport/isolated_output_unittest.cc",
264 "testsupport/metrics/video_metrics_unittest.cc", 283 "testsupport/metrics/video_metrics_unittest.cc",
265 "testsupport/packet_reader_unittest.cc", 284 "testsupport/packet_reader_unittest.cc",
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 sources = [ 332 sources = [
314 "testsupport/fileutils.cc", 333 "testsupport/fileutils.cc",
315 "testsupport/fileutils.h", 334 "testsupport/fileutils.h",
316 ] 335 ]
317 deps = [] 336 deps = []
318 if (is_ios) { 337 if (is_ios) {
319 sources += [ "testsupport/iosfileutils.mm" ] 338 sources += [ "testsupport/iosfileutils.mm" ]
320 deps += [ "../sdk:rtc_sdk_helpers_objc" ] 339 deps += [ "../sdk:rtc_sdk_helpers_objc" ]
321 } 340 }
322 visibility = [ ":*" ] 341 visibility = [ ":*" ]
342 deps += [ "..:webrtc_common" ]
343 if (is_ios) {
344 deps += [
345 "../base:rtc_base_approved",
346 "../sdk:rtc_sdk_common_objc",
347 ]
348 }
349 if (is_win) {
350 deps += [ "../base:rtc_base" ]
351 }
323 } 352 }
324 353
325 rtc_source_set("run_test") { 354 rtc_source_set("run_test") {
326 testonly = true 355 testonly = true
327 sources = [ 356 sources = [
328 "run_test.h", 357 "run_test.h",
329 ] 358 ]
330 if (is_mac) { 359 if (is_mac) {
331 sources += [ "mac/run_test.mm" ] 360 sources += [ "mac/run_test.mm" ]
332 } else { 361 } else {
333 sources += [ "run_test.cc" ] 362 sources += [ "run_test.cc" ]
334 } 363 }
335 } 364 }
336 365
337 rtc_source_set("fileutils_unittests") { 366 rtc_source_set("fileutils_unittests") {
338 testonly = true 367 testonly = true
339 visibility = [ ":*" ] # Only targets in this file can depend on this. 368 visibility = [ ":*" ] # Only targets in this file can depend on this.
340 sources = [ 369 sources = [
341 "testsupport/fileutils_unittest.cc", 370 "testsupport/fileutils_unittest.cc",
342 ] 371 ]
343 deps = [ 372 deps = [
344 ":fileutils", 373 ":fileutils",
374 ":test_support",
345 "//testing/gmock", 375 "//testing/gmock",
346 "//testing/gtest", 376 "//testing/gtest",
347 ] 377 ]
348 } 378 }
349 379
350 rtc_source_set("direct_transport") { 380 rtc_source_set("direct_transport") {
351 testonly = true 381 testonly = true
352 sources = [ 382 sources = [
353 "direct_transport.cc", 383 "direct_transport.cc",
354 "direct_transport.h", 384 "direct_transport.h",
355 "fake_network_pipe.cc", 385 "fake_network_pipe.cc",
356 "fake_network_pipe.h", 386 "fake_network_pipe.h",
357 ] 387 ]
358 if (!build_with_chromium && is_clang) { 388 if (!build_with_chromium && is_clang) {
359 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 389 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
360 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 390 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
361 } 391 }
362 deps = [ 392 deps = [
393 "..:webrtc_common",
363 "../api:transport_api", 394 "../api:transport_api",
364 "../base:rtc_base_approved", 395 "../base:rtc_base_approved",
365 "../call", 396 "../call",
397 "../modules/rtp_rtcp",
398 "../system_wrappers",
366 ] 399 ]
367 } 400 }
368 401
369 rtc_source_set("fake_audio_device") { 402 rtc_source_set("fake_audio_device") {
370 testonly = true 403 testonly = true
371 sources = [ 404 sources = [
372 "fake_audio_device.cc", 405 "fake_audio_device.cc",
373 "fake_audio_device.h", 406 "fake_audio_device.h",
374 ] 407 ]
375 if (!build_with_chromium && is_clang) { 408 if (!build_with_chromium && is_clang) {
376 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 409 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
377 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 410 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
378 } 411 }
379 deps = [ 412 deps = [
413 "..:webrtc_common",
380 "../base:rtc_base_approved", 414 "../base:rtc_base_approved",
381 "../modules/audio_device:audio_device", 415 "../common_audio",
416 "../modules/audio_device",
417 "../system_wrappers",
382 ] 418 ]
383 } 419 }
384 420
385 rtc_source_set("test_common") { 421 rtc_source_set("test_common") {
386 testonly = true 422 testonly = true
387 sources = [ 423 sources = [
388 "call_test.cc", 424 "call_test.cc",
389 "call_test.h", 425 "call_test.h",
390 "configurable_frame_size_encoder.cc", 426 "configurable_frame_size_encoder.cc",
391 "configurable_frame_size_encoder.h", 427 "configurable_frame_size_encoder.h",
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 459 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
424 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 460 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
425 } 461 }
426 462
427 deps = [ 463 deps = [
428 ":direct_transport", 464 ":direct_transport",
429 ":fake_audio_device", 465 ":fake_audio_device",
430 ":rtp_test_utils", 466 ":rtp_test_utils",
431 ":test_support", 467 ":test_support",
432 ":video_test_common", 468 ":video_test_common",
469 "..:video_stream_api",
433 "..:webrtc_common", 470 "..:webrtc_common",
471 "../api:transport_api",
472 "../api:video_frame_api",
473 "../api/audio_codecs:builtin_audio_decoder_factory",
434 "../api/video_codecs:video_codecs_api", 474 "../api/video_codecs:video_codecs_api",
435 "../audio", 475 "../audio",
436 "../base:rtc_base_approved", 476 "../base:rtc_base_approved",
477 "../base:rtc_task_queue",
437 "../call", 478 "../call",
479 "../logging:rtc_event_log_api",
438 "../modules/audio_coding:builtin_audio_encoder_factory", 480 "../modules/audio_coding:builtin_audio_encoder_factory",
481 "../modules/audio_device:mock_audio_device",
439 "../modules/audio_mixer:audio_mixer_impl", 482 "../modules/audio_mixer:audio_mixer_impl",
440 "../modules/audio_processing", 483 "../modules/audio_processing",
484 "../modules/rtp_rtcp",
485 "../modules/video_coding:webrtc_h264",
486 "../modules/video_coding:webrtc_vp8",
487 "../modules/video_coding:webrtc_vp9",
488 "../system_wrappers",
441 "../video", 489 "../video",
490 "../voice_engine",
442 "//testing/gmock", 491 "//testing/gmock",
443 "//testing/gtest", 492 "//testing/gtest",
444 ] 493 ]
445 if (!is_android && !build_with_chromium) { 494 if (!is_android && !build_with_chromium) {
446 deps += [ "../modules/video_capture:video_capture_internal_impl" ] 495 deps += [ "../modules/video_capture:video_capture_internal_impl" ]
447 } 496 }
448 } 497 }
449 498
450 config("test_renderer_exported_config") { 499 config("test_renderer_exported_config") {
451 if (is_win && is_clang) { 500 if (is_win && is_clang) {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 556
508 public_configs = [ ":test_renderer_exported_config" ] 557 public_configs = [ ":test_renderer_exported_config" ]
509 558
510 if (!build_with_chromium && is_clang) { 559 if (!build_with_chromium && is_clang) {
511 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 560 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
512 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 561 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
513 } 562 }
514 563
515 deps = [ 564 deps = [
516 ":test_support", 565 ":test_support",
566 "..:webrtc_common",
567 "../base:rtc_base_approved",
568 "../common_video",
517 "../modules/media_file", 569 "../modules/media_file",
518 "//testing/gtest", 570 "//testing/gtest",
519 ] 571 ]
520 } 572 }
521 573
522 rtc_source_set("audio_codec_mocks") { 574 rtc_source_set("audio_codec_mocks") {
523 testonly = true 575 testonly = true
524 sources = [ 576 sources = [
525 "mock_audio_decoder.h", 577 "mock_audio_decoder.h",
526 "mock_audio_decoder_factory.h", 578 "mock_audio_decoder_factory.h",
527 ] 579 ]
580 deps = [
581 ":test_support",
582 "../api/audio_codecs:audio_codecs_api",
583 "../api/audio_codecs:builtin_audio_decoder_factory",
584 "../base:rtc_base_approved",
585 ]
528 } 586 }
OLDNEW
« .gn ('K') | « webrtc/sdk/BUILD.gn ('k') | webrtc/test/fuzzers/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698