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

Unified Diff: base/file_util_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
« no previous file with comments | « no previous file | base/file_util_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_unittest.cc
===================================================================
--- base/file_util_unittest.cc (revision 68690)
+++ base/file_util_unittest.cc (working copy)
@@ -692,11 +692,13 @@
EXPECT_FALSE(file_util::PathExists(file_name));
}
+
kinuko 2010/12/10 23:03:43 Do we need these two empty lines?
+
#if defined(OS_WIN)
// Tests that the Delete function works for wild cards, especially
// with the recursion flag. Also coincidentally tests PathExists.
// TODO(erikkay): see if anyone's actually using this feature of the API
-TEST_F(FileUtilTest, DeleteWildCard) {
+TEST_F(FileUtilTest, DISABLED_DeleteWildCard) {
// Create a file and a directory
FilePath file_name = temp_dir_.path().Append(FPL("Test DeleteWildCard.txt"));
CreateTextFile(file_name, bogus_content);
@@ -788,6 +790,15 @@
file_util::CreateDirectory(subdir_path1);
ASSERT_TRUE(file_util::PathExists(subdir_path1));
+ FilePath sub_subdir_path1 = subdir_path1.Append(FPL("TestSubSubDir1"));
+ file_util::CreateDirectory(sub_subdir_path1);
+ ASSERT_TRUE(file_util::PathExists(sub_subdir_path1));
+
+ FilePath subdir_file_name =
+ sub_subdir_path1.Append(FPL("DeleteDirRecursiveSubDir.txt"));
+ CreateTextFile(subdir_file_name, bogus_content);
+ ASSERT_TRUE(file_util::PathExists(subdir_file_name));
+
FilePath subdir_path2 = test_subdir.Append(FPL("TestSubDir2"));
file_util::CreateDirectory(subdir_path2);
ASSERT_TRUE(file_util::PathExists(subdir_path2));
« no previous file with comments | « no previous file | base/file_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698