OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 #include "chrome/browser/ui/app_list/test/fake_profile.h" | 6 #include "chrome/browser/ui/app_list/test/fake_profile.h" |
7 | 7 |
8 FakeProfile::FakeProfile(const std::string& name) | 8 FakeProfile::FakeProfile(const std::string& name) |
9 : name_(name) { | 9 : name_(name) { |
10 BrowserContext::Initialize(this, base::FilePath()); | 10 BrowserContext::Initialize(this, base::FilePath()); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 } | 79 } |
80 | 80 |
81 content::PermissionManager* FakeProfile::GetPermissionManager() { | 81 content::PermissionManager* FakeProfile::GetPermissionManager() { |
82 return nullptr; | 82 return nullptr; |
83 } | 83 } |
84 | 84 |
85 content::BackgroundSyncController* FakeProfile::GetBackgroundSyncController() { | 85 content::BackgroundSyncController* FakeProfile::GetBackgroundSyncController() { |
86 return nullptr; | 86 return nullptr; |
87 } | 87 } |
88 | 88 |
| 89 net::URLRequestContextGetter* FakeProfile::CreateRequestContext( |
| 90 content::ProtocolHandlerMap* protocol_handlers, |
| 91 content::URLRequestInterceptorScopedVector request_interceptors) { |
| 92 return nullptr; |
| 93 } |
| 94 |
| 95 net::URLRequestContextGetter* |
| 96 FakeProfile::CreateRequestContextForStoragePartition( |
| 97 const base::FilePath& partition_path, |
| 98 bool in_memory, |
| 99 content::ProtocolHandlerMap* protocol_handlers, |
| 100 content::URLRequestInterceptorScopedVector request_interceptors) { |
| 101 return nullptr; |
| 102 } |
| 103 |
89 scoped_refptr<base::SequencedTaskRunner> | 104 scoped_refptr<base::SequencedTaskRunner> |
90 FakeProfile::GetIOTaskRunner() { | 105 FakeProfile::GetIOTaskRunner() { |
91 return scoped_refptr<base::SequencedTaskRunner>(); | 106 return scoped_refptr<base::SequencedTaskRunner>(); |
92 } | 107 } |
93 | 108 |
94 Profile* FakeProfile::GetOffTheRecordProfile() { | 109 Profile* FakeProfile::GetOffTheRecordProfile() { |
95 return nullptr; | 110 return nullptr; |
96 } | 111 } |
97 | 112 |
98 void FakeProfile::DestroyOffTheRecordProfile() {} | 113 void FakeProfile::DestroyOffTheRecordProfile() {} |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 } | 161 } |
147 | 162 |
148 bool FakeProfile::IsSameProfile(Profile* profile) { | 163 bool FakeProfile::IsSameProfile(Profile* profile) { |
149 return false; | 164 return false; |
150 } | 165 } |
151 | 166 |
152 base::Time FakeProfile::GetStartTime() const { | 167 base::Time FakeProfile::GetStartTime() const { |
153 return base::Time(); | 168 return base::Time(); |
154 } | 169 } |
155 | 170 |
156 net::URLRequestContextGetter* FakeProfile::CreateRequestContext( | |
157 content::ProtocolHandlerMap* protocol_handlers, | |
158 content::URLRequestInterceptorScopedVector request_interceptors) { | |
159 return nullptr; | |
160 } | |
161 | |
162 net::URLRequestContextGetter* | |
163 FakeProfile::CreateRequestContextForStoragePartition( | |
164 const base::FilePath& partition_path, | |
165 bool in_memory, | |
166 content::ProtocolHandlerMap* protocol_handlers, | |
167 content::URLRequestInterceptorScopedVector request_interceptors) { | |
168 return nullptr; | |
169 } | |
170 | |
171 base::FilePath FakeProfile::last_selected_directory() { | 171 base::FilePath FakeProfile::last_selected_directory() { |
172 return base::FilePath(); | 172 return base::FilePath(); |
173 } | 173 } |
174 | 174 |
175 void FakeProfile::set_last_selected_directory(const base::FilePath& path) {} | 175 void FakeProfile::set_last_selected_directory(const base::FilePath& path) {} |
176 | 176 |
177 #if defined(OS_CHROMEOS) | 177 #if defined(OS_CHROMEOS) |
178 void FakeProfile::ChangeAppLocale( | 178 void FakeProfile::ChangeAppLocale( |
179 const std::string& locale, AppLocaleChangedVia via) {} | 179 const std::string& locale, AppLocaleChangedVia via) {} |
180 void FakeProfile::OnLogin() {} | 180 void FakeProfile::OnLogin() {} |
(...skipping 25 matching lines...) Expand all Loading... |
206 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { | 206 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { |
207 return false; | 207 return false; |
208 } | 208 } |
209 | 209 |
210 void FakeProfile::SetExitType(ExitType exit_type) { | 210 void FakeProfile::SetExitType(ExitType exit_type) { |
211 } | 211 } |
212 | 212 |
213 Profile::ExitType FakeProfile::GetLastSessionExitType() { | 213 Profile::ExitType FakeProfile::GetLastSessionExitType() { |
214 return EXIT_NORMAL; | 214 return EXIT_NORMAL; |
215 } | 215 } |
OLD | NEW |