| Index: webrtc/audio/BUILD.gn
|
| diff --git a/webrtc/audio/BUILD.gn b/webrtc/audio/BUILD.gn
|
| index 5296f1fa827f07963d513cdc56efd42d291fadb6..4fc73376910f9b1052e0eb734cb04ae6f4bec59d 100644
|
| --- a/webrtc/audio/BUILD.gn
|
| +++ b/webrtc/audio/BUILD.gn
|
| @@ -113,6 +113,8 @@ if (rtc_include_tests) {
|
| "../test:fake_audio_device",
|
| "../test:test_common",
|
| "../test:test_main",
|
| + "//testing/gmock",
|
| + "//testing/gtest",
|
| "//third_party/gflags",
|
| ]
|
| if (is_android) {
|
| @@ -122,6 +124,7 @@ if (rtc_include_tests) {
|
| data = [
|
| "../../resources/voice_engine/audio_tiny16.wav",
|
| "../../resources/voice_engine/audio_tiny48.wav",
|
| + "../../resources/voice_engine/audio_dtx16.wav",
|
| ]
|
|
|
| if (!build_with_chromium && is_clang) {
|
| @@ -130,4 +133,40 @@ if (rtc_include_tests) {
|
| }
|
| }
|
| }
|
| +
|
| + rtc_source_set("audio_perf_tests") {
|
| + testonly = true
|
| +
|
| + # Skip restricting visibility on mobile platforms since the tests on those
|
| + # gets additional generated targets which would require many lines here to
|
| + # cover (which would be confusing to read and hard to maintain).
|
| + if (!is_android && !is_ios) {
|
| + visibility = [ "//webrtc:webrtc_perf_tests" ]
|
| + }
|
| + sources = [
|
| + "test/audio_bwe_integration_test.cc",
|
| + "test/audio_bwe_integration_test.h",
|
| + ]
|
| + deps = [
|
| + "../base:rtc_base_approved",
|
| + "../common_audio",
|
| + "../system_wrappers",
|
| + "../test:fake_audio_device",
|
| + "../test:field_trial",
|
| + "../test:test_common",
|
| + "../test:test_main",
|
| + "//testing/gmock",
|
| + "//testing/gtest",
|
| + "//third_party/gflags",
|
| + ]
|
| +
|
| + data = [
|
| + "//resources/voice_engine/audio_dtx16.wav",
|
| + ]
|
| +
|
| + if (!build_with_chromium && is_clang) {
|
| + # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
| + suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
| + }
|
| + }
|
| }
|
|
|