| 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", |
| 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 Loading... |
| 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 Loading... |
| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 ] | 326 ] |
| 308 } | 327 } |
| 309 } | 328 } |
| 310 | 329 |
| 311 rtc_source_set("fileutils") { | 330 rtc_source_set("fileutils") { |
| 312 testonly = true | 331 testonly = true |
| 313 sources = [ | 332 sources = [ |
| 314 "testsupport/fileutils.cc", | 333 "testsupport/fileutils.cc", |
| 315 "testsupport/fileutils.h", | 334 "testsupport/fileutils.h", |
| 316 ] | 335 ] |
| 336 deps = [ |
| 337 "..:webrtc_common", |
| 338 "../base:rtc_base_approved", |
| 339 ] |
| 317 if (is_ios) { | 340 if (is_ios) { |
| 318 sources += [ "testsupport/iosfileutils.mm" ] | 341 sources += [ "testsupport/iosfileutils.mm" ] |
| 319 deps = [ | 342 deps += [ "../sdk:objc_common" ] |
| 320 "../sdk:objc_common", | 343 } |
| 321 ] | 344 if (is_win) { |
| 345 deps += [ "../base:rtc_base" ] |
| 322 } | 346 } |
| 323 visibility = [ ":*" ] | 347 visibility = [ ":*" ] |
| 324 } | 348 } |
| 325 | 349 |
| 326 rtc_source_set("run_test") { | 350 rtc_source_set("run_test") { |
| 327 testonly = true | 351 testonly = true |
| 328 sources = [ | 352 sources = [ |
| 329 "run_test.h", | 353 "run_test.h", |
| 330 ] | 354 ] |
| 331 if (is_mac) { | 355 if (is_mac) { |
| 332 sources += [ "mac/run_test.mm" ] | 356 sources += [ "mac/run_test.mm" ] |
| 333 } else { | 357 } else { |
| 334 sources += [ "run_test.cc" ] | 358 sources += [ "run_test.cc" ] |
| 335 } | 359 } |
| 336 } | 360 } |
| 337 | 361 |
| 338 rtc_source_set("fileutils_unittests") { | 362 rtc_source_set("fileutils_unittests") { |
| 339 testonly = true | 363 testonly = true |
| 340 visibility = [ ":*" ] # Only targets in this file can depend on this. | 364 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 341 sources = [ | 365 sources = [ |
| 342 "testsupport/fileutils_unittest.cc", | 366 "testsupport/fileutils_unittest.cc", |
| 343 ] | 367 ] |
| 344 deps = [ | 368 deps = [ |
| 345 ":fileutils", | 369 ":fileutils", |
| 370 ":test_support", |
| 346 "//testing/gmock", | 371 "//testing/gmock", |
| 347 "//testing/gtest", | 372 "//testing/gtest", |
| 348 ] | 373 ] |
| 349 } | 374 } |
| 350 | 375 |
| 351 rtc_source_set("direct_transport") { | 376 rtc_source_set("direct_transport") { |
| 352 testonly = true | 377 testonly = true |
| 353 sources = [ | 378 sources = [ |
| 354 "direct_transport.cc", | 379 "direct_transport.cc", |
| 355 "direct_transport.h", | 380 "direct_transport.h", |
| 356 "fake_network_pipe.cc", | 381 "fake_network_pipe.cc", |
| 357 "fake_network_pipe.h", | 382 "fake_network_pipe.h", |
| 358 ] | 383 ] |
| 359 if (!build_with_chromium && is_clang) { | 384 if (!build_with_chromium && is_clang) { |
| 360 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 385 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 361 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 386 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 362 } | 387 } |
| 363 deps = [ | 388 deps = [ |
| 389 "..:webrtc_common", |
| 364 "../api:transport_api", | 390 "../api:transport_api", |
| 365 "../base:rtc_base_approved", | 391 "../base:rtc_base_approved", |
| 366 "../call", | 392 "../call", |
| 393 "../modules/rtp_rtcp", |
| 394 "../system_wrappers", |
| 367 ] | 395 ] |
| 368 } | 396 } |
| 369 | 397 |
| 370 rtc_source_set("fake_audio_device") { | 398 rtc_source_set("fake_audio_device") { |
| 371 testonly = true | 399 testonly = true |
| 372 sources = [ | 400 sources = [ |
| 373 "fake_audio_device.cc", | 401 "fake_audio_device.cc", |
| 374 "fake_audio_device.h", | 402 "fake_audio_device.h", |
| 375 ] | 403 ] |
| 376 if (!build_with_chromium && is_clang) { | 404 if (!build_with_chromium && is_clang) { |
| 377 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 405 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 378 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 406 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 379 } | 407 } |
| 380 deps = [ | 408 deps = [ |
| 409 "..:webrtc_common", |
| 381 "../base:rtc_base_approved", | 410 "../base:rtc_base_approved", |
| 411 "../common_audio:common_audio", |
| 382 "../modules/audio_device:audio_device", | 412 "../modules/audio_device:audio_device", |
| 413 "../system_wrappers:system_wrappers", |
| 383 ] | 414 ] |
| 384 } | 415 } |
| 385 | 416 |
| 386 rtc_source_set("test_common") { | 417 rtc_source_set("test_common") { |
| 387 testonly = true | 418 testonly = true |
| 388 sources = [ | 419 sources = [ |
| 389 "call_test.cc", | 420 "call_test.cc", |
| 390 "call_test.h", | 421 "call_test.h", |
| 391 "configurable_frame_size_encoder.cc", | 422 "configurable_frame_size_encoder.cc", |
| 392 "configurable_frame_size_encoder.h", | 423 "configurable_frame_size_encoder.h", |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 455 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 425 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 456 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 426 } | 457 } |
| 427 | 458 |
| 428 deps = [ | 459 deps = [ |
| 429 ":direct_transport", | 460 ":direct_transport", |
| 430 ":fake_audio_device", | 461 ":fake_audio_device", |
| 431 ":rtp_test_utils", | 462 ":rtp_test_utils", |
| 432 ":test_support", | 463 ":test_support", |
| 433 ":video_test_common", | 464 ":video_test_common", |
| 465 "..:video_stream_api", |
| 434 "..:webrtc_common", | 466 "..:webrtc_common", |
| 467 "../api:transport_api", |
| 468 "../api:video_frame_api", |
| 469 "../api/audio_codecs:builtin_audio_decoder_factory", |
| 435 "../api/audio_codecs:builtin_audio_encoder_factory", | 470 "../api/audio_codecs:builtin_audio_encoder_factory", |
| 436 "../api/video_codecs:video_codecs_api", | 471 "../api/video_codecs:video_codecs_api", |
| 437 "../audio", | 472 "../audio", |
| 438 "../base:rtc_base_approved", | 473 "../base:rtc_base_approved", |
| 474 "../base:rtc_task_queue", |
| 439 "../call", | 475 "../call", |
| 476 "../common_video", |
| 477 "../logging:rtc_event_log_api", |
| 478 "../modules/audio_device:mock_audio_device", |
| 440 "../modules/audio_mixer:audio_mixer_impl", | 479 "../modules/audio_mixer:audio_mixer_impl", |
| 441 "../modules/audio_processing", | 480 "../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", |
| 442 "../video", | 487 "../video", |
| 488 "../voice_engine", |
| 443 "//testing/gmock", | 489 "//testing/gmock", |
| 444 "//testing/gtest", | 490 "//testing/gtest", |
| 445 ] | 491 ] |
| 446 if (!is_android && !build_with_chromium) { | 492 if (!is_android && !build_with_chromium) { |
| 447 deps += [ "../modules/video_capture:video_capture_internal_impl" ] | 493 deps += [ "../modules/video_capture:video_capture_internal_impl" ] |
| 448 } | 494 } |
| 449 } | 495 } |
| 450 | 496 |
| 451 config("test_renderer_exported_config") { | 497 config("test_renderer_exported_config") { |
| 452 if (is_win && is_clang) { | 498 if (is_win && is_clang) { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 | 554 |
| 509 public_configs = [ ":test_renderer_exported_config" ] | 555 public_configs = [ ":test_renderer_exported_config" ] |
| 510 | 556 |
| 511 if (!build_with_chromium && is_clang) { | 557 if (!build_with_chromium && is_clang) { |
| 512 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 558 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 513 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 559 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 514 } | 560 } |
| 515 | 561 |
| 516 deps = [ | 562 deps = [ |
| 517 ":test_support", | 563 ":test_support", |
| 564 "..:webrtc_common", |
| 565 "../base:rtc_base_approved", |
| 566 "../common_video", |
| 518 "../modules/media_file", | 567 "../modules/media_file", |
| 519 "//testing/gtest", | 568 "//testing/gtest", |
| 520 ] | 569 ] |
| 521 } | 570 } |
| 522 | 571 |
| 523 rtc_source_set("audio_codec_mocks") { | 572 rtc_source_set("audio_codec_mocks") { |
| 524 testonly = true | 573 testonly = true |
| 525 sources = [ | 574 sources = [ |
| 526 "mock_audio_decoder.h", | 575 "mock_audio_decoder.h", |
| 527 "mock_audio_decoder_factory.h", | 576 "mock_audio_decoder_factory.h", |
| 528 "mock_audio_encoder.cc", | 577 "mock_audio_encoder.cc", |
| 529 "mock_audio_encoder.h", | 578 "mock_audio_encoder.h", |
| 530 "mock_audio_encoder_factory.h", | 579 "mock_audio_encoder_factory.h", |
| 531 ] | 580 ] |
| 532 | 581 |
| 533 deps = [ | 582 deps = [ |
| 583 ":test_support", |
| 534 "../api/audio_codecs:audio_codecs_api", | 584 "../api/audio_codecs:audio_codecs_api", |
| 585 "../api/audio_codecs:builtin_audio_decoder_factory", |
| 586 "../base:rtc_base_approved", |
| 535 "//testing/gmock", | 587 "//testing/gmock", |
| 536 ] | 588 ] |
| 537 } | 589 } |
| 538 | 590 |
| 539 if (!build_with_chromium && is_android) { | 591 if (!build_with_chromium && is_android) { |
| 540 android_library("native_test_java") { | 592 android_library("native_test_java") { |
| 541 testonly = true | 593 testonly = true |
| 542 java_files = [ | 594 java_files = [ |
| 543 "android/org/webrtc/native_test/RTCNativeUnitTest.java", | 595 "android/org/webrtc/native_test/RTCNativeUnitTest.java", |
| 544 "android/org/webrtc/native_test/RTCNativeUnitTestActivity.java", | 596 "android/org/webrtc/native_test/RTCNativeUnitTestActivity.java", |
| 545 ] | 597 ] |
| 546 deps = [ | 598 deps = [ |
| 547 "//testing/android/native_test:native_test_java", | 599 "//testing/android/native_test:native_test_java", |
| 548 "//webrtc/base:base_java", | 600 "//webrtc/base:base_java", |
| 549 ] | 601 ] |
| 550 } | 602 } |
| 551 } | 603 } |
| OLD | NEW |