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

Side by Side Diff: chrome/browser/chromeos/login/mock_user_manager.h

Issue 10832336: chromeos: Use gfx::ImageSkia instead of SkBitmap for downloaded profile image. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/user_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 MOCK_CONST_METHOD0(IsCurrentUserNew, bool(void)); 52 MOCK_CONST_METHOD0(IsCurrentUserNew, bool(void));
53 MOCK_CONST_METHOD0(IsCurrentUserEphemeral, bool(void)); 53 MOCK_CONST_METHOD0(IsCurrentUserEphemeral, bool(void));
54 MOCK_CONST_METHOD0(IsUserLoggedIn, bool(void)); 54 MOCK_CONST_METHOD0(IsUserLoggedIn, bool(void));
55 MOCK_CONST_METHOD0(IsLoggedInAsDemoUser, bool(void)); 55 MOCK_CONST_METHOD0(IsLoggedInAsDemoUser, bool(void));
56 MOCK_CONST_METHOD0(IsLoggedInAsGuest, bool(void)); 56 MOCK_CONST_METHOD0(IsLoggedInAsGuest, bool(void));
57 MOCK_CONST_METHOD0(IsLoggedInAsStub, bool(void)); 57 MOCK_CONST_METHOD0(IsLoggedInAsStub, bool(void));
58 MOCK_CONST_METHOD0(IsSessionStarted, bool(void)); 58 MOCK_CONST_METHOD0(IsSessionStarted, bool(void));
59 MOCK_METHOD1(AddObserver, void(UserManager::Observer*)); 59 MOCK_METHOD1(AddObserver, void(UserManager::Observer*));
60 MOCK_METHOD1(RemoveObserver, void(UserManager::Observer*)); 60 MOCK_METHOD1(RemoveObserver, void(UserManager::Observer*));
61 MOCK_METHOD0(NotifyLocalStateChanged, void(void)); 61 MOCK_METHOD0(NotifyLocalStateChanged, void(void));
62 MOCK_CONST_METHOD0(DownloadedProfileImage, const SkBitmap& (void)); 62 MOCK_CONST_METHOD0(DownloadedProfileImage, const gfx::ImageSkia& (void));
63 63
64 // You can't mock this function easily because nobody can create User objects 64 // You can't mock this function easily because nobody can create User objects
65 // but the UserManagerImpl and us. 65 // but the UserManagerImpl and us.
66 virtual const User& GetLoggedInUser() const OVERRIDE; 66 virtual const User& GetLoggedInUser() const OVERRIDE;
67 67
68 // You can't mock this function easily because nobody can create User objects 68 // You can't mock this function easily because nobody can create User objects
69 // but the UserManagerImpl and us. 69 // but the UserManagerImpl and us.
70 virtual User& GetLoggedInUser() OVERRIDE; 70 virtual User& GetLoggedInUser() OVERRIDE;
71 71
72 // Sets a new User instance. 72 // Sets a new User instance.
(...skipping 12 matching lines...) Expand all
85 MockUserManager* user_manager(); 85 MockUserManager* user_manager();
86 86
87 private: 87 private:
88 UserManager* old_user_manager_; 88 UserManager* old_user_manager_;
89 scoped_ptr<MockUserManager> user_manager_; 89 scoped_ptr<MockUserManager> user_manager_;
90 }; 90 };
91 91
92 } // namespace chromeos 92 } // namespace chromeos
93 93
94 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ 94 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/user_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698