Index: webrtc/audio/BUILD.gn |
diff --git a/webrtc/audio/BUILD.gn b/webrtc/audio/BUILD.gn |
index a6a22e652cce5cad47874baebe00acf9c1649cc2..224ceebe255d3d24f00997c9b7a89838e838c17a 100644 |
--- a/webrtc/audio/BUILD.gn |
+++ b/webrtc/audio/BUILD.gn |
@@ -78,6 +78,10 @@ if (rtc_include_tests) { |
"//testing/gmock", |
"//testing/gtest", |
] |
+ if (rtc_enable_protobuf) { |
+ deps += [ ":low_bandwidth_audio_test" ] |
+ } |
+ |
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" ] |
@@ -87,15 +91,35 @@ if (rtc_include_tests) { |
if (rtc_enable_protobuf) { |
rtc_executable("low_bandwidth_audio_test") { |
testonly = true |
+ configs += [ "..:rtc_unittests_config" ] |
kjellander_webrtc
2017/03/17 07:11:41
Why do you need this? To disable the warnings list
oprypin_webrtc
2017/03/17 10:16:50
OK, turns out it's not needed, thanks.
|
sources = [ |
"test/low_bandwidth_audio_test.cc", |
+ "test/low_bandwidth_audio_test.h", |
] |
- deps = [] |
- |
+ deps = [ |
+ "../common_audio:common_audio", |
kjellander_webrtc
2017/03/17 07:11:41
Use "../common_audio" instead. It's the same (targ
oprypin_webrtc
2017/03/17 10:16:50
Done.
|
+ "../system_wrappers:metrics_default", |
+ "../system_wrappers:system_wrappers", |
kjellander_webrtc
2017/03/17 07:11:41
../system_wrappers is enough.
oprypin_webrtc
2017/03/17 10:16:50
Done.
|
+ "../test:fake_audio_device", |
+ "../test:run_test", |
+ "../test:test_common", |
+ "../test:test_main", |
+ ] |
if (is_android) { |
- deps += [ "//testing/android/native_test:native_test_support" ] |
+ deps += [ "//testing/android/native_test:native_test_native_code" ] |
+ } else { |
+ deps += [ "../modules/video_capture:video_capture_internal_impl" ] |
kjellander_webrtc
2017/03/17 07:11:41
What needs this? It seems we should try to move th
oprypin_webrtc
2017/03/17 10:16:50
Getting this error without this line:
../../webrtc
kjellander_webrtc
2017/03/17 10:37:18
Hmm, I'm unable to see what pulls that in. That ta
|
+ } |
+ |
+ data = [ |
+ "//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" ] |
kjellander_webrtc
2017/03/17 07:11:41
Is it possible to remove this or do you need it to
oprypin_webrtc
2017/03/17 10:16:50
Getting this error without this line:
In file incl
kjellander_webrtc
2017/03/17 10:37:18
I see. It's not your fault. Then we have to keep i
|
} |
} |
} |