OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/test/base/testing_profile.h" | 5 #include "chrome/test/base/testing_profile.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 #include "components/keyed_service/core/refcounted_keyed_service.h" | 68 #include "components/keyed_service/core/refcounted_keyed_service.h" |
69 #include "components/omnibox/browser/autocomplete_classifier.h" | 69 #include "components/omnibox/browser/autocomplete_classifier.h" |
70 #include "components/omnibox/browser/history_index_restore_observer.h" | 70 #include "components/omnibox/browser/history_index_restore_observer.h" |
71 #include "components/omnibox/browser/in_memory_url_index.h" | 71 #include "components/omnibox/browser/in_memory_url_index.h" |
72 #include "components/policy/core/common/configuration_policy_provider.h" | 72 #include "components/policy/core/common/configuration_policy_provider.h" |
73 #include "components/policy/core/common/policy_service.h" | 73 #include "components/policy/core/common/policy_service.h" |
74 #include "components/policy/core/common/policy_service_impl.h" | 74 #include "components/policy/core/common/policy_service_impl.h" |
75 #include "components/policy/core/common/schema.h" | 75 #include "components/policy/core/common/schema.h" |
76 #include "components/prefs/testing_pref_store.h" | 76 #include "components/prefs/testing_pref_store.h" |
77 #include "components/proxy_config/pref_proxy_config_tracker.h" | 77 #include "components/proxy_config/pref_proxy_config_tracker.h" |
| 78 #include "components/sync/api/fake_sync_change_processor.h" |
| 79 #include "components/sync/api/sync_error_factory_mock.h" |
78 #include "components/syncable_prefs/pref_service_mock_factory.h" | 80 #include "components/syncable_prefs/pref_service_mock_factory.h" |
79 #include "components/syncable_prefs/pref_service_syncable.h" | 81 #include "components/syncable_prefs/pref_service_syncable.h" |
80 #include "components/syncable_prefs/testing_pref_service_syncable.h" | 82 #include "components/syncable_prefs/testing_pref_service_syncable.h" |
81 #include "components/user_prefs/user_prefs.h" | 83 #include "components/user_prefs/user_prefs.h" |
82 #include "components/webdata_services/web_data_service_wrapper.h" | 84 #include "components/webdata_services/web_data_service_wrapper.h" |
83 #include "components/zoom/zoom_event_manager.h" | 85 #include "components/zoom/zoom_event_manager.h" |
84 #include "content/public/browser/browser_thread.h" | 86 #include "content/public/browser/browser_thread.h" |
85 #include "content/public/browser/cookie_store_factory.h" | 87 #include "content/public/browser/cookie_store_factory.h" |
86 #include "content/public/browser/notification_service.h" | 88 #include "content/public/browser/notification_service.h" |
87 #include "content/public/browser/render_process_host.h" | 89 #include "content/public/browser/render_process_host.h" |
88 #include "content/public/browser/storage_partition.h" | 90 #include "content/public/browser/storage_partition.h" |
89 #include "content/public/browser/zoom_level_delegate.h" | 91 #include "content/public/browser/zoom_level_delegate.h" |
90 #include "content/public/test/mock_resource_context.h" | 92 #include "content/public/test/mock_resource_context.h" |
91 #include "content/public/test/test_utils.h" | 93 #include "content/public/test/test_utils.h" |
92 #include "extensions/common/constants.h" | 94 #include "extensions/common/constants.h" |
93 #include "net/cookies/cookie_store.h" | 95 #include "net/cookies/cookie_store.h" |
94 #include "net/url_request/url_request_context.h" | 96 #include "net/url_request/url_request_context.h" |
95 #include "net/url_request/url_request_context_getter.h" | 97 #include "net/url_request/url_request_context_getter.h" |
96 #include "net/url_request/url_request_test_util.h" | 98 #include "net/url_request/url_request_test_util.h" |
97 #include "sync/api/fake_sync_change_processor.h" | |
98 #include "sync/api/sync_error_factory_mock.h" | |
99 #include "testing/gmock/include/gmock/gmock.h" | 99 #include "testing/gmock/include/gmock/gmock.h" |
100 | 100 |
101 #if defined(ENABLE_EXTENSIONS) | 101 #if defined(ENABLE_EXTENSIONS) |
102 #include "chrome/browser/extensions/extension_service.h" | 102 #include "chrome/browser/extensions/extension_service.h" |
103 #include "chrome/browser/extensions/extension_special_storage_policy.h" | 103 #include "chrome/browser/extensions/extension_special_storage_policy.h" |
104 #include "chrome/browser/extensions/extension_system_factory.h" | 104 #include "chrome/browser/extensions/extension_system_factory.h" |
105 #include "chrome/browser/extensions/test_extension_system.h" | 105 #include "chrome/browser/extensions/test_extension_system.h" |
106 #include "components/guest_view/browser/guest_view_manager.h" | 106 #include "components/guest_view/browser/guest_view_manager.h" |
107 #include "extensions/browser/event_router_factory.h" | 107 #include "extensions/browser/event_router_factory.h" |
108 #include "extensions/browser/extension_pref_value_map.h" | 108 #include "extensions/browser/extension_pref_value_map.h" |
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 // Note: Owned by |original_profile|. | 1069 // Note: Owned by |original_profile|. |
1070 return new TestingProfile(path_, delegate_, | 1070 return new TestingProfile(path_, delegate_, |
1071 #if defined(ENABLE_EXTENSIONS) | 1071 #if defined(ENABLE_EXTENSIONS) |
1072 extension_policy_, | 1072 extension_policy_, |
1073 #endif | 1073 #endif |
1074 std::move(pref_service_), original_profile, | 1074 std::move(pref_service_), original_profile, |
1075 guest_session_, supervised_user_id_, | 1075 guest_session_, supervised_user_id_, |
1076 std::move(policy_service_), testing_factories_, | 1076 std::move(policy_service_), testing_factories_, |
1077 profile_name_); | 1077 profile_name_); |
1078 } | 1078 } |
OLD | NEW |