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

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

Issue 958683002: Migrate most DataReductionProxyParams methods to be private. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 10 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_test_utils.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.cc
index 416dcb27c92d56e15e5eaf7226e229ab4d98532c..2505105e451cfda52b3f5c12705bff3c835e8bb6 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.cc
@@ -26,7 +26,7 @@ TestDataReductionProxyConfig::TestDataReductionProxyConfig(
make_scoped_ptr(
new TestDataReductionProxyParams(params_flags, params_definitions))
.Pass(),
- configurator, event_store) {
+ configurator, event_store, false /* enable_quic */) {
network_interfaces_.reset(new net::NetworkInterfaceList());
}
@@ -40,6 +40,10 @@ void TestDataReductionProxyConfig::GetNetworkList(
interfaces->push_back(network_interfaces_->at(i));
}
+void TestDataReductionProxyConfig::EnableQuic(bool enable) {
+ params_->EnableQuic(enable);
+}
+
void TestDataReductionProxyConfig::ResetParamFlagsForTest(int flags) {
params_ = make_scoped_ptr(
new TestDataReductionProxyParams(
@@ -50,11 +54,6 @@ void TestDataReductionProxyConfig::ResetParamFlagsForTest(int flags) {
.Pass();
}
-void TestDataReductionProxyConfig::ResetParamsForTest(
- scoped_ptr<TestDataReductionProxyParams> params) {
- params_ = params.Pass();
-}
-
TestDataReductionProxyParams* TestDataReductionProxyConfig::test_params() {
return static_cast<TestDataReductionProxyParams*>(params_.get());
}

Powered by Google App Engine
This is Rietveld 408576698