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

Unified Diff: components/ntp_snippets/ntp_snippets_service_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/ntp_snippets/ntp_snippets_service_unittest.cc
diff --git a/components/ntp_snippets/ntp_snippets_service_unittest.cc b/components/ntp_snippets/ntp_snippets_service_unittest.cc
index 22678af60f9eacd5c33344f8bce2a1fa12e55ffb..835e0ed8c3f4e8ddfd08700546c112fa3efff768 100644
--- a/components/ntp_snippets/ntp_snippets_service_unittest.cc
+++ b/components/ntp_snippets/ntp_snippets_service_unittest.cc
@@ -67,7 +67,9 @@ const char kSnippetAmpUrl[] = "http://localhost/amp";
const float kSnippetScore = 5.0;
base::Time GetDefaultCreationTime() {
- return base::Time::FromUTCExploded(kDefaultCreationTime);
+ base::Time out_time;
+ EXPECT_TRUE(base::Time::FromUTCExploded(kDefaultCreationTime, &out_time));
+ return out_time;
}
base::Time GetDefaultExpirationTime() {
« no previous file with comments | « components/ntp_snippets/ntp_snippets_service.cc ('k') | components/password_manager/core/browser/password_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698