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

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

Issue 1178843002: Adds support for webrtc::test::ResourcePath on iOS (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Enabled more unit tests Created 5 years, 6 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 8301e77165d2e1e2d4214db876b9d7fd413bb99e..79abdf281983f502c305618774118a7021dbf271 100644
--- a/webrtc/test/testsupport/fileutils.cc
+++ b/webrtc/test/testsupport/fileutils.cc
@@ -38,6 +38,11 @@
#include "webrtc/typedefs.h" // For architecture defines
+#if defined(WEBRTC_IOS)
+// Defined in iosfileutils.mm. No header file to discourage use elsewhere.
+std::string IOSResourcePath(std::string name, std::string extension);
+#endif
+
namespace webrtc {
namespace test {
@@ -205,6 +210,10 @@ bool CreateDir(std::string directory_name) {
}
std::string ResourcePath(std::string name, std::string extension) {
+#if defined (WEBRTC_IOS)
+ return IOSResourcePath(name, extension);
henrika_webrtc 2015/06/11 11:02:34 I should add comments here about what's unique for
tkchin_webrtc 2015/06/12 01:30:26 Probably add it to header file function comments.
henrika_webrtc 2015/06/12 12:52:11 I followed the existing style in unixfilesystem.cc
tkchin_webrtc 2015/06/12 17:43:35 What compiler warnings are you referring to? I mea
henrika_webrtc 2015/06/15 08:46:29 Bad spelling in first version, I did *not* get any
+#endif // defined (WEBRTC_IOS)
+
std::string platform = "win";
#ifdef WEBRTC_LINUX
platform = "linux";

Powered by Google App Engine
This is Rietveld 408576698