Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: webrtc/audio/BUILD.gn

Issue 2931873002: Test and fix for huge bwe drop after alr state. (Closed)
Patch Set: fix_for_unittest Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/audio/test/audio_bwe_integration_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/audio/BUILD.gn
diff --git a/webrtc/audio/BUILD.gn b/webrtc/audio/BUILD.gn
index 1757e4e0dd108c8953a2de56dcd5927ba4ecbc89..48a6706f2d16a11e990f98ee77c60b0639b0dde1 100644
--- a/webrtc/audio/BUILD.gn
+++ b/webrtc/audio/BUILD.gn
@@ -112,6 +112,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) {
@@ -121,6 +123,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) {
@@ -129,4 +132,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" ]
+ }
+ }
}
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/audio/test/audio_bwe_integration_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698