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

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

Issue 1662843002: Revert of Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 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> 7 #include <stddef.h>
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/prefs/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"
17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test _utils.h" 19 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test _utils.h"
18 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h" 20 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h"
19 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_ names.h" 21 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_ names.h"
20 #include "components/prefs/pref_service.h"
21 #include "components/prefs/testing_pref_service.h"
22 22
23 #include "net/http/http_network_session.h" 23 #include "net/http/http_network_session.h"
24 #include "net/log/net_log.h" 24 #include "net/log/net_log.h"
25 #include "net/proxy/proxy_info.h" 25 #include "net/proxy/proxy_info.h"
26 #include "net/proxy/proxy_service.h" 26 #include "net/proxy/proxy_service.h"
27 #include "net/url_request/url_request_context.h" 27 #include "net/url_request/url_request_context.h"
28 #include "net/url_request/url_request_context_getter.h" 28 #include "net/url_request/url_request_context_getter.h"
29 #include "net/url_request/url_request_interceptor.h" 29 #include "net/url_request/url_request_interceptor.h"
30 #include "net/url_request/url_request_test_util.h" 30 #include "net/url_request/url_request_test_util.h"
31 #include "testing/gtest/include/gtest/gtest.h" 31 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 183
184 // Turn Data Saver off. 184 // Turn Data Saver off.
185 drp_test_context->settings()->SetDataReductionProxyEnabled(false); 185 drp_test_context->settings()->SetDataReductionProxyEnabled(false);
186 base::RunLoop().RunUntilIdle(); 186 base::RunLoop().RunUntilIdle();
187 187
188 // Verify that bad proxy list is empty. 188 // Verify that bad proxy list is empty.
189 EXPECT_EQ(0UL, bad_proxy_list.size()); 189 EXPECT_EQ(0UL, bad_proxy_list.size());
190 } 190 }
191 191
192 } // namespace data_reduction_proxy 192 } // namespace data_reduction_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698