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

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

Issue 2552623004: Remove redundant methods for reloading DataReductionProxyConfig (Closed)
Patch Set: Created 4 years 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.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h
index f3de4a365701add8e2718b3006750ccbffbfe236..3f22cb20701cbb6a30039b4b2835802b27f726aa 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h
@@ -74,10 +74,6 @@ class TestDataReductionProxyConfig : public DataReductionProxyConfig {
// TODO(jeremyim): Rationalize with test_params().
DataReductionProxyConfigValues* config_values();
- // Allows tests to set the internal state.
- void SetStateForTest(bool enabled_by_user,
- bool secure_proxy_enabled);
-
// Resets the Lo-Fi status to default state.
void ResetLoFiStatusForTest();
@@ -118,6 +114,8 @@ class TestDataReductionProxyConfig : public DataReductionProxyConfig {
// Resets the behavior of WasDataReductionProxyUsed() calls.
void ResetWasDataReductionProxyUsed();
+ using DataReductionProxyConfig::UpdateConfigForTesting;
+
private:
base::TickClock* tick_clock_;
@@ -172,7 +170,7 @@ class MockDataReductionProxyConfig : public TestDataReductionProxyConfig {
IsNetworkQualityProhibitivelySlow,
bool(const net::NetworkQualityEstimator* network_quality_estimator));
- void UpdateConfigurator(bool enabled, bool restricted) override;
+ using DataReductionProxyConfig::UpdateConfigForTesting;
// Resets the Lo-Fi status to default state.
void ResetLoFiStatusForTest();

Powered by Google App Engine
This is Rietveld 408576698