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

Side by Side Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.cc

Issue 1933653004: Reset the Lo-Fi main frame state when there is a new main frame request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: check data_reduction_proxy_io_data_ Created 4 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698