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

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

Issue 393343002: Rename "managed (mode|user)" to "supervised user" (part 7) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more alphabetize (and rebase again) Created 6 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_USERS_MOCK_USER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 MOCK_CONST_METHOD1(GetUserDisplayEmail, std::string(const std::string&)); 51 MOCK_CONST_METHOD1(GetUserDisplayEmail, std::string(const std::string&));
52 MOCK_CONST_METHOD0(IsCurrentUserOwner, bool(void)); 52 MOCK_CONST_METHOD0(IsCurrentUserOwner, bool(void));
53 MOCK_CONST_METHOD0(IsCurrentUserNew, bool(void)); 53 MOCK_CONST_METHOD0(IsCurrentUserNew, bool(void));
54 MOCK_CONST_METHOD0(IsCurrentUserNonCryptohomeDataEphemeral, bool(void)); 54 MOCK_CONST_METHOD0(IsCurrentUserNonCryptohomeDataEphemeral, bool(void));
55 MOCK_CONST_METHOD0(CanCurrentUserLock, bool(void)); 55 MOCK_CONST_METHOD0(CanCurrentUserLock, bool(void));
56 MOCK_CONST_METHOD0(IsUserLoggedIn, bool(void)); 56 MOCK_CONST_METHOD0(IsUserLoggedIn, bool(void));
57 MOCK_CONST_METHOD0(IsLoggedInAsRegularUser, bool(void)); 57 MOCK_CONST_METHOD0(IsLoggedInAsRegularUser, bool(void));
58 MOCK_CONST_METHOD0(IsLoggedInAsDemoUser, bool(void)); 58 MOCK_CONST_METHOD0(IsLoggedInAsDemoUser, bool(void));
59 MOCK_CONST_METHOD0(IsLoggedInAsPublicAccount, bool(void)); 59 MOCK_CONST_METHOD0(IsLoggedInAsPublicAccount, bool(void));
60 MOCK_CONST_METHOD0(IsLoggedInAsGuest, bool(void)); 60 MOCK_CONST_METHOD0(IsLoggedInAsGuest, bool(void));
61 MOCK_CONST_METHOD0(IsLoggedInAsLocallyManagedUser, bool(void)); 61 MOCK_CONST_METHOD0(IsLoggedInAsSupervisedUser, bool(void));
62 MOCK_CONST_METHOD0(IsLoggedInAsKioskApp, bool(void)); 62 MOCK_CONST_METHOD0(IsLoggedInAsKioskApp, bool(void));
63 MOCK_CONST_METHOD0(IsLoggedInAsStub, bool(void)); 63 MOCK_CONST_METHOD0(IsLoggedInAsStub, bool(void));
64 MOCK_CONST_METHOD0(IsSessionStarted, bool(void)); 64 MOCK_CONST_METHOD0(IsSessionStarted, bool(void));
65 MOCK_CONST_METHOD1(IsUserNonCryptohomeDataEphemeral, 65 MOCK_CONST_METHOD1(IsUserNonCryptohomeDataEphemeral,
66 bool(const std::string&)); 66 bool(const std::string&));
67 MOCK_METHOD1(AddObserver, void(UserManager::Observer*)); 67 MOCK_METHOD1(AddObserver, void(UserManager::Observer*));
68 MOCK_METHOD1(RemoveObserver, void(UserManager::Observer*)); 68 MOCK_METHOD1(RemoveObserver, void(UserManager::Observer*));
69 MOCK_METHOD1(AddSessionStateObserver, 69 MOCK_METHOD1(AddSessionStateObserver,
70 void(UserManager::UserSessionStateObserver*)); 70 void(UserManager::UserSessionStateObserver*));
71 MOCK_METHOD1(RemoveSessionStateObserver, 71 MOCK_METHOD1(RemoveSessionStateObserver,
72 void(UserManager::UserSessionStateObserver*)); 72 void(UserManager::UserSessionStateObserver*));
73 MOCK_METHOD0(NotifyLocalStateChanged, void(void)); 73 MOCK_METHOD0(NotifyLocalStateChanged, void(void));
74 MOCK_METHOD2(SetUserFlow, void(const std::string&, UserFlow*)); 74 MOCK_METHOD2(SetUserFlow, void(const std::string&, UserFlow*));
75 MOCK_METHOD1(ResetUserFlow, void(const std::string&)); 75 MOCK_METHOD1(ResetUserFlow, void(const std::string&));
76 76
77 MOCK_CONST_METHOD0(AreLocallyManagedUsersAllowed, bool(void)); 77 MOCK_CONST_METHOD0(AreSupervisedUsersAllowed, bool(void));
78 78
79 // You can't mock these functions easily because nobody can create 79 // You can't mock these functions easily because nobody can create
80 // User objects but the UserManagerImpl and us. 80 // User objects but the UserManagerImpl and us.
81 virtual const UserList& GetUsers() const OVERRIDE; 81 virtual const UserList& GetUsers() const OVERRIDE;
82 virtual const User* GetLoggedInUser() const OVERRIDE; 82 virtual const User* GetLoggedInUser() const OVERRIDE;
83 virtual UserList GetUnlockUsers() const OVERRIDE; 83 virtual UserList GetUnlockUsers() const OVERRIDE;
84 virtual const std::string& GetOwnerEmail() OVERRIDE; 84 virtual const std::string& GetOwnerEmail() OVERRIDE;
85 virtual User* GetLoggedInUser() OVERRIDE; 85 virtual User* GetLoggedInUser() OVERRIDE;
86 virtual const User* GetActiveUser() const OVERRIDE; 86 virtual const User* GetActiveUser() const OVERRIDE;
87 virtual User* GetActiveUser() OVERRIDE; 87 virtual User* GetActiveUser() OVERRIDE;
(...skipping 25 matching lines...) Expand all
113 113
114 scoped_ptr<UserFlow> user_flow_; 114 scoped_ptr<UserFlow> user_flow_;
115 scoped_ptr<MockUserImageManager> user_image_manager_; 115 scoped_ptr<MockUserImageManager> user_image_manager_;
116 scoped_ptr<FakeSupervisedUserManager> supervised_user_manager_; 116 scoped_ptr<FakeSupervisedUserManager> supervised_user_manager_;
117 UserList user_list_; 117 UserList user_list_;
118 }; 118 };
119 119
120 } // namespace chromeos 120 } // namespace chromeos
121 121
122 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_ 122 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698