OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_io_d
ata.h" | 5 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
8 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
9 #include "base/prefs/pref_service.h" | 11 #include "base/prefs/pref_service.h" |
10 #include "base/prefs/testing_pref_service.h" | 12 #include "base/prefs/testing_pref_service.h" |
11 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
12 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
13 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
14 #include "base/time/time.h" | 16 #include "base/time/time.h" |
15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_pref
s.h" | 17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_pref
s.h" |
16 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_requ
est_options.h" | 18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_requ
est_options.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 187 |
186 // Turn Data Saver off. | 188 // Turn Data Saver off. |
187 drp_test_context->settings()->SetDataReductionProxyEnabled(false); | 189 drp_test_context->settings()->SetDataReductionProxyEnabled(false); |
188 base::RunLoop().RunUntilIdle(); | 190 base::RunLoop().RunUntilIdle(); |
189 | 191 |
190 // Verify that bad proxy list is empty. | 192 // Verify that bad proxy list is empty. |
191 EXPECT_EQ(0UL, bad_proxy_list.size()); | 193 EXPECT_EQ(0UL, bad_proxy_list.size()); |
192 } | 194 } |
193 | 195 |
194 } // namespace data_reduction_proxy | 196 } // namespace data_reduction_proxy |
OLD | NEW |