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

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

Issue 1380933002: Set exp id in the CP header if user is in Lo-Fi control. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, addressed comment Created 5 years, 2 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 c50e743301e69e947cad15577a5f7d2487692f5b..f0135e8f83c529894156b9394d98caa07d38e0fc 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
@@ -44,6 +44,7 @@ TestDataReductionProxyConfig::TestDataReductionProxyConfig(
configurator,
event_creator),
auto_lofi_enabled_group_(false),
+ auto_lofi_control_group_(false),
network_quality_prohibitively_slow_(false) {
network_interfaces_.reset(new net::NetworkInterfaceList());
}
@@ -102,11 +103,20 @@ bool TestDataReductionProxyConfig::IsIncludedInLoFiEnabledFieldTrial() const {
return auto_lofi_enabled_group_;
}
+bool TestDataReductionProxyConfig::IsIncludedInLoFiControlFieldTrial() const {
+ return auto_lofi_control_group_;
+}
+
void TestDataReductionProxyConfig::SetIncludedInLoFiEnabledFieldTrial(
bool auto_lofi_enabled_group) {
auto_lofi_enabled_group_ = auto_lofi_enabled_group;
}
+void TestDataReductionProxyConfig::SetIncludedInLoFiControlFieldTrial(
+ bool auto_lofi_control_group) {
+ auto_lofi_control_group_ = auto_lofi_control_group;
+}
+
void TestDataReductionProxyConfig::SetNetworkProhibitivelySlow(
bool network_quality_prohibitively_slow) {
network_quality_prohibitively_slow_ = network_quality_prohibitively_slow;

Powered by Google App Engine
This is Rietveld 408576698