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

Side by Side Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.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_test _utils.h" 5 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test _utils.h"
6 6
7 #include <map> 7 #include <map>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/prefs/pref_registry_simple.h"
12 #include "base/prefs/testing_pref_service.h"
11 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp ression_stats.h" 13 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp ression_stats.h"
12 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf ig_service_client.h" 14 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf ig_service_client.h"
13 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf ig_test_utils.h" 15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf ig_test_utils.h"
14 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf igurator_test_utils.h" 16 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf igurator_test_utils.h"
15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_expe riments_stats.h" 17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_expe riments_stats.h"
16 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_inte rceptor.h" 18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_inte rceptor.h"
17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_muta ble_config_values.h" 19 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_muta ble_config_values.h"
18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_netw ork_delegate.h" 20 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_netw ork_delegate.h"
19 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_pref s.h" 21 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_pref s.h"
20 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings.h" 22 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings.h"
21 #include "components/data_reduction_proxy/core/browser/data_store.h" 23 #include "components/data_reduction_proxy/core/browser/data_store.h"
22 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event _creator.h" 24 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event _creator.h"
23 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event _storage_delegate_test_utils.h" 25 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event _storage_delegate_test_utils.h"
24 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event _store.h" 26 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event _store.h"
25 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h" 27 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h"
26 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s_test_utils.h" 28 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s_test_utils.h"
27 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_ names.h" 29 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_ names.h"
28 #include "components/prefs/pref_registry_simple.h"
29 #include "components/prefs/testing_pref_service.h"
30 #include "net/socket/socket_test_util.h" 30 #include "net/socket/socket_test_util.h"
31 #include "net/url_request/url_request_context_storage.h" 31 #include "net/url_request/url_request_context_storage.h"
32 #include "net/url_request/url_request_intercepting_job_factory.h" 32 #include "net/url_request/url_request_intercepting_job_factory.h"
33 #include "net/url_request/url_request_job_factory_impl.h" 33 #include "net/url_request/url_request_job_factory_impl.h"
34 #include "net/url_request/url_request_test_util.h" 34 #include "net/url_request/url_request_test_util.h"
35 #include "url/gurl.h" 35 #include "url/gurl.h"
36 36
37 namespace { 37 namespace {
38 38
39 const char kTestKey[] = "test-key"; 39 const char kTestKey[] = "test-key";
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 : prefs_(prefs) { 692 : prefs_(prefs) {
693 DCHECK(prefs); 693 DCHECK(prefs);
694 } 694 }
695 695
696 void DataReductionProxyTestContext::TestConfigStorer::StoreSerializedConfig( 696 void DataReductionProxyTestContext::TestConfigStorer::StoreSerializedConfig(
697 const std::string& serialized_config) { 697 const std::string& serialized_config) {
698 prefs_->SetString(prefs::kDataReductionProxyConfig, serialized_config); 698 prefs_->SetString(prefs::kDataReductionProxyConfig, serialized_config);
699 } 699 }
700 700
701 } // namespace data_reduction_proxy 701 } // namespace data_reduction_proxy
OLDNEW
« no previous file with comments | « components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc ('k') | components/dom_distiller/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698