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

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

Issue 1124073008: Base Data Reduction Proxy configuration on vectors of servers per origin scheme. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bengr CR comments Created 5 years, 7 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_configurator_test_utils.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.cc
index 27d9d3845b35c826c8b885d692cb79db90f9a48b..8a21aaf8b827225ad6573d5306c6e24b263087d0 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.cc
@@ -11,34 +11,27 @@ TestDataReductionProxyConfigurator::TestDataReductionProxyConfigurator(
DataReductionProxyEventCreator* event_creator)
: DataReductionProxyConfigurator(net_log, event_creator),
enabled_(false),
- restricted_(false),
- fallback_restricted_(false) {
+ restricted_(false) {
}
TestDataReductionProxyConfigurator::~TestDataReductionProxyConfigurator() {
}
void TestDataReductionProxyConfigurator::Enable(
- bool restricted,
- bool fallback_restricted,
- const std::string& primary_origin,
- const std::string& fallback_origin,
- const std::string& ssl_origin) {
+ bool secure_transport_restricted,
+ const std::vector<net::ProxyServer>& proxies_for_http,
+ const std::vector<net::ProxyServer>& proxies_for_https) {
enabled_ = true;
- restricted_ = restricted;
- fallback_restricted_ = fallback_restricted;
- origin_ = primary_origin;
- fallback_origin_ = fallback_origin;
- ssl_origin_ = ssl_origin;
+ restricted_ = secure_transport_restricted;
+ proxies_for_http_ = proxies_for_http;
+ proxies_for_https_ = proxies_for_https;
}
void TestDataReductionProxyConfigurator::Disable() {
enabled_ = false;
restricted_ = false;
- fallback_restricted_ = false;
- origin_ = std::string();
- fallback_origin_ = std::string();
- ssl_origin_ = std::string();
+ proxies_for_http_ = std::vector<net::ProxyServer>();
+ proxies_for_https_ = std::vector<net::ProxyServer>();
}
} // namespace data_reduction_proxy

Powered by Google App Engine
This is Rietveld 408576698