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

Unified Diff: net/http/http_response_headers_unittest.cc

Issue 2605293002: Add WARN_UNUSED_RESULT to base::Time methods that return bool. (Closed)
Patch Set: Add comment to PexeDownloader::didReceiveResponse() Created 3 years, 11 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/http/http_response_headers_unittest.cc
diff --git a/net/http/http_response_headers_unittest.cc b/net/http/http_response_headers_unittest.cc
index 2f2f7befb05e9b7eed94adcc7a71a8760e14fc1b..f24d1830470c5f7582148f18a8e6990bff26da68 100644
--- a/net/http/http_response_headers_unittest.cc
+++ b/net/http/http_response_headers_unittest.cc
@@ -780,9 +780,12 @@ TEST_P(RequiresValidationTest, RequiresValidation) {
const RequiresValidationTestData test = GetParam();
base::Time request_time, response_time, current_time;
- base::Time::FromString("Wed, 28 Nov 2007 00:40:09 GMT", &request_time);
- base::Time::FromString("Wed, 28 Nov 2007 00:40:12 GMT", &response_time);
- base::Time::FromString("Wed, 28 Nov 2007 00:45:20 GMT", &current_time);
+ ASSERT_TRUE(
+ base::Time::FromString("Wed, 28 Nov 2007 00:40:09 GMT", &request_time));
+ ASSERT_TRUE(
+ base::Time::FromString("Wed, 28 Nov 2007 00:40:12 GMT", &response_time));
+ ASSERT_TRUE(
+ base::Time::FromString("Wed, 28 Nov 2007 00:45:20 GMT", &current_time));
std::string headers(test.headers);
HeadersToRaw(&headers);

Powered by Google App Engine
This is Rietveld 408576698