Elim cr-checkbox
[chromium-blink-merge.git] / chrome / browser / ui / app_list / test / fake_profile.cc
blob8ea04ece50b172d3fd64c5138491637c109823eb
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/app_list/test/fake_profile.h"
7 FakeProfile::FakeProfile(const std::string& name)
8 : name_(name) {
11 FakeProfile::FakeProfile(const std::string& name, const base::FilePath& path)
12 : name_(name),
13 path_(path) {
16 std::string FakeProfile::GetProfileUserName() const {
17 return name_;
20 Profile::ProfileType FakeProfile::GetProfileType() const {
21 return REGULAR_PROFILE;
24 base::FilePath FakeProfile::GetPath() const {
25 return path_;
28 scoped_ptr<content::ZoomLevelDelegate> FakeProfile::CreateZoomLevelDelegate(
29 const base::FilePath& partition_path) {
30 return nullptr;
33 bool FakeProfile::IsOffTheRecord() const {
34 return false;
37 content::DownloadManagerDelegate* FakeProfile::GetDownloadManagerDelegate() {
38 return nullptr;
41 net::URLRequestContextGetter* FakeProfile::GetRequestContextForRenderProcess(
42 int renderer_child_id) {
43 return nullptr;
46 net::URLRequestContextGetter* FakeProfile::GetMediaRequestContext() {
47 return nullptr;
50 net::URLRequestContextGetter*
51 FakeProfile::GetMediaRequestContextForRenderProcess(
52 int renderer_child_id) {
53 return nullptr;
56 net::URLRequestContextGetter*
57 FakeProfile::GetMediaRequestContextForStoragePartition(
58 const base::FilePath& partition_path,
59 bool in_memory) {
60 return nullptr;
63 content::ResourceContext* FakeProfile::GetResourceContext() {
64 return nullptr;
67 content::BrowserPluginGuestManager* FakeProfile::GetGuestManager() {
68 return nullptr;
71 storage::SpecialStoragePolicy* FakeProfile::GetSpecialStoragePolicy() {
72 return nullptr;
75 content::PushMessagingService* FakeProfile::GetPushMessagingService() {
76 return nullptr;
79 content::SSLHostStateDelegate* FakeProfile::GetSSLHostStateDelegate() {
80 return nullptr;
83 content::PermissionManager* FakeProfile::GetPermissionManager() {
84 return nullptr;
87 scoped_refptr<base::SequencedTaskRunner>
88 FakeProfile::GetIOTaskRunner() {
89 return scoped_refptr<base::SequencedTaskRunner>();
92 Profile* FakeProfile::GetOffTheRecordProfile() {
93 return nullptr;
96 void FakeProfile::DestroyOffTheRecordProfile() {}
98 bool FakeProfile::HasOffTheRecordProfile() {
99 return false;
102 Profile* FakeProfile::GetOriginalProfile() {
103 return this;
106 bool FakeProfile::IsSupervised() const {
107 return false;
110 bool FakeProfile::IsChild() const {
111 return false;
114 bool FakeProfile::IsLegacySupervised() const {
115 return false;
118 ExtensionSpecialStoragePolicy* FakeProfile::GetExtensionSpecialStoragePolicy() {
119 return nullptr;
122 PrefService* FakeProfile::GetPrefs() {
123 return nullptr;
126 const PrefService* FakeProfile::GetPrefs() const {
127 return nullptr;
130 PrefService* FakeProfile::GetOffTheRecordPrefs() {
131 return nullptr;
134 net::URLRequestContextGetter* FakeProfile::GetRequestContext() {
135 return nullptr;
138 net::URLRequestContextGetter* FakeProfile::GetRequestContextForExtensions() {
139 return nullptr;
142 net::SSLConfigService* FakeProfile::GetSSLConfigService() {
143 return nullptr;
146 bool FakeProfile::IsSameProfile(Profile* profile) {
147 return false;
150 base::Time FakeProfile::GetStartTime() const {
151 return base::Time();
154 net::URLRequestContextGetter* FakeProfile::CreateRequestContext(
155 content::ProtocolHandlerMap* protocol_handlers,
156 content::URLRequestInterceptorScopedVector request_interceptors) {
157 return nullptr;
160 net::URLRequestContextGetter*
161 FakeProfile::CreateRequestContextForStoragePartition(
162 const base::FilePath& partition_path,
163 bool in_memory,
164 content::ProtocolHandlerMap* protocol_handlers,
165 content::URLRequestInterceptorScopedVector request_interceptors) {
166 return nullptr;
169 base::FilePath FakeProfile::last_selected_directory() {
170 return base::FilePath();
173 void FakeProfile::set_last_selected_directory(const base::FilePath& path) {}
175 #if defined(OS_CHROMEOS)
176 void FakeProfile::ChangeAppLocale(
177 const std::string& locale, AppLocaleChangedVia via) {}
178 void FakeProfile::OnLogin() {}
179 void FakeProfile::InitChromeOSPreferences() {}
180 #endif // defined(OS_CHROMEOS)
182 PrefProxyConfigTracker* FakeProfile::GetProxyConfigTracker() {
183 return nullptr;
186 chrome_browser_net::Predictor* FakeProfile::GetNetworkPredictor() {
187 return nullptr;
190 DevToolsNetworkControllerHandle*
191 FakeProfile::GetDevToolsNetworkControllerHandle() {
192 return nullptr;
195 void FakeProfile::ClearNetworkingHistorySince(
196 base::Time time,
197 const base::Closure& completion) {
200 GURL FakeProfile::GetHomePage() {
201 return GURL();
204 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) {
205 return false;
208 void FakeProfile::SetExitType(ExitType exit_type) {
211 Profile::ExitType FakeProfile::GetLastSessionExitType() {
212 return EXIT_NORMAL;