| Index: webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc
|
| diff --git a/webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc b/webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc
|
| index edc2ecf6b2d0996c2c088df2aca674060862f57b..69bb7ed5da34b54ef5b950ec886403cb4c711378 100644
|
| --- a/webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc
|
| +++ b/webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc
|
| @@ -229,20 +229,8 @@ void RunTest(std::string out_path) {
|
| bool experimental_ns_enabled = false;
|
| bool debug_recording_started = false;
|
|
|
| -#if defined(WEBRTC_ANDROID)
|
| - std::string resource_path = "/sdcard/";
|
| -#else
|
| - std::string resource_path = webrtc::test::ProjectRootPath();
|
| - if (resource_path == webrtc::test::kCannotFindProjectRootDir) {
|
| - printf("*** Unable to get project root directory. "
|
| - "File playing may fail. ***\n");
|
| - // Fall back to the current directory.
|
| - resource_path = "./";
|
| - } else {
|
| - resource_path += "data/voice_engine/";
|
| - }
|
| -#endif
|
| - const std::string audio_filename = resource_path + "audio_long16.pcm";
|
| + const std::string audio_filename =
|
| + webrtc::test::ResourcePath("voice_engine/audio_long16", "pcm");
|
|
|
| const std::string play_filename = out_path + "recorded_playout.pcm";
|
| const std::string mic_filename = out_path + "recorded_mic.pcm";
|
|
|