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