| OLD | NEW |
| 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2016 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("../build/webrtc.gni") | 9 import("../build/webrtc.gni") |
| 10 import("audio_coding/audio_coding.gni") | 10 import("audio_coding/audio_coding.gni") |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 videoprocessor_defines = [] | 59 videoprocessor_defines = [] |
| 60 if (rtc_use_h264) { | 60 if (rtc_use_h264) { |
| 61 videoprocessor_defines += [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ] | 61 videoprocessor_defines += [ "WEBRTC_VIDEOPROCESSOR_H264_TESTS" ] |
| 62 } | 62 } |
| 63 | 63 |
| 64 defines = audio_coding_defines + videoprocessor_defines | 64 defines = audio_coding_defines + videoprocessor_defines |
| 65 | 65 |
| 66 deps = [ | 66 deps = [ |
| 67 "..:webrtc_common", | 67 "..:webrtc_common", |
| 68 "../base:rtc_base", |
| 69 "../base:rtc_base_approved", |
| 68 "../common_video", | 70 "../common_video", |
| 69 "../media:rtc_media_base", | 71 "../media:rtc_media_base", |
| 70 "../modules/audio_coding", | 72 "../modules/audio_coding", |
| 71 "../modules/audio_coding:audio_format_conversion", | 73 "../modules/audio_coding:audio_format_conversion", |
| 74 "../modules/audio_coding:g711", |
| 72 "../modules/rtp_rtcp", | 75 "../modules/rtp_rtcp", |
| 73 "../modules/utility", | 76 "../modules/utility", |
| 74 "../modules/video_coding", | 77 "../modules/video_coding", |
| 75 "../modules/video_coding:video_codecs_test_framework", | 78 "../modules/video_coding:video_codecs_test_framework", |
| 79 "../modules/video_coding:webrtc_vp9", |
| 76 "../system_wrappers", | 80 "../system_wrappers", |
| 77 "../test:test_main", | 81 "../test:test_main", |
| 82 "../test:video_test_common", |
| 83 "audio_coding:builtin_audio_decoder_factory", |
| 84 "audio_coding:pcm16b_c", |
| 85 "desktop_capture:primitives", |
| 86 "video_coding:webrtc_h264", |
| 87 "video_coding:webrtc_vp8", |
| 78 "//testing/gmock", | 88 "//testing/gmock", |
| 79 "//testing/gtest", | 89 "//testing/gtest", |
| 80 ] | 90 ] |
| 81 | 91 |
| 82 sources = [ | 92 sources = [ |
| 83 "audio_coding/test/APITest.cc", | 93 "audio_coding/test/APITest.cc", |
| 84 "audio_coding/test/Channel.cc", | 94 "audio_coding/test/Channel.cc", |
| 85 "audio_coding/test/EncodeDecodeTest.cc", | 95 "audio_coding/test/EncodeDecodeTest.cc", |
| 86 "audio_coding/test/PCMFile.cc", | 96 "audio_coding/test/PCMFile.cc", |
| 87 "audio_coding/test/PacketLossTest.cc", | 97 "audio_coding/test/PacketLossTest.cc", |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 "audio_coding/audio_network_adaptor/bitrate_controller_unittest.cc", | 269 "audio_coding/audio_network_adaptor/bitrate_controller_unittest.cc", |
| 260 "audio_coding/audio_network_adaptor/channel_controller_unittest.cc", | 270 "audio_coding/audio_network_adaptor/channel_controller_unittest.cc", |
| 261 "audio_coding/audio_network_adaptor/controller_manager_unittest.cc", | 271 "audio_coding/audio_network_adaptor/controller_manager_unittest.cc", |
| 262 "audio_coding/audio_network_adaptor/dtx_controller_unittest.cc", | 272 "audio_coding/audio_network_adaptor/dtx_controller_unittest.cc", |
| 263 "audio_coding/audio_network_adaptor/fec_controller_unittest.cc", | 273 "audio_coding/audio_network_adaptor/fec_controller_unittest.cc", |
| 264 "audio_coding/audio_network_adaptor/frame_length_controller_unittest.cc", | 274 "audio_coding/audio_network_adaptor/frame_length_controller_unittest.cc", |
| 265 "audio_coding/audio_network_adaptor/mock/mock_controller.h", | 275 "audio_coding/audio_network_adaptor/mock/mock_controller.h", |
| 266 "audio_coding/audio_network_adaptor/mock/mock_controller_manager.h", | 276 "audio_coding/audio_network_adaptor/mock/mock_controller_manager.h", |
| 267 ] | 277 ] |
| 268 deps = [ | 278 deps = [ |
| 279 "../base:rtc_base_approved", |
| 280 "../system_wrappers:system_wrappers", |
| 281 "../test:field_trial", |
| 282 "../test:test_support", |
| 269 "audio_coding:audio_network_adaptor", | 283 "audio_coding:audio_network_adaptor", |
| 270 "//testing/gmock", | 284 "//testing/gmock", |
| 271 "//testing/gtest", | 285 "//testing/gtest", |
| 272 ] | 286 ] |
| 273 if (rtc_enable_protobuf) { | 287 if (rtc_enable_protobuf) { |
| 274 deps += [ "audio_coding:ana_config_proto" ] | 288 deps += [ "audio_coding:ana_config_proto" ] |
| 275 defines = [ "WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP" ] | 289 defines = [ "WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP" ] |
| 276 } | 290 } |
| 277 if (!build_with_chromium && is_clang) { | 291 if (!build_with_chromium && is_clang) { |
| 278 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 292 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 279 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 293 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 280 } | 294 } |
| 281 } | 295 } |
| 282 | 296 |
| 283 rtc_test("modules_unittests") { | 297 rtc_test("modules_unittests") { |
| 284 testonly = true | 298 testonly = true |
| 285 | 299 |
| 286 defines = audio_coding_defines | 300 defines = audio_coding_defines |
| 287 deps = [] | 301 deps = [ |
| 302 "../base:gtest_prod", |
| 303 "../base:rtc_task_queue", |
| 304 "../system_wrappers:metrics_default", |
| 305 "../test:field_trial", |
| 306 "../test:test_support_unittests", |
| 307 "audio_coding:audio_decoder_interface", |
| 308 "audio_coding:audio_encoder_interface", |
| 309 "audio_coding:audio_format_conversion", |
| 310 "audio_coding:g711", |
| 311 "audio_coding:ilbc", |
| 312 "audio_coding:isac_c", |
| 313 "audio_coding:rent_a_codec", |
| 314 "audio_processing:audioproc_debug_proto", |
| 315 "congestion_controller:congestion_controller", |
| 316 "desktop_capture:primitives", |
| 317 "video_coding:video_coding_utility", |
| 318 "video_coding:webrtc_h264", |
| 319 ] |
| 288 sources = [ | 320 sources = [ |
| 289 "audio_coding/acm2/acm_receiver_unittest.cc", | 321 "audio_coding/acm2/acm_receiver_unittest.cc", |
| 290 "audio_coding/acm2/audio_coding_module_unittest.cc", | 322 "audio_coding/acm2/audio_coding_module_unittest.cc", |
| 291 "audio_coding/acm2/call_statistics_unittest.cc", | 323 "audio_coding/acm2/call_statistics_unittest.cc", |
| 292 "audio_coding/acm2/codec_manager_unittest.cc", | 324 "audio_coding/acm2/codec_manager_unittest.cc", |
| 293 "audio_coding/acm2/rent_a_codec_unittest.cc", | 325 "audio_coding/acm2/rent_a_codec_unittest.cc", |
| 294 "audio_coding/codecs/audio_decoder_factory_unittest.cc", | 326 "audio_coding/codecs/audio_decoder_factory_unittest.cc", |
| 295 "audio_coding/codecs/cng/audio_encoder_cng_unittest.cc", | 327 "audio_coding/codecs/cng/audio_encoder_cng_unittest.cc", |
| 296 "audio_coding/codecs/cng/cng_unittest.cc", | 328 "audio_coding/codecs/cng/cng_unittest.cc", |
| 297 "audio_coding/codecs/ilbc/ilbc_unittest.cc", | 329 "audio_coding/codecs/ilbc/ilbc_unittest.cc", |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 if (rtc_desktop_capture_supported) { | 593 if (rtc_desktop_capture_supported) { |
| 562 deps += [ "desktop_capture:desktop_capture_mock" ] | 594 deps += [ "desktop_capture:desktop_capture_mock" ] |
| 563 sources += [ | 595 sources += [ |
| 564 "desktop_capture/desktop_and_cursor_composer_unittest.cc", | 596 "desktop_capture/desktop_and_cursor_composer_unittest.cc", |
| 565 "desktop_capture/desktop_capturer_differ_wrapper_unittest.cc", | 597 "desktop_capture/desktop_capturer_differ_wrapper_unittest.cc", |
| 566 "desktop_capture/desktop_frame_rotation_unittest.cc", | 598 "desktop_capture/desktop_frame_rotation_unittest.cc", |
| 567 "desktop_capture/mouse_cursor_monitor_unittest.cc", | 599 "desktop_capture/mouse_cursor_monitor_unittest.cc", |
| 568 "desktop_capture/rgba_color_unittest.cc", | 600 "desktop_capture/rgba_color_unittest.cc", |
| 569 "desktop_capture/screen_capturer_helper_unittest.cc", | 601 "desktop_capture/screen_capturer_helper_unittest.cc", |
| 570 "desktop_capture/screen_capturer_mac_unittest.cc", | 602 "desktop_capture/screen_capturer_mac_unittest.cc", |
| 571 "desktop_capture/screen_capturer_mock_objects.h", | |
| 572 "desktop_capture/screen_capturer_unittest.cc", | 603 "desktop_capture/screen_capturer_unittest.cc", |
| 573 "desktop_capture/test_utils.cc", | 604 "desktop_capture/test_utils.cc", |
| 574 "desktop_capture/test_utils.h", | 605 "desktop_capture/test_utils.h", |
| 575 "desktop_capture/test_utils_unittest.cc", | 606 "desktop_capture/test_utils_unittest.cc", |
| 576 "desktop_capture/win/cursor_unittest.cc", | 607 "desktop_capture/win/cursor_unittest.cc", |
| 577 "desktop_capture/win/cursor_unittest_resources.h", | 608 "desktop_capture/win/cursor_unittest_resources.h", |
| 578 "desktop_capture/win/cursor_unittest_resources.rc", | 609 "desktop_capture/win/cursor_unittest_resources.rc", |
| 579 "desktop_capture/window_capturer_unittest.cc", | 610 "desktop_capture/window_capturer_unittest.cc", |
| 580 ] | 611 ] |
| 581 } | 612 } |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 "video_processing", | 716 "video_processing", |
| 686 "//testing/gmock", | 717 "//testing/gmock", |
| 687 "//testing/gtest", | 718 "//testing/gtest", |
| 688 "//third_party/gflags", | 719 "//third_party/gflags", |
| 689 ] | 720 ] |
| 690 | 721 |
| 691 data = modules_unittests_resources | 722 data = modules_unittests_resources |
| 692 | 723 |
| 693 if (is_android) { | 724 if (is_android) { |
| 694 deps += [ | 725 deps += [ |
| 695 "//testing/android/native_test:native_test_support", | 726 "//testing/android/native_test:native_test_native_code", |
| 696 "//webrtc/sdk/android:libjingle_peerconnection_java", | 727 "//webrtc/sdk/android:libjingle_peerconnection_java", |
| 697 ] | 728 ] |
| 698 | 729 |
| 699 # Need to disable error due to the line in | 730 # Need to disable error due to the line in |
| 700 # base/android/jni_android.h triggering it: | 731 # base/android/jni_android.h triggering it: |
| 701 # const BASE_EXPORT jobject GetApplicationContext() | 732 # const BASE_EXPORT jobject GetApplicationContext() |
| 702 # error: type qualifiers ignored on function return type | 733 # error: type qualifiers ignored on function return type |
| 703 cflags = [ "-Wno-ignored-qualifiers" ] | 734 cflags = [ "-Wno-ignored-qualifiers" ] |
| 704 sources += [ | 735 sources += [ |
| 705 "audio_device/android/audio_device_unittest.cc", | 736 "audio_device/android/audio_device_unittest.cc", |
| (...skipping 17 matching lines...) Expand all Loading... |
| 723 sources += [ "audio_device/ios/audio_device_unittest_ios.cc" ] | 754 sources += [ "audio_device/ios/audio_device_unittest_ios.cc" ] |
| 724 } | 755 } |
| 725 | 756 |
| 726 ldflags = [ "-ObjC" ] | 757 ldflags = [ "-ObjC" ] |
| 727 } | 758 } |
| 728 } | 759 } |
| 729 | 760 |
| 730 rtc_test("bwe_simulator") { | 761 rtc_test("bwe_simulator") { |
| 731 testonly = true | 762 testonly = true |
| 732 | 763 |
| 733 deps = [] | 764 deps = [ |
| 765 "remote_bitrate_estimator:remote_bitrate_estimator", |
| 766 ] |
| 734 sources = [ | 767 sources = [ |
| 735 "remote_bitrate_estimator/bwe_simulations.cc", | 768 "remote_bitrate_estimator/bwe_simulations.cc", |
| 736 ] | 769 ] |
| 737 | 770 |
| 738 if (!build_with_chromium && is_clang) { | 771 if (!build_with_chromium && is_clang) { |
| 739 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 772 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 740 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 773 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 741 } | 774 } |
| 742 | 775 |
| 743 if (is_win) { | 776 if (is_win) { |
| 744 cflags = [ | 777 cflags = [ |
| 745 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. | 778 # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. |
| 746 "/wd4373", # virtual function override. | 779 "/wd4373", # virtual function override. |
| 747 ] | 780 ] |
| 748 } | 781 } |
| 749 | 782 |
| 750 deps += [ | 783 deps += [ |
| 751 "..:webrtc_common", | 784 "..:webrtc_common", |
| 752 "../base:rtc_base_approved", | 785 "../base:rtc_base_approved", |
| 753 "../test:test_common", | 786 "../test:test_common", |
| 754 "../test:test_main", | 787 "../test:test_main", |
| 755 "remote_bitrate_estimator:bwe_simulator_lib", | 788 "remote_bitrate_estimator:bwe_simulator_lib", |
| 756 "video_capture", | 789 "video_capture", |
| 757 "//testing/gmock", | 790 "//testing/gmock", |
| 758 "//testing/gtest", | 791 "//testing/gtest", |
| 759 "//third_party/gflags", | 792 "//third_party/gflags", |
| 760 ] | 793 ] |
| 761 } | 794 } |
| 762 } | 795 } |
| OLD | NEW |