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

Unified Diff: base/file_path_unittest.cc

Issue 5754002: Moving away from shell api to support long path names on windows for filesystem. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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: base/file_path_unittest.cc
===================================================================
--- base/file_path_unittest.cc (revision 68690)
+++ base/file_path_unittest.cc (working copy)
@@ -1087,3 +1087,16 @@
}
}
#endif
+
+#if defined(OS_WIN)
+TEST_F(FilePathTest, TestStartsWithExtendedPathPrefix) {
+ FilePath::StringType prefix_str(FilePath::kExtendedPathPrefix);
+ FilePath with_extended_path_prefix(prefix_str);
+ EXPECT_TRUE(with_extended_path_prefix.StartsWithExtendedPathPrefix());
+ FilePath longer_with_extended_path_prefix(
+ prefix_str.append(FPL("/\\foo\\/bar")));
+ EXPECT_TRUE(longer_with_extended_path_prefix.StartsWithExtendedPathPrefix());
+ FilePath without_extended_path_prefix(FPL("/\\foo\\/bar"));
+ EXPECT_FALSE(without_extended_path_prefix.StartsWithExtendedPathPrefix());
+}
+#endif

Powered by Google App Engine
This is Rietveld 408576698