Index: base/file_util_unittest.cc |
diff --git a/base/file_util_unittest.cc b/base/file_util_unittest.cc |
index b65e171719fd8ea92fe408c89b5acbf2e7abc962..96e144de3da92944a7c3e1c9b18f2cb4bb344491 100644 |
--- a/base/file_util_unittest.cc |
+++ b/base/file_util_unittest.cc |
@@ -485,25 +485,6 @@ TEST_F(FileUtilTest, DevicePathToDriveLetter) { |
&win32_path)); |
} |
-TEST_F(FileUtilTest, GetPlatformFileInfoForDirectory) { |
- FilePath empty_dir = temp_dir_.path().Append(FPL("gpfi_test")); |
- ASSERT_TRUE(CreateDirectory(empty_dir)); |
- win::ScopedHandle 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()); |
- PlatformFileInfo info; |
- EXPECT_TRUE(GetPlatformFileInfo(dir.Get(), &info)); |
- EXPECT_TRUE(info.is_directory); |
- EXPECT_FALSE(info.is_symbolic_link); |
- EXPECT_EQ(0, info.size); |
-} |
- |
TEST_F(FileUtilTest, CreateTemporaryFileInDirLongPathTest) { |
// Test that CreateTemporaryFileInDir() creates a path and returns a long path |
// if it is available. This test requires that: |
@@ -1912,7 +1893,7 @@ TEST_F(FileUtilTest, TouchFile) { |
&modification_time)); |
ASSERT_TRUE(TouchFile(foobar, access_time, modification_time)); |
- PlatformFileInfo file_info; |
+ File::Info file_info; |
ASSERT_TRUE(GetFileInfo(foobar, &file_info)); |
EXPECT_EQ(file_info.last_accessed.ToInternalValue(), |
access_time.ToInternalValue()); |