Index: webrtc/modules/audio_coding/BUILD.gn |
diff --git a/webrtc/modules/audio_coding/BUILD.gn b/webrtc/modules/audio_coding/BUILD.gn |
index 6d1c2f9a00199dc9738140418c50f797316cc9b9..f93ee66a2cc86f54ffb5f9b3b0978cd57a1d01ca 100644 |
--- a/webrtc/modules/audio_coding/BUILD.gn |
+++ b/webrtc/modules/audio_coding/BUILD.gn |
@@ -1385,6 +1385,22 @@ if (rtc_include_tests) { |
} |
} |
+ audio_codec_speed_tests_resources = [ |
+ "//resources/audio_coding/music_stereo_48kHz.pcm", |
+ "//resources/audio_coding/speech_mono_16kHz.pcm", |
+ "//resources/audio_coding/speech_mono_32_48kHz.pcm", |
+ ] |
+ |
+ if (is_ios) { |
+ bundle_data("audio_codec_speed_tests_data") { |
+ testonly = true |
+ sources = audio_codec_speed_tests_resources |
+ outputs = [ |
+ "{{bundle_resources_dir}}/{{source_file_part}}", |
+ ] |
+ } |
+ } |
+ |
rtc_test("audio_codec_speed_tests") { |
testonly = true |
defines = [] |
@@ -1401,11 +1417,17 @@ if (rtc_include_tests) { |
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
} |
+ data = audio_codec_speed_tests_resources |
+ |
if (is_android) { |
deps += [ "//testing/android/native_test:native_test_native_code" ] |
shard_timeout = 900 |
} |
+ if (is_ios) { |
+ deps += [ ":audio_codec_speed_tests_data" ] |
+ } |
+ |
deps += [ |
":isac_fix", |
":webrtc_opus", |