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

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: Rebased, fix compile error Created 4 years, 2 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 76b998a2981fe9043d6cf9f82b1ad7c468370ae1..b30a9b900adb7d36b509428f273f53cf60731dc7 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
@@ -699,8 +699,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());
EXPECT_FALSE(configurator()->GetProxyConfig().is_valid());
@@ -728,8 +727,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);
@@ -786,8 +784,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