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

Unified Diff: net/extras/sqlite/sqlite_channel_id_store_unittest.cc

Issue 2090713003: Make callers of FromUTC(Local)Exploded in net/ use new time API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 4 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: net/extras/sqlite/sqlite_channel_id_store_unittest.cc
diff --git a/net/extras/sqlite/sqlite_channel_id_store_unittest.cc b/net/extras/sqlite/sqlite_channel_id_store_unittest.cc
index 98c2d96c1d5bf0d8398baeeebdf3ebdc377a4074..40f270679de01b39100673d2d23391582d976134 100644
--- a/net/extras/sqlite/sqlite_channel_id_store_unittest.cc
+++ b/net/extras/sqlite/sqlite_channel_id_store_unittest.cc
@@ -84,7 +84,9 @@ class SQLiteChannelIDStoreTest : public testing::Test {
exploded_time.minute = 22;
exploded_time.second = 39;
exploded_time.millisecond = 0;
- return base::Time::FromUTCExploded(exploded_time);
+ base::Time out_time;
+ EXPECT_TRUE(base::Time::FromUTCExploded(exploded_time, &out_time));
+ return out_time;
}
static base::Time GetTestCertCreationTime() {
@@ -98,7 +100,9 @@ class SQLiteChannelIDStoreTest : public testing::Test {
exploded_time.minute = 22;
exploded_time.second = 39;
exploded_time.millisecond = 0;
- return base::Time::FromUTCExploded(exploded_time);
+ base::Time out_time;
+ EXPECT_TRUE(base::Time::FromUTCExploded(exploded_time, &out_time));
+ return out_time;
}
void SetUp() override {

Powered by Google App Engine
This is Rietveld 408576698