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

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: move a function body 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..2f78903effc20e3519684a8bf18e2891adfd54bd 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
+ ->GetExpirationTimes(fake_request->response_info().request_time,
+ fake_request->response_info().response_time)
+ .freshness_lifetime;
histogram_tester.ExpectUniqueSample(kReceivedValidOCLHistogramName,
kResponseContentLength, 1);

Powered by Google App Engine
This is Rietveld 408576698