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

Unified Diff: net/ftp/ftp_directory_listing_parser_unittest.h

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: Make callers of FromUTC(Local)Exploded in net/ use new time API. Created 4 years, 2 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/ftp/ftp_directory_listing_parser_unittest.h
diff --git a/net/ftp/ftp_directory_listing_parser_unittest.h b/net/ftp/ftp_directory_listing_parser_unittest.h
index 3cbe17ad2d607a05d923893ffe0de77c872a570c..e6938ba3a3a76033c692ff95cdc3bd553828e036 100644
--- a/net/ftp/ftp_directory_listing_parser_unittest.h
+++ b/net/ftp/ftp_directory_listing_parser_unittest.h
@@ -68,7 +68,11 @@ class FtpDirectoryListingParserTest : public testing::Test {
mock_current_time_exploded.day_of_month = 15;
mock_current_time_exploded.hour = 12;
mock_current_time_exploded.minute = 45;
- return base::Time::FromLocalExploded(mock_current_time_exploded);
+
+ base::Time out_time;
+ EXPECT_TRUE(
+ base::Time::FromLocalExploded(mock_current_time_exploded, &out_time));
+ return out_time;
}
};

Powered by Google App Engine
This is Rietveld 408576698