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 |