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

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

Issue 2424973002: Only match host port pair when determining if a proxy is a data reduction proxy (Closed)
Patch Set: ps 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_unittest.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc
index 3e4806554101d0cee279a013c42ca8379fd34b89..7c52872f46261a26f19f013de007d027fafe24ed 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc
@@ -705,6 +705,25 @@ TEST_F(DataReductionProxyConfigTest, IsDataReductionProxyWithMutableConfig) {
net::HostPortPair::FromString("otherorigin.net:443")),
false, std::vector<net::ProxyServer>(), 0,
},
+ {
+ // Verifies that when determining if a proxy is a valid data reduction
+ // proxy, only the host port pairs are compared.
+ net::ProxyServer::FromURI("origin.net:443",
+ net::ProxyServer::SCHEME_QUIC),
+ true, std::vector<net::ProxyServer>(proxies_for_http.begin(),
+ proxies_for_http.end()),
+ 0,
+ },
+ {
+ net::ProxyServer::FromURI("origin2.net:443",
+ net::ProxyServer::SCHEME_HTTPS),
+ false, std::vector<net::ProxyServer>(), 0,
+ },
+ {
+ net::ProxyServer::FromURI("origin2.net:443",
+ net::ProxyServer::SCHEME_QUIC),
+ false, std::vector<net::ProxyServer>(), 0,
+ },
};
std::unique_ptr<DataReductionProxyMutableConfigValues> config_values =

Powered by Google App Engine
This is Rietveld 408576698