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

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

Issue 1004853002: Create abstraction for DataReductionProxyParams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sclittle comments Created 5 years, 9 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 2505105e451cfda52b3f5c12705bff3c835e8bb6..03676c96fe89d76708c72b73711fe7d6e1630dfd 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, false /* enable_quic */) {
+ configurator, event_store) {
network_interfaces_.reset(new net::NetworkInterfaceList());
}
@@ -41,11 +41,11 @@ void TestDataReductionProxyConfig::GetNetworkList(
}
void TestDataReductionProxyConfig::EnableQuic(bool enable) {
- params_->EnableQuic(enable);
+ test_params()->EnableQuic(enable);
}
void TestDataReductionProxyConfig::ResetParamFlagsForTest(int flags) {
- params_ = make_scoped_ptr(
+ config_values_ = make_scoped_ptr(
new TestDataReductionProxyParams(
flags,
TestDataReductionProxyParams::HAS_EVERYTHING &
@@ -55,7 +55,7 @@ void TestDataReductionProxyConfig::ResetParamFlagsForTest(int flags) {
}
TestDataReductionProxyParams* TestDataReductionProxyConfig::test_params() {
- return static_cast<TestDataReductionProxyParams*>(params_.get());
+ return static_cast<TestDataReductionProxyParams*>(config_values_.get());
}
void TestDataReductionProxyConfig::SetStateForTest(

Powered by Google App Engine
This is Rietveld 408576698