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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_params_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/common/data_reduction_proxy_params_test_utils.cc
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.cc b/components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.cc
index df2bc11a5962fa21952c9198229a93d3fc7ffe65..87863acbb6d857576a9e7d09fc3c229342ff4d16 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.cc
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.cc
@@ -39,6 +39,12 @@ bool TestDataReductionProxyParams::init_result() const {
return init_result_;
}
+void TestDataReductionProxyParams::SetProxiesForHttp(
+ const std::vector<net::ProxyServer>& proxies,
+ const std::vector<net::ProxyServer>& alt_proxies) {
+ proxies_for_http_ = proxies;
+ alt_proxies_for_http_ = alt_proxies;
+}
// Test values to replace the values specified in preprocessor defines.
std::string TestDataReductionProxyParams::DefaultDevOrigin() {
return kDefaultDevOrigin;
@@ -96,15 +102,6 @@ std::string TestDataReductionProxyParams::FlagSecureProxyCheckURL() {
return kFlagSecureProxyCheckURL;
}
-void TestDataReductionProxyParams::set_origin(const net::ProxyServer& origin) {
- origin_ = origin;
-}
-
-void TestDataReductionProxyParams::set_fallback_origin(
- const net::ProxyServer& fallback_origin) {
- fallback_origin_ = fallback_origin;
-}
-
std::string TestDataReductionProxyParams::GetDefaultDevOrigin() const {
return GetDefinition(
TestDataReductionProxyParams::HAS_DEV_ORIGIN, kDefaultDevOrigin);

Powered by Google App Engine
This is Rietveld 408576698