Chromium Code Reviews| Index: components/drive/file_system/touch_operation_unittest.cc |
| diff --git a/components/drive/file_system/touch_operation_unittest.cc b/components/drive/file_system/touch_operation_unittest.cc |
| index 8c15010a8b565a1003137808510b368cecb9c0a6..4cdebb9ecc71226aac5078559e8310660d58677b 100644 |
| --- a/components/drive/file_system/touch_operation_unittest.cc |
| +++ b/components/drive/file_system/touch_operation_unittest.cc |
| @@ -32,19 +32,21 @@ TEST_F(TouchOperationTest, TouchFile) { |
| }; |
| FileError error = FILE_ERROR_FAILED; |
| - operation.TouchFile( |
| - kTestPath, |
| - base::Time::FromUTCExploded(kLastAccessTime), |
| - base::Time::FromUTCExploded(kLastModifiedTime), |
| - google_apis::test_util::CreateCopyResultCallback(&error)); |
| + base::Time LastAccessTimeUTC; |
|
fukino
2016/07/06 11:14:23
base::Time last_access_time_utc;
to follow the sty
maksims (do not use this acc)
2016/07/06 12:00:20
Done.
|
| + base::Time LastModifiedTimeUTC; |
|
fukino
2016/07/06 11:14:23
ditto
maksims (do not use this acc)
2016/07/06 12:00:20
Done.
|
| + EXPECT_TRUE(base::Time::FromUTCExploded(kLastAccessTime, &LastAccessTimeUTC)); |
| + EXPECT_TRUE( |
| + base::Time::FromUTCExploded(kLastModifiedTime, &LastModifiedTimeUTC)); |
| + operation.TouchFile(kTestPath, LastAccessTimeUTC, LastModifiedTimeUTC, |
| + google_apis::test_util::CreateCopyResultCallback(&error)); |
| content::RunAllBlockingPoolTasksUntilIdle(); |
| EXPECT_EQ(FILE_ERROR_OK, error); |
| ResourceEntry entry; |
| EXPECT_EQ(FILE_ERROR_OK, GetLocalResourceEntry(kTestPath, &entry)); |
| - EXPECT_EQ(base::Time::FromUTCExploded(kLastAccessTime), |
| + EXPECT_EQ(LastAccessTimeUTC, |
| base::Time::FromInternalValue(entry.file_info().last_accessed())); |
| - EXPECT_EQ(base::Time::FromUTCExploded(kLastModifiedTime), |
| + EXPECT_EQ(LastModifiedTimeUTC, |
| base::Time::FromInternalValue(entry.file_info().last_modified())); |
| EXPECT_EQ(ResourceEntry::DIRTY, entry.metadata_edit_state()); |