| OLD | NEW |
| 1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2015 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 if (is_android) { | 10 if (is_android) { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 "../modules/pacing:pacing", | 51 "../modules/pacing:pacing", |
| 52 "../modules/remote_bitrate_estimator:remote_bitrate_estimator", | 52 "../modules/remote_bitrate_estimator:remote_bitrate_estimator", |
| 53 "../modules/rtp_rtcp:rtp_rtcp", | 53 "../modules/rtp_rtcp:rtp_rtcp", |
| 54 "../rtc_base:rtc_base_approved", | 54 "../rtc_base:rtc_base_approved", |
| 55 "../rtc_base:rtc_task_queue", | 55 "../rtc_base:rtc_task_queue", |
| 56 "../system_wrappers", | 56 "../system_wrappers", |
| 57 "../voice_engine", | 57 "../voice_engine", |
| 58 ] | 58 ] |
| 59 } | 59 } |
| 60 if (rtc_include_tests) { | 60 if (rtc_include_tests) { |
| 61 rtc_source_set("audio_end_to_end_test") { |
| 62 testonly = true |
| 63 |
| 64 sources = [ |
| 65 "test/audio_end_to_end_test.cc", |
| 66 "test/audio_end_to_end_test.h", |
| 67 ] |
| 68 deps = [ |
| 69 ":audio", |
| 70 "../system_wrappers:system_wrappers", |
| 71 "../test:fake_audio_device", |
| 72 "../test:test_common", |
| 73 "../test:test_support", |
| 74 ] |
| 75 |
| 76 if (!build_with_chromium && is_clang) { |
| 77 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 78 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 79 } |
| 80 } |
| 81 |
| 61 rtc_source_set("audio_tests") { | 82 rtc_source_set("audio_tests") { |
| 62 testonly = true | 83 testonly = true |
| 63 | 84 |
| 64 # Skip restricting visibility on mobile platforms since the tests on those | 85 # Skip restricting visibility on mobile platforms since the tests on those |
| 65 # gets additional generated targets which would require many lines here to | 86 # gets additional generated targets which would require many lines here to |
| 66 # cover (which would be confusing to read and hard to maintain). | 87 # cover (which would be confusing to read and hard to maintain). |
| 67 if (!is_android && !is_ios) { | 88 if (!is_android && !is_ios) { |
| 68 visibility = [ "..:video_engine_tests" ] | 89 visibility = [ "..:video_engine_tests" ] |
| 69 } | 90 } |
| 70 | 91 |
| 71 # TODO(kjellander): Remove (bugs.webrtc.org/6828) | 92 # TODO(kjellander): Remove (bugs.webrtc.org/6828) |
| 72 # This needs remote_bitrate_estimator to be moved to webrtc/api first. | 93 # This needs remote_bitrate_estimator to be moved to webrtc/api first. |
| 73 check_includes = false | 94 check_includes = false |
| 74 | 95 |
| 75 sources = [ | 96 sources = [ |
| 76 "audio_receive_stream_unittest.cc", | 97 "audio_receive_stream_unittest.cc", |
| 77 "audio_send_stream_unittest.cc", | 98 "audio_send_stream_unittest.cc", |
| 78 "audio_state_unittest.cc", | 99 "audio_state_unittest.cc", |
| 79 "time_interval_unittest.cc", | 100 "time_interval_unittest.cc", |
| 80 ] | 101 ] |
| 81 deps = [ | 102 deps = [ |
| 82 ":audio", | 103 ":audio", |
| 104 ":audio_end_to_end_test", |
| 83 "../api:mock_audio_mixer", | 105 "../api:mock_audio_mixer", |
| 84 "../call:rtp_receiver", | 106 "../call:rtp_receiver", |
| 85 "../modules/audio_device:mock_audio_device", | 107 "../modules/audio_device:mock_audio_device", |
| 86 "../modules/audio_mixer:audio_mixer_impl", | 108 "../modules/audio_mixer:audio_mixer_impl", |
| 87 "../modules/congestion_controller:congestion_controller", | 109 "../modules/congestion_controller:congestion_controller", |
| 88 "../modules/congestion_controller:mock_congestion_controller", | 110 "../modules/congestion_controller:mock_congestion_controller", |
| 89 "../modules/pacing:pacing", | 111 "../modules/pacing:pacing", |
| 90 "../rtc_base:rtc_base_approved", | 112 "../rtc_base:rtc_base_approved", |
| 91 "../rtc_base:rtc_task_queue", | 113 "../rtc_base:rtc_task_queue", |
| 92 "../test:test_common", | 114 "../test:test_common", |
| 93 "../test:test_support", | 115 "../test:test_support", |
| 94 "utility:utility_tests", | 116 "utility:utility_tests", |
| 95 "//testing/gmock", | 117 "//testing/gmock", |
| 96 "//testing/gtest", | 118 "//testing/gtest", |
| 97 ] | 119 ] |
| 98 | 120 |
| 121 if (!rtc_use_memcheck) { |
| 122 # This test is timing dependent, which rules out running on memcheck bots. |
| 123 sources += [ "test/audio_stats_test.cc" ] |
| 124 } |
| 125 |
| 99 if (!build_with_chromium && is_clang) { | 126 if (!build_with_chromium && is_clang) { |
| 100 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 127 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 101 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 128 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 102 } | 129 } |
| 103 } | 130 } |
| 104 | 131 |
| 105 if (rtc_enable_protobuf) { | 132 if (rtc_enable_protobuf) { |
| 106 rtc_test("low_bandwidth_audio_test") { | 133 rtc_test("low_bandwidth_audio_test") { |
| 107 testonly = true | 134 testonly = true |
| 108 | 135 |
| 109 sources = [ | 136 sources = [ |
| 110 "test/low_bandwidth_audio_test.cc", | 137 "test/low_bandwidth_audio_test.cc", |
| 111 "test/low_bandwidth_audio_test.h", | |
| 112 ] | 138 ] |
| 113 | 139 |
| 114 deps = [ | 140 deps = [ |
| 141 ":audio_end_to_end_test", |
| 115 "../common_audio", | 142 "../common_audio", |
| 116 "../rtc_base:rtc_base_approved", | 143 "../rtc_base:rtc_base_approved", |
| 117 "../system_wrappers", | 144 "../system_wrappers", |
| 118 "../test:fake_audio_device", | 145 "../test:fake_audio_device", |
| 119 "../test:test_common", | 146 "../test:test_common", |
| 120 "../test:test_main", | 147 "../test:test_main", |
| 121 "//testing/gmock", | 148 "//testing/gmock", |
| 122 "//testing/gtest", | 149 "//testing/gtest", |
| 123 ] | 150 ] |
| 124 if (is_android) { | 151 if (is_android) { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 data = [ | 194 data = [ |
| 168 "//resources/voice_engine/audio_dtx16.wav", | 195 "//resources/voice_engine/audio_dtx16.wav", |
| 169 ] | 196 ] |
| 170 | 197 |
| 171 if (!build_with_chromium && is_clang) { | 198 if (!build_with_chromium && is_clang) { |
| 172 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 199 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 173 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 200 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 174 } | 201 } |
| 175 } | 202 } |
| 176 } | 203 } |
| OLD | NEW |