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

Unified Diff: webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc

Issue 2513363004: WebRTC: Replace ProjectRootPath by ResourcePath (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « webrtc/voice_engine/test/auto_test/voe_standard_test.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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";
« no previous file with comments | « webrtc/voice_engine/test/auto_test/voe_standard_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698