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

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

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.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 9bd8b979522cde5a011ae5d36fb52a6954054524..415588059fb7d56fa32e1a22ae6a33dae385104b 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
@@ -44,11 +44,11 @@ class TestDataReductionProxyConfig : public DataReductionProxyConfig {
void GetNetworkList(net::NetworkInterfaceList* interfaces,
int policy) override;
- // Allows tests to reset the params being used for configuration.
- void ResetParamFlagsForTest(int flags);
+ // If true, uses QUIC instead of SPDY to connect to proxies that use TLS.
+ void EnableQuic(bool enable);
// Allows tests to reset the params being used for configuration.
- void ResetParamsForTest(scoped_ptr<TestDataReductionProxyParams> params);
+ void ResetParamFlagsForTest(int flags);
// Retrieves the test params being used for the configuration.
TestDataReductionProxyParams* test_params();
@@ -87,6 +87,12 @@ class MockDataReductionProxyConfig : public TestDataReductionProxyConfig {
void(bool enabled, bool restricted, bool at_startup));
MOCK_METHOD3(SetProxyPrefs,
void(bool enabled, bool alternative_enabled, bool at_startup));
+ MOCK_CONST_METHOD2(IsDataReductionProxy,
+ bool(const net::HostPortPair& host_port_pair,
+ DataReductionProxyTypeInfo* proxy_info));
+ MOCK_CONST_METHOD2(WasDataReductionProxyUsed,
+ bool(const net::URLRequest*,
+ DataReductionProxyTypeInfo* proxy_info));
MOCK_METHOD1(ContainsDataReductionProxy,
bool(const net::ProxyConfig::ProxyRules& proxy_rules));

Powered by Google App Engine
This is Rietveld 408576698