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

Unified Diff: components/drive/resource_entry_conversion_unittest.cc

Issue 2095553002: Make callers of FromUTC(Local)Exploded in components/ use new time API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fukino's comments Created 4 years, 5 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
Index: components/drive/resource_entry_conversion_unittest.cc
diff --git a/components/drive/resource_entry_conversion_unittest.cc b/components/drive/resource_entry_conversion_unittest.cc
index ef1bd4f30c91fb53e6c78c93b7d817f3efce6bf5..5891d91671308e7b7196481a04cfc703b732a4ae 100644
--- a/components/drive/resource_entry_conversion_unittest.cc
+++ b/components/drive/resource_entry_conversion_unittest.cc
@@ -26,7 +26,9 @@ base::Time GetTestTime() {
exploded.minute = 40;
exploded.second = 47;
exploded.millisecond = 330;
- return base::Time::FromUTCExploded(exploded);
+ base::Time out_time;
+ EXPECT_TRUE(base::Time::FromUTCExploded(exploded, &out_time));
+ return out_time;
}
} // namespace
« no previous file with comments | « components/drive/file_system/touch_operation_unittest.cc ('k') | components/drive/service/fake_drive_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698