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() { |