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

Unified Diff: net/http/http_util_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: typo Created 4 years 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
« net/ftp/ftp_directory_listing_parser_vms.cc ('K') | « net/ftp/ftp_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_util_unittest.cc
diff --git a/net/http/http_util_unittest.cc b/net/http/http_util_unittest.cc
index 1c41d82ae749a4c7a9e4f8334f34a7b594ed2439..b1d4c64a74d008e05edf1e9038c50d212325ab1a 100644
--- a/net/http/http_util_unittest.cc
+++ b/net/http/http_util_unittest.cc
@@ -1040,10 +1040,12 @@ TEST(HttpUtilTest, ParseContentRangeHeader) {
TEST(HttpUtilTest, ParseRetryAfterHeader) {
base::Time::Exploded now_exploded = {2014, 11, 4, 5, 22, 39, 30, 0};
- base::Time now = base::Time::FromUTCExploded(now_exploded);
+ base::Time now;
+ EXPECT_TRUE(base::Time::FromUTCExploded(now_exploded, &now));
base::Time::Exploded later_exploded = {2015, 1, 5, 1, 12, 34, 56, 0};
- base::Time later = base::Time::FromUTCExploded(later_exploded);
+ base::Time later;
+ EXPECT_TRUE(base::Time::FromUTCExploded(later_exploded, &later));
const struct {
const char* retry_after_string;
« net/ftp/ftp_directory_listing_parser_vms.cc ('K') | « net/ftp/ftp_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698