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