| 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 825f5c46585dbb3e78d1a49783b7e2819ab033a4..91fb319f1e0f842dfbf2538158abf6fd4aa0b8db 100644
|
| --- a/net/http/http_response_headers_unittest.cc
|
| +++ b/net/http/http_response_headers_unittest.cc
|
| @@ -866,8 +866,9 @@ TEST(HttpResponseHeadersTest, RequiresValidation) {
|
| scoped_refptr<net::HttpResponseHeaders> parsed(
|
| new net::HttpResponseHeaders(headers));
|
|
|
| - bool requires_validation =
|
| - parsed->RequiresValidation(request_time, response_time, current_time);
|
| + base::Time freshness_expiry =
|
| + parsed->GetFreshnessExpiry(request_time, response_time);
|
| + bool requires_validation = freshness_expiry <= current_time;
|
| EXPECT_EQ(tests[i].requires_validation, requires_validation);
|
| }
|
| }
|
|
|