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

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

Issue 2889993004: New CPAT support in DataReductionProxyConfig guarded by feature flag. (Closed)
Patch Set: Updates new code path to accept LoFi when LitePages enabled (to allow fallback) Created 3 years, 7 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 05b59b391e332dbb0997aada8a41e1f565c5d584..9a96c341552618b3f0b4bbc69473c5e9e40e1ac9 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
@@ -117,6 +117,11 @@ class TestDataReductionProxyConfig : public DataReductionProxyConfig {
// Sets if the captive portal probe has been blocked for the current network.
void SetIsCaptivePortal(bool is_captive_portal);
+ void SetConnectionTypeForTesting(
+ net::NetworkChangeNotifier::ConnectionType connection_type) {
+ connection_type_ = connection_type;
+ }
+
using DataReductionProxyConfig::UpdateConfigForTesting;
private:

Powered by Google App Engine
This is Rietveld 408576698