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_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 Loading... |
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 |
OLD | NEW |