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 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings_test_utils.h" | 5 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings_test_utils.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 151 |
152 test_context_->RunUntilIdle(); | 152 test_context_->RunUntilIdle(); |
153 } | 153 } |
154 | 154 |
155 void DataReductionProxySettingsTestBase::CheckDataReductionProxySyntheticTrial( | 155 void DataReductionProxySettingsTestBase::CheckDataReductionProxySyntheticTrial( |
156 bool enabled) { | 156 bool enabled) { |
157 EXPECT_EQ(enabled ? "Enabled" : "Disabled", | 157 EXPECT_EQ(enabled ? "Enabled" : "Disabled", |
158 synthetic_field_trials_["SyntheticDataReductionProxySetting"]); | 158 synthetic_field_trials_["SyntheticDataReductionProxySetting"]); |
159 } | 159 } |
160 | 160 |
161 void DataReductionProxySettingsTestBase:: | |
162 CheckDataReductionProxyLoFiSyntheticTrial(bool enabled) { | |
163 EXPECT_EQ(enabled ? "Enabled" : "Disabled", | |
164 synthetic_field_trials_["SyntheticDataReductionProxyLoFiSetting"]); | |
165 } | |
166 | |
167 } // namespace data_reduction_proxy | 161 } // namespace data_reduction_proxy |
OLD | NEW |