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

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

Issue 2292853002: GN: Fix resource files for iOS test target (Closed)
Patch Set: Moved declaration to before first use for 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
Index: webrtc/modules/audio_coding/BUILD.gn
diff --git a/webrtc/modules/audio_coding/BUILD.gn b/webrtc/modules/audio_coding/BUILD.gn
index 72a471d9a6ae496e67f15f776f22715ee1396fe8..27c1060e44d5dd09152ef73a9acb96b06ff555f8 100644
--- a/webrtc/modules/audio_coding/BUILD.gn
+++ b/webrtc/modules/audio_coding/BUILD.gn
@@ -981,6 +981,21 @@ if (rtc_include_tests) {
]
} # insert_packet_with_timing
+ if (is_android || is_ios) {
+ audio_decoder_unittests_resources =
+ [ "//resources/audio_coding/testfile32kHz.pcm" ]
+ }
+
+ if (is_ios) {
+ bundle_data("audio_decoder_unittests_bundle_data") {
+ testonly = true
+ sources = audio_decoder_unittests_resources
+ outputs = [
+ "{{bundle_resources_dir}}/{{source_file_part}}",
+ ]
+ }
+ }
+
test("audio_decoder_unittests") {
testonly = true
sources = [
@@ -1013,13 +1028,11 @@ if (rtc_include_tests) {
if (is_android) {
deps += [ "//testing/android/native_test:native_test_native_code" ]
+ data = audio_decoder_unittests_resources
shard_timeout = 900
}
-
- if (is_android || is_ios) {
- data = [
- "//resources/audio_coding/testfile32kHz.pcm",
- ]
+ if (is_ios) {
+ deps += [ ":audio_decoder_unittests_bundle_data" ]
}
} # audio_decoder_unittests
« no previous file with comments | « webrtc/modules/BUILD.gn ('k') | webrtc/test/BUILD.gn » ('j') | webrtc/tools/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698