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

Unified Diff: webrtc/test/testsupport/fileutils.cc

Issue 2352063002: Fix modules_unittests on iOS. (Closed)
Patch Set: fix the fixed sizes Created 4 years, 3 months 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
Index: webrtc/test/testsupport/fileutils.cc
diff --git a/webrtc/test/testsupport/fileutils.cc b/webrtc/test/testsupport/fileutils.cc
index ef8e5d5c8d6cc37f56b05bb3f539037e5ac9e80d..fb66a1a95d1fb0709f4e78e8d9a46443c21c6f58 100644
--- a/webrtc/test/testsupport/fileutils.cc
+++ b/webrtc/test/testsupport/fileutils.cc
@@ -45,6 +45,7 @@ namespace test {
#if defined(WEBRTC_IOS)
// Defined in iosfileutils.mm. No header file to discourage use elsewhere.
std::string IOSOutputPath();
+std::string IOSRootPath();
std::string IOSResourcePath(std::string name, std::string extension);
#endif
@@ -119,6 +120,9 @@ std::string WorkingDir() {
#else // WEBRTC_ANDROID
std::string ProjectRootPath() {
+#if defined(WEBRTC_IOS)
+ return IOSRootPath();
+#else
std::string path = WorkingDir();
if (path == kFallbackPath) {
return kCannotFindProjectRootDir;
@@ -141,6 +145,7 @@ std::string ProjectRootPath() {
}
fprintf(stderr, "Cannot find project root directory!\n");
return kCannotFindProjectRootDir;
+#endif
}
std::string OutputPath() {
« no previous file with comments | « webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_nalu_unittest.cc ('k') | webrtc/test/testsupport/iosfileutils.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698