| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_SETTINGS_TE
ST_UTILS_H_ | 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_SETTINGS_TE
ST_UTILS_H_ |
| 6 #define COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_SETTINGS_TE
ST_UTILS_H_ | 6 #define COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_SETTINGS_TE
ST_UTILS_H_ |
| 7 | 7 |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/prefs/testing_pref_service.h" | 10 #include "base/prefs/testing_pref_service.h" |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 bool request_success, | 155 bool request_success, |
| 156 bool expected_enabled, | 156 bool expected_enabled, |
| 157 bool expected_fallback_restricted); | 157 bool expected_fallback_restricted); |
| 158 void CheckOnPrefChange(bool enabled, bool expected_enabled, bool managed); | 158 void CheckOnPrefChange(bool enabled, bool expected_enabled, bool managed); |
| 159 void CheckInitDataReductionProxy(bool enabled_at_startup); | 159 void CheckInitDataReductionProxy(bool enabled_at_startup); |
| 160 void RegisterSyntheticFieldTrialCallback(bool proxy_enabled) { | 160 void RegisterSyntheticFieldTrialCallback(bool proxy_enabled) { |
| 161 proxy_enabled_ = proxy_enabled; | 161 proxy_enabled_ = proxy_enabled; |
| 162 } | 162 } |
| 163 | 163 |
| 164 TestingPrefServiceSimple pref_service_; | 164 TestingPrefServiceSimple pref_service_; |
| 165 DataReductionProxyDelayedPrefService* delayed_pref_service_; |
| 165 scoped_ptr<DataReductionProxySettings> settings_; | 166 scoped_ptr<DataReductionProxySettings> settings_; |
| 166 scoped_ptr<TestDataReductionProxyParams> expected_params_; | 167 scoped_ptr<TestDataReductionProxyParams> expected_params_; |
| 167 base::Time last_update_time_; | 168 base::Time last_update_time_; |
| 168 bool proxy_enabled_; | 169 bool proxy_enabled_; |
| 169 }; | 170 }; |
| 170 | 171 |
| 171 // Test implementations should be subclasses of an instantiation of this | 172 // Test implementations should be subclasses of an instantiation of this |
| 172 // class parameterized for whatever DataReductionProxySettings class | 173 // class parameterized for whatever DataReductionProxySettings class |
| 173 // is being tested. | 174 // is being tested. |
| 174 template <class C> | 175 template <class C> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 197 response, | 198 response, |
| 198 result, | 199 result, |
| 199 success, | 200 success, |
| 200 expected_calls); | 201 expected_calls); |
| 201 } | 202 } |
| 202 }; | 203 }; |
| 203 | 204 |
| 204 } // namespace data_reduction_proxy | 205 } // namespace data_reduction_proxy |
| 205 | 206 |
| 206 #endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_SETTINGS
_TEST_UTILS_H_ | 207 #endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_SETTINGS
_TEST_UTILS_H_ |
| OLD | NEW |