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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc

Issue 154243006: Add GetExpirationTimes() to HttpResponseHeader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: catch some users Created 4 years, 8 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: components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc
index 5bc90cc3fc3a48fb6accc768448696b7ab8274c1..ea20bb8684aa2223ec6ff2d74b5a8fdc4cae087f 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc
@@ -458,8 +458,11 @@ TEST_F(DataReductionProxyNetworkDelegateTest, NetHistograms) {
fake_request->SetLoadFlags(fake_request->load_flags() | net::LOAD_MAIN_FRAME);
base::TimeDelta freshness_lifetime =
- fake_request->response_info().headers->GetFreshnessLifetimes(
- fake_request->response_info().response_time).freshness;
+ fake_request->response_info()
+ .headers
+ ->ExpirationTimes(fake_request->response_info()->request_time,
+ fake_request->response_info().response_time)
+ .freshness;
histogram_tester.ExpectUniqueSample(kReceivedValidOCLHistogramName,
kResponseContentLength, 1);

Powered by Google App Engine
This is Rietveld 408576698