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

Unified Diff: base/files/file_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/file_proxy_unittest.cc ('k') | base/files/file_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file_unittest.cc
diff --git a/base/files/file_unittest.cc b/base/files/file_unittest.cc
index 5c594242bc84867ec80a41f97465c6a486e19aee..a383c0d1b90935c023b11147b14d0ace68555c10 100644
--- a/base/files/file_unittest.cc
+++ b/base/files/file_unittest.cc
@@ -486,31 +486,6 @@ TEST(FileTest, DuplicateDeleteOnClose) {
ASSERT_FALSE(base::PathExists(file_path));
}
-#if defined(OS_WIN)
-TEST(FileTest, GetInfoForDirectory) {
- base::ScopedTempDir temp_dir;
- ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
- FilePath empty_dir = temp_dir.path().Append(FILE_PATH_LITERAL("gpfi_test"));
- ASSERT_TRUE(CreateDirectory(empty_dir));
-
- base::File dir(
- ::CreateFile(empty_dir.value().c_str(),
- FILE_ALL_ACCESS,
- FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
- NULL,
- OPEN_EXISTING,
- FILE_FLAG_BACKUP_SEMANTICS, // Needed to open a directory.
- NULL));
- ASSERT_TRUE(dir.IsValid());
-
- base::File::Info info;
- EXPECT_TRUE(dir.GetInfo(&info));
- EXPECT_TRUE(info.is_directory);
- EXPECT_FALSE(info.is_symbolic_link);
- EXPECT_EQ(0, info.size);
-}
-#endif // defined(OS_WIN)
-
#if defined(OS_POSIX) && defined(GTEST_HAS_DEATH_TEST)
TEST(FileTest, MemoryCorruption) {
{
« no previous file with comments | « base/files/file_proxy_unittest.cc ('k') | base/files/file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698