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

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

Issue 1889873005: Record Lo-Fi NQE prediction accuracy at different intervals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed asvitkine comments 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 d2a9ce3300c2f820abbcfa2db9f04374ef7cced2..cf23dc969ca49af257e62a609bc2fd62bb1551df 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
@@ -460,6 +460,7 @@ TEST_F(DataReductionProxyNetworkDelegateTest, MAYBE_NetHistograms) {
std::unique_ptr<net::URLRequest> fake_request(
FetchURLRequest(GURL("http://www.google.com/"), nullptr, response_headers,
kResponseContentLength));
+ fake_request->SetLoadFlags(fake_request->load_flags() | net::LOAD_MAIN_FRAME);
base::TimeDelta freshness_lifetime =
fake_request->response_info().headers->GetFreshnessLifetimes(
@@ -536,6 +537,8 @@ TEST_F(DataReductionProxyNetworkDelegateTest, MAYBE_NetHistograms) {
fake_request = (FetchURLRequest(GURL("http://www.example.com/"), nullptr,
response_headers, kResponseContentLength));
+ fake_request->SetLoadFlags(fake_request->load_flags() |
+ net::LOAD_MAIN_FRAME);
// Histograms are accumulative, so get the sum of all the tests so far.
int expected_count = 0;

Powered by Google App Engine
This is Rietveld 408576698