Reland "Split perf-test-specific resources in low_bandwidth_audio_test"
This is a reland of 4bbc150b18e961811991e3e524378e703b6d5b31
Now using rtc_source_set to be able to generate runtime deps
Original change's description:
> Split perf-test-specific resources in low_bandwidth_audio_test
>
> Bug: chromium:755660
> Change-Id: I7c60a47b26ad86892218497f28a09a04574077e6
> Reviewed-on: https://webrtc-review.googlesource.com/61961
> Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
> Commit-Queue: Oleh Prypin <oprypin@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#22439}
No-Try: True
Bug: chromium:755660
Change-Id: I66eda6f016c98e2a8a99f230d9e0323cc09e4976
Reviewed-on: https://webrtc-review.googlesource.com/62020
Commit-Queue: Oleh Prypin <oprypin@webrtc.org>
Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22450}
diff --git a/audio/BUILD.gn b/audio/BUILD.gn
index 39a1db3..0ef6f0a 100644
--- a/audio/BUILD.gn
+++ b/audio/BUILD.gn
@@ -188,7 +188,23 @@
}
data = [
- "../resources/voice_engine/audio_dtx16.wav",
+ "../resources/voice_engine/audio_tiny16.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" ]
+ }
+ }
+
+ rtc_source_set("low_bandwidth_audio_perf_test") {
+ testonly = true
+
+ deps = [
+ ":low_bandwidth_audio_test",
+ ]
+
+ data = [
"../resources/voice_engine/audio_tiny16.wav",
"../resources/voice_engine/audio_tiny48.wav",
"test/low_bandwidth_audio_test.py",
@@ -210,11 +226,6 @@
if (is_mac) {
data += [ "../tools_webrtc/audio_quality/mac/pesq" ]
}
-
- 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" ]
- }
}
}
diff --git a/tools_webrtc/mb/gn_isolate_map.pyl b/tools_webrtc/mb/gn_isolate_map.pyl
index 3dbb4a8..8c7a887 100644
--- a/tools_webrtc/mb/gn_isolate_map.pyl
+++ b/tools_webrtc/mb/gn_isolate_map.pyl
@@ -67,7 +67,7 @@
],
},
"low_bandwidth_audio_perf_test": {
- "label": "//audio:low_bandwidth_audio_test",
+ "label": "//audio:low_bandwidth_audio_perf_test",
"type": "script",
"script": "//audio/test/low_bandwidth_audio_test.py",
"args": [