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

Unified Diff: webrtc/modules/media_file/media_file_unittest.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/modules/BUILD.gn ('k') | webrtc/test/testsupport/fileutils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/media_file/media_file_unittest.cc
diff --git a/webrtc/modules/media_file/media_file_unittest.cc b/webrtc/modules/media_file/media_file_unittest.cc
index cbea836fcff189d23f82edec803fd31c81a1fcd2..5e70a5fc387e8e2e3d163892537f688fbb234660 100644
--- a/webrtc/modules/media_file/media_file_unittest.cc
+++ b/webrtc/modules/media_file/media_file_unittest.cc
@@ -37,8 +37,8 @@ class MediaFileTest : public testing::Test {
TEST_F(MediaFileTest, MAYBE_StartPlayingAudioFileWithoutError) {
// TODO(leozwang): Use hard coded filename here, we want to
// loop through all audio files in future
- const std::string audio_file = webrtc::test::ProjectRootPath() +
- "data/voice_engine/audio_tiny48.wav";
+ const std::string audio_file =
+ webrtc::test::ResourcePath("voice_engine/audio_tiny48", "wav");
ASSERT_EQ(0, media_file_->StartPlayingAudioFile(
audio_file.c_str(),
0,
« no previous file with comments | « webrtc/modules/BUILD.gn ('k') | webrtc/test/testsupport/fileutils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698