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

Unified Diff: base/file_util_unittest.cc

Issue 11896097: Remove GetFileCreationLocalTime. It is unused. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months 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/file_util_posix.cc ('k') | 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
diff --git a/base/file_util_unittest.cc b/base/file_util_unittest.cc
index 452ee82def457b904c048ddab95357e50ff52d05..b175abf88a0a4d551cf744c8a854749b45bb310d 100644
--- a/base/file_util_unittest.cc
+++ b/base/file_util_unittest.cc
@@ -1503,41 +1503,6 @@ TEST_F(FileUtilTest, CopyFile) {
EXPECT_TRUE(file_util::PathExists(dest_file2));
}
-// TODO(erikkay): implement
-#if defined(OS_WIN)
-TEST_F(FileUtilTest, GetFileCreationLocalTime) {
- FilePath file_name = temp_dir_.path().Append(L"Test File.txt");
-
- SYSTEMTIME start_time;
- GetLocalTime(&start_time);
- base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100));
- CreateTextFile(file_name, L"New file!");
- base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(100));
- SYSTEMTIME end_time;
- GetLocalTime(&end_time);
-
- SYSTEMTIME file_creation_time;
- file_util::GetFileCreationLocalTime(file_name.value(), &file_creation_time);
-
- FILETIME start_filetime;
- SystemTimeToFileTime(&start_time, &start_filetime);
- FILETIME end_filetime;
- SystemTimeToFileTime(&end_time, &end_filetime);
- FILETIME file_creation_filetime;
- SystemTimeToFileTime(&file_creation_time, &file_creation_filetime);
-
- EXPECT_EQ(-1, CompareFileTime(&start_filetime, &file_creation_filetime)) <<
- "start time: " << FileTimeAsUint64(start_filetime) << ", " <<
- "creation time: " << FileTimeAsUint64(file_creation_filetime);
-
- EXPECT_EQ(-1, CompareFileTime(&file_creation_filetime, &end_filetime)) <<
- "creation time: " << FileTimeAsUint64(file_creation_filetime) << ", " <<
- "end time: " << FileTimeAsUint64(end_filetime);
-
- ASSERT_TRUE(DeleteFile(file_name.value().c_str()));
-}
-#endif
-
// file_util winds up using autoreleased objects on the Mac, so this needs
// to be a PlatformTest.
typedef PlatformTest ReadOnlyFileUtilTest;
« no previous file with comments | « base/file_util_posix.cc ('k') | base/file_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698