From 81f1da3dd0d61ba11540f5d143a73c4d80ab76c0 Mon Sep 17 00:00:00 2001 From: minyue Date: Thu, 27 Jul 2017 05:49:57 -0700 Subject: [PATCH] Adding missing resources to audio_codec_speed_tests. BUG=none Review-Url: https://codereview.webrtc.org/2727973004 Cr-Commit-Position: refs/heads/master@{#19168} --- webrtc/modules/audio_coding/BUILD.gn | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/webrtc/modules/audio_coding/BUILD.gn b/webrtc/modules/audio_coding/BUILD.gn index fa5508e3b3..a6da30e0fe 100644 --- a/webrtc/modules/audio_coding/BUILD.gn +++ b/webrtc/modules/audio_coding/BUILD.gn @@ -1551,6 +1551,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 = [] @@ -1567,11 +1583,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",