OLD | NEW |
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/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 MOCK_METHOD1(AddSessionStateObserver, | 64 MOCK_METHOD1(AddSessionStateObserver, |
65 void(UserManager::UserSessionStateObserver*)); | 65 void(UserManager::UserSessionStateObserver*)); |
66 MOCK_METHOD1(RemoveSessionStateObserver, | 66 MOCK_METHOD1(RemoveSessionStateObserver, |
67 void(UserManager::UserSessionStateObserver*)); | 67 void(UserManager::UserSessionStateObserver*)); |
68 MOCK_METHOD0(NotifyLocalStateChanged, void(void)); | 68 MOCK_METHOD0(NotifyLocalStateChanged, void(void)); |
69 MOCK_METHOD0(CreateLocallyManagedUserRecord, void(void)); | 69 MOCK_METHOD0(CreateLocallyManagedUserRecord, void(void)); |
70 MOCK_CONST_METHOD0(GetMergeSessionState, MergeSessionState(void)); | 70 MOCK_CONST_METHOD0(GetMergeSessionState, MergeSessionState(void)); |
71 MOCK_METHOD1(SetMergeSessionState, void(MergeSessionState)); | 71 MOCK_METHOD1(SetMergeSessionState, void(MergeSessionState)); |
72 MOCK_METHOD2(SetUserFlow, void(const std::string&, UserFlow*)); | 72 MOCK_METHOD2(SetUserFlow, void(const std::string&, UserFlow*)); |
73 MOCK_METHOD1(ResetUserFlow, void(const std::string&)); | 73 MOCK_METHOD1(ResetUserFlow, void(const std::string&)); |
| 74 MOCK_CONST_METHOD1(GetManagerForManagedUser, std::string( |
| 75 const std::string& managed_user_id)); |
74 MOCK_METHOD2(CreateLocallyManagedUserRecord, const User*( | 76 MOCK_METHOD2(CreateLocallyManagedUserRecord, const User*( |
75 const std::string& e_mail, | 77 const std::string& e_mail, |
76 const string16& display_name)); | 78 const string16& display_name)); |
77 MOCK_METHOD0(GenerateUniqueLocallyManagedUserId, std::string(void)); | 79 MOCK_METHOD0(GenerateUniqueLocallyManagedUserId, std::string(void)); |
78 MOCK_METHOD1(StartLocallyManagedUserCreationTransaction, | 80 MOCK_METHOD1(StartLocallyManagedUserCreationTransaction, |
79 void(const string16&)); | 81 void(const string16&)); |
80 MOCK_METHOD1(SetLocallyManagedUserCreationTransactionUserId, | 82 MOCK_METHOD1(SetLocallyManagedUserCreationTransactionUserId, |
81 void(const std::string&)); | 83 void(const std::string&)); |
82 MOCK_METHOD0(CommitLocallyManagedUserCreationTransaction, void(void)); | 84 MOCK_METHOD0(CommitLocallyManagedUserCreationTransaction, void(void)); |
83 | 85 |
(...skipping 21 matching lines...) Expand all Loading... |
105 User* CreatePublicAccountUser(const std::string& email); | 107 User* CreatePublicAccountUser(const std::string& email); |
106 | 108 |
107 User* user_; | 109 User* user_; |
108 scoped_ptr<MockUserImageManager> user_image_manager_; | 110 scoped_ptr<MockUserImageManager> user_image_manager_; |
109 scoped_ptr<UserFlow> user_flow_; | 111 scoped_ptr<UserFlow> user_flow_; |
110 }; | 112 }; |
111 | 113 |
112 } // namespace chromeos | 114 } // namespace chromeos |
113 | 115 |
114 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ | 116 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ |
OLD | NEW |