Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / chrome / browser / ui / app_list / test / fake_profile.cc
blob55621f5fb5fd775cc0beafdc21efea76f808535a
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 HostContentSettingsMap* FakeProfile::GetHostContentSettingsMap() {
147 return nullptr;
150 bool FakeProfile::IsSameProfile(Profile* profile) {
151 return false;
154 base::Time FakeProfile::GetStartTime() const {
155 return base::Time();
158 net::URLRequestContextGetter* FakeProfile::CreateRequestContext(
159 content::ProtocolHandlerMap* protocol_handlers,
160 content::URLRequestInterceptorScopedVector request_interceptors) {
161 return nullptr;
164 net::URLRequestContextGetter*
165 FakeProfile::CreateRequestContextForStoragePartition(
166 const base::FilePath& partition_path,
167 bool in_memory,
168 content::ProtocolHandlerMap* protocol_handlers,
169 content::URLRequestInterceptorScopedVector request_interceptors) {
170 return nullptr;
173 base::FilePath FakeProfile::last_selected_directory() {
174 return base::FilePath();
177 void FakeProfile::set_last_selected_directory(const base::FilePath& path) {}
179 #if defined(OS_CHROMEOS)
180 void FakeProfile::ChangeAppLocale(
181 const std::string& locale, AppLocaleChangedVia via) {}
182 void FakeProfile::OnLogin() {}
183 void FakeProfile::InitChromeOSPreferences() {}
184 #endif // defined(OS_CHROMEOS)
186 PrefProxyConfigTracker* FakeProfile::GetProxyConfigTracker() {
187 return nullptr;
190 chrome_browser_net::Predictor* FakeProfile::GetNetworkPredictor() {
191 return nullptr;
194 DevToolsNetworkControllerHandle*
195 FakeProfile::GetDevToolsNetworkControllerHandle() {
196 return nullptr;
199 void FakeProfile::ClearNetworkingHistorySince(
200 base::Time time,
201 const base::Closure& completion) {
204 GURL FakeProfile::GetHomePage() {
205 return GURL();
208 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) {
209 return false;
212 void FakeProfile::SetExitType(ExitType exit_type) {
215 Profile::ExitType FakeProfile::GetLastSessionExitType() {
216 return EXIT_NORMAL;