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

Unified Diff: webkit/fileapi/file_system_util_unittest.cc

Issue 14588006: Fix VirtualPath::GetNormalizedFilePath on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years, 7 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
« no previous file with comments | « webkit/fileapi/file_system_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_util_unittest.cc
diff --git a/webkit/fileapi/file_system_util_unittest.cc b/webkit/fileapi/file_system_util_unittest.cc
index 1c129bd2dd917dc57355718946f902196d6f231e..c370618b593e78425dc83956557dd48ad9b76244 100644
--- a/webkit/fileapi/file_system_util_unittest.cc
+++ b/webkit/fileapi/file_system_util_unittest.cc
@@ -102,7 +102,10 @@ TEST_F(FileSystemUtilTest, GetNormalizedFilePath) {
{ FILE_PATH_LITERAL(""), FILE_PATH_LITERAL("/") },
{ FILE_PATH_LITERAL("/"), FILE_PATH_LITERAL("/") },
{ FILE_PATH_LITERAL("foo/bar"), FILE_PATH_LITERAL("/foo/bar") },
- { FILE_PATH_LITERAL("/foo/bar"), FILE_PATH_LITERAL("/foo/bar") }
+ { FILE_PATH_LITERAL("/foo/bar"), FILE_PATH_LITERAL("/foo/bar") },
+#if defined(FILE_PATH_USES_WIN_SEPARATORS)
+ { FILE_PATH_LITERAL("\\foo"), FILE_PATH_LITERAL("/foo") },
+#endif
};
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); ++i) {
base::FilePath input = base::FilePath(test_cases[i].path);
« no previous file with comments | « webkit/fileapi/file_system_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698