Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: chrome/browser/ui/app_list/test/fake_profile.cc

Issue 24707002: Add unit tests for AppListServiceImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: un-const an iterator Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/test/fake_profile.h ('k') | chrome/browser/ui/app_list/test/fake_profile_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698