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

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

Issue 2334623003: Store net::ProxyServer in HttpResponseInfo object (Closed)
Patch Set: PS Created 4 years, 3 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_config_service_client_unittest.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc
index cd8633d3770c4bf1a33b79f0a13a4ba1c2738ae1..bffaec525b243d9431629991cf6296d5529df3dc 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc
@@ -695,8 +695,7 @@ TEST_F(DataReductionProxyConfigServiceClientTest, AuthFailure) {
base::TimeTicks::Now() - base::TimeDelta::FromSeconds(1);
load_timing_info.send_start = load_timing_info.request_start;
EXPECT_TRUE(config_client()->ShouldRetryDueToAuthFailure(
- request_headers, parsed.get(), origin.host_port_pair(),
- load_timing_info));
+ request_headers, parsed.get(), origin, load_timing_info));
EXPECT_EQ(1, config_client()->GetBackoffErrorCount());
// Persisted config on pref should be cleared.
EXPECT_TRUE(persisted_config().empty());
@@ -722,8 +721,7 @@ TEST_F(DataReductionProxyConfigServiceClientTest, AuthFailure) {
// Calling ShouldRetryDueToAuthFailure should trigger fetching of remote
// config.
EXPECT_TRUE(config_client()->ShouldRetryDueToAuthFailure(
- request_headers, parsed.get(), origin.host_port_pair(),
- load_timing_info));
+ request_headers, parsed.get(), origin, load_timing_info));
EXPECT_EQ(2, config_client()->GetBackoffErrorCount());
histogram_tester.ExpectBucketCount(
"DataReductionProxy.ConfigService.AuthExpired", false, 2);
@@ -780,8 +778,7 @@ TEST_F(DataReductionProxyConfigServiceClientTest,
load_timing_info.send_start = load_timing_info.request_start;
EXPECT_TRUE(config_client()->ShouldRetryDueToAuthFailure(
- request_headers, parsed.get(), origin.host_port_pair(),
- load_timing_info));
+ request_headers, parsed.get(), origin, load_timing_info));
EXPECT_EQ(0, config_client()->GetBackoffErrorCount());
// Persisted config on pref should be cleared.
EXPECT_FALSE(persisted_config().empty());

Powered by Google App Engine
This is Rietveld 408576698