Index: webkit/fileapi/file_system_url_unittest.cc |
diff --git a/webkit/fileapi/file_system_url_unittest.cc b/webkit/fileapi/file_system_url_unittest.cc |
index c6608ccf897488f6c5064b053fee9d220ae4f109..c1c01a37331ff910a9c821d9ec870f345e7324e1 100644 |
--- a/webkit/fileapi/file_system_url_unittest.cc |
+++ b/webkit/fileapi/file_system_url_unittest.cc |
@@ -7,6 +7,7 @@ |
#include "base/file_path.h" |
#include "googleurl/src/gurl.h" |
#include "testing/gtest/include/gtest/gtest.h" |
+#include "webkit/fileapi/external_mount_points.h" |
#include "webkit/fileapi/file_system_types.h" |
#include "webkit/fileapi/file_system_util.h" |
#include "webkit/fileapi/isolated_context.h" |
@@ -14,6 +15,12 @@ |
#define FPL FILE_PATH_LITERAL |
+#if defined(FILE_PATH_USES_DRIVE_LETTERS) |
+#define DRIVE FPL("C:") |
+#else |
+#define DRIVE FPL("/a/") |
+#endif |
+ |
namespace fileapi { |
namespace { |
@@ -214,8 +221,10 @@ TEST(FileSystemURLTest, DebugString) { |
NormalizedUTF8Path(kPath), |
kURL1.DebugString()); |
- const FilePath kRoot(FPL("root")); |
- ScopedExternalFileSystem scoped_fs("foo", kFileSystemTypeNativeLocal, kRoot); |
+ const FilePath kRoot(DRIVE FPL("/root")); |
+ ScopedExternalFileSystem scoped_fs("foo", |
+ kFileSystemTypeNativeLocal, |
+ kRoot.NormalizePathSeparators()); |
const FileSystemURL kURL2(kOrigin, kFileSystemTypeExternal, |
scoped_fs.GetVirtualRootPath().Append(kPath)); |
EXPECT_EQ("filesystem:http://example.com/external/" + |