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

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

Issue 1989243003: Add DRP client config tests for secure proxy check (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 cf0956052c334d6f234b0b387c5cd43f5baf2f80..763333e351c02bf2547ac4a879754143fe305031 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
@@ -22,13 +22,19 @@ void TestDataReductionProxyConfigurator::Enable(
const std::vector<net::ProxyServer>& proxies_for_http) {
enabled_ = true;
restricted_ = secure_transport_restricted;
- proxies_for_http_ = proxies_for_http;
+ DataReductionProxyConfigurator::Enable(secure_transport_restricted,
+ proxies_for_http);
}
void TestDataReductionProxyConfigurator::Disable() {
enabled_ = false;
restricted_ = false;
- proxies_for_http_ = std::vector<net::ProxyServer>();
+ DataReductionProxyConfigurator::Disable();
+}
+
+const std::vector<net::ProxyServer>&
+TestDataReductionProxyConfigurator::proxies_for_http() const {
+ return GetProxyConfig().proxy_rules().proxies_for_http.GetAll();
}
} // namespace data_reduction_proxy

Powered by Google App Engine
This is Rietveld 408576698