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

Unified Diff: webrtc/modules/audio_coding/BUILD.gn

Issue 2180853006: GN conversion of audio_decoder_unittests (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added if clause for test to pass on android Created 4 years, 4 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 | « no previous file | webrtc/modules/audio_coding/audio_coding.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/BUILD.gn
diff --git a/webrtc/modules/audio_coding/BUILD.gn b/webrtc/modules/audio_coding/BUILD.gn
index 96c1ea981983f0e26a34040b15fae38c4dcbc628..add940d145866685f7237af3cb30a68547d17004 100644
--- a/webrtc/modules/audio_coding/BUILD.gn
+++ b/webrtc/modules/audio_coding/BUILD.gn
@@ -997,6 +997,47 @@ if (rtc_include_tests) {
]
} # insert_packet_with_timing
+ test("audio_decoder_unittests") {
+ testonly = true
+ sources = [
+ "neteq/audio_decoder_unittest.cc",
+ ]
+
+ configs += [ "../..:common_config" ]
+ public_configs = [ "../..:common_inherited_config" ]
+
+ if (is_clang) {
+ # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
+ configs -= [ "//build/config/clang:find_bad_constructs" ]
+ }
+
+ deps = []
+
+ defines = neteq_defines
+
+ deps += audio_coding_deps
+ deps += [
+ ":audio_decoder_interface",
+ ":isac",
+ ":isac_fix",
+ ":neteq",
+ ":neteq_unittest_tools",
+ "../../common_audio/",
+ "../../test:test_support_main",
+ "//testing/gtest",
+ ]
+
+ if (is_android) {
+ deps += [ "//testing/android/native_test:native_test_native_code" ]
+ }
+
+ if (is_android || is_ios) {
+ data = [
+ "//resources/audio_coding/testfile32kHz.pcm",
+ ]
+ }
+ } # audio_decoder_unittests
+
if (rtc_enable_protobuf) {
proto_library("neteq_unittest_proto") {
sources = [
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/audio_coding.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698