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

Unified Diff: components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.h

Issue 421653005: Adding synthetic field trial for DataReductionProxyEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@newPltWithCL
Patch Set: Moving set callback out of init Created 6 years, 5 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/browser/data_reduction_proxy_settings_test_utils.h
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.h b/components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.h
index b24f239ceb011b9ed208b3a62e6badd1bb0a65a9..0ece527aee589e038befe1becee6b7973050b6de 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.h
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.h
@@ -157,11 +157,15 @@ class DataReductionProxySettingsTestBase : public testing::Test {
bool expected_fallback_restricted);
void CheckOnPrefChange(bool enabled, bool expected_enabled, bool managed);
void CheckInitDataReductionProxy(bool enabled_at_startup);
+ void RegisterSyntheticFieldTrialCallback(bool proxy_enabled) {
+ proxy_enabled_ = proxy_enabled;
+ }
TestingPrefServiceSimple pref_service_;
scoped_ptr<DataReductionProxySettings> settings_;
scoped_ptr<TestDataReductionProxyParams> expected_params_;
base::Time last_update_time_;
+ bool proxy_enabled_;
};
// Test implementations should be subclasses of an instantiation of this

Powered by Google App Engine
This is Rietveld 408576698