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

Unified Diff: base/files/scoped_temp_dir_unittest.cc

Issue 1446363003: Deleted OS_WIN and all Windows specific files from base. (Closed) Base URL: https://github.com/domokit/mojo.git@base_tests
Patch Set: Created 5 years, 1 month 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 | « base/files/memory_mapped_file_win.cc ('k') | base/guid_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/scoped_temp_dir_unittest.cc
diff --git a/base/files/scoped_temp_dir_unittest.cc b/base/files/scoped_temp_dir_unittest.cc
index a19f34ddce056a99f41002f1ee926cb10ebb94df..36439838389a1453dc11c649f16e0a519b937de2 100644
--- a/base/files/scoped_temp_dir_unittest.cc
+++ b/base/files/scoped_temp_dir_unittest.cc
@@ -94,20 +94,4 @@ TEST(ScopedTempDir, MultipleInvocations) {
EXPECT_FALSE(other_dir.CreateUniqueTempDir());
}
-#if defined(OS_WIN)
-TEST(ScopedTempDir, LockedTempDir) {
- ScopedTempDir dir;
- EXPECT_TRUE(dir.CreateUniqueTempDir());
- base::File file(dir.path().Append(FILE_PATH_LITERAL("temp")),
- base::File::FLAG_CREATE_ALWAYS | base::File::FLAG_WRITE);
- EXPECT_TRUE(file.IsValid());
- EXPECT_EQ(base::File::FILE_OK, file.error_details());
- EXPECT_FALSE(dir.Delete()); // We should not be able to delete.
- EXPECT_FALSE(dir.path().empty()); // We should still have a valid path.
- file.Close();
- // Now, we should be able to delete.
- EXPECT_TRUE(dir.Delete());
-}
-#endif // defined(OS_WIN)
-
} // namespace base
« no previous file with comments | « base/files/memory_mapped_file_win.cc ('k') | base/guid_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698