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 "chrome/browser/ui/app_list/test/fake_profile.h" | 5 #include "chrome/browser/ui/app_list/test/fake_profile.h" |
6 | 6 |
7 FakeProfile::FakeProfile(const std::string& name) | 7 FakeProfile::FakeProfile(const std::string& name) |
8 : name_(name) { | 8 : name_(name) { |
9 } | 9 } |
10 | 10 |
| 11 FakeProfile::FakeProfile(const std::string& name, const base::FilePath& path) |
| 12 : name_(name), |
| 13 path_(path) { |
| 14 } |
| 15 |
11 std::string FakeProfile::GetProfileName() { | 16 std::string FakeProfile::GetProfileName() { |
12 return name_; | 17 return name_; |
13 } | 18 } |
14 | 19 |
15 base::FilePath FakeProfile::GetPath() const { | 20 base::FilePath FakeProfile::GetPath() const { |
16 return base::FilePath(); | 21 return path_; |
17 } | 22 } |
18 | 23 |
19 bool FakeProfile::IsOffTheRecord() const { | 24 bool FakeProfile::IsOffTheRecord() const { |
20 return false; | 25 return false; |
21 } | 26 } |
22 | 27 |
23 content::DownloadManagerDelegate* | 28 content::DownloadManagerDelegate* |
24 FakeProfile::GetDownloadManagerDelegate() { | 29 FakeProfile::GetDownloadManagerDelegate() { |
25 return NULL; | 30 return NULL; |
26 } | 31 } |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { | 189 bool FakeProfile::WasCreatedByVersionOrLater(const std::string& version) { |
185 return false; | 190 return false; |
186 } | 191 } |
187 | 192 |
188 void FakeProfile::SetExitType(ExitType exit_type) { | 193 void FakeProfile::SetExitType(ExitType exit_type) { |
189 } | 194 } |
190 | 195 |
191 Profile::ExitType FakeProfile::GetLastSessionExitType() { | 196 Profile::ExitType FakeProfile::GetLastSessionExitType() { |
192 return EXIT_NORMAL; | 197 return EXIT_NORMAL; |
193 } | 198 } |
OLD | NEW |