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

Unified Diff: base/platform_file_unittest.cc

Issue 13818027: posix: replace nonstandard futimes call with futimens (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change Time::ToTimeVal to Time::ToTimeSpec Created 7 years, 8 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/platform_file_posix.cc ('k') | base/time.h » ('j') | base/time.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/platform_file_unittest.cc
diff --git a/base/platform_file_unittest.cc b/base/platform_file_unittest.cc
index 36ec3ee53138147a949d886714a1bf3ff6046ac2..4ee792233e561cca3f31c07449e94b75f9ad705f 100644
--- a/base/platform_file_unittest.cc
+++ b/base/platform_file_unittest.cc
@@ -314,10 +314,10 @@ TEST(PlatformFile, DISABLED_TouchGetInfoPlatformFile) {
// ext2/ext3 and HPS/HPS+ seem to have a timestamp granularity of 1s.
#if defined(OS_POSIX)
- EXPECT_EQ(info.last_accessed.ToTimeVal().tv_sec,
- new_last_accessed.ToTimeVal().tv_sec);
- EXPECT_EQ(info.last_modified.ToTimeVal().tv_sec,
- new_last_modified.ToTimeVal().tv_sec);
+ EXPECT_EQ(info.last_accessed.ToTimeSpec().tv_sec,
+ new_last_accessed.ToTimeSpec().tv_sec);
+ EXPECT_EQ(info.last_modified.ToTimeSpec().tv_sec,
+ new_last_modified.ToTimeSpec().tv_sec);
#else
EXPECT_EQ(info.last_accessed.ToInternalValue(),
new_last_accessed.ToInternalValue());
« no previous file with comments | « base/platform_file_posix.cc ('k') | base/time.h » ('j') | base/time.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698