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

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

Issue 1153543016: Trigger LoFi based on NQE and use hysteresis to prevent frequent changes in network quality (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change in connection type triggers change in network quality despite hysteresis. Created 5 years, 6 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.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 d31ed9a964a7184e7ea1a5c9ace46f7ce8812d94..efb90708452e2e72c0b4448927d53573dfc3cec6 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
@@ -80,8 +80,7 @@ class TestDataReductionProxyConfig : public DataReductionProxyConfig {
void SetNetworkProhibitivelySlow(bool network_quality_prohibitively_slow);
bool IsNetworkQualityProhibitivelySlow(
- const net::NetworkQualityEstimator* network_quality_estimator)
- const override;
+ const net::NetworkQualityEstimator* network_quality_estimator) override;
net::NetworkInterfaceList* interfaces() {
return network_interfaces_.get();
@@ -133,7 +132,7 @@ class MockDataReductionProxyConfig : public TestDataReductionProxyConfig {
MOCK_METHOD2(SecureProxyCheck,
void(const GURL& secure_proxy_check_url,
FetcherResponseCallback fetcher_callback));
- MOCK_CONST_METHOD1(
+ MOCK_METHOD1(
IsNetworkQualityProhibitivelySlow,
bool(const net::NetworkQualityEstimator* network_quality_estimator));
MOCK_CONST_METHOD0(IsIncludedInLoFiEnabledFieldTrial, bool());

Powered by Google App Engine
This is Rietveld 408576698