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/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 MOCK_CONST_METHOD0(IsLoggedInAsPublicAccount, bool(void)); | 53 MOCK_CONST_METHOD0(IsLoggedInAsPublicAccount, bool(void)); |
54 MOCK_CONST_METHOD0(IsLoggedInAsGuest, bool(void)); | 54 MOCK_CONST_METHOD0(IsLoggedInAsGuest, bool(void)); |
55 MOCK_CONST_METHOD0(IsLoggedInAsStub, bool(void)); | 55 MOCK_CONST_METHOD0(IsLoggedInAsStub, bool(void)); |
56 MOCK_CONST_METHOD0(IsSessionStarted, bool(void)); | 56 MOCK_CONST_METHOD0(IsSessionStarted, bool(void)); |
57 MOCK_CONST_METHOD0(HasBrowserRestarted, bool(void)); | 57 MOCK_CONST_METHOD0(HasBrowserRestarted, bool(void)); |
58 MOCK_CONST_METHOD1(IsUserNonCryptohomeDataEphemeral, | 58 MOCK_CONST_METHOD1(IsUserNonCryptohomeDataEphemeral, |
59 bool(const std::string&)); | 59 bool(const std::string&)); |
60 MOCK_METHOD1(AddObserver, void(UserManager::Observer*)); | 60 MOCK_METHOD1(AddObserver, void(UserManager::Observer*)); |
61 MOCK_METHOD1(RemoveObserver, void(UserManager::Observer*)); | 61 MOCK_METHOD1(RemoveObserver, void(UserManager::Observer*)); |
62 MOCK_METHOD0(NotifyLocalStateChanged, void(void)); | 62 MOCK_METHOD0(NotifyLocalStateChanged, void(void)); |
| 63 MOCK_CONST_METHOD0(GetMergeSessionState, MergeSessionState(void)); |
| 64 MOCK_METHOD1(SetMergeSessionState, void(MergeSessionState)); |
63 | 65 |
64 // You can't mock this function easily because nobody can create User objects | 66 // You can't mock this function easily because nobody can create User objects |
65 // but the UserManagerImpl and us. | 67 // but the UserManagerImpl and us. |
66 virtual const User* GetLoggedInUser() const OVERRIDE; | 68 virtual const User* GetLoggedInUser() const OVERRIDE; |
67 | 69 |
68 // You can't mock this function easily because nobody can create User objects | 70 // You can't mock this function easily because nobody can create User objects |
69 // but the UserManagerImpl and us. | 71 // but the UserManagerImpl and us. |
70 virtual User* GetLoggedInUser() OVERRIDE; | 72 virtual User* GetLoggedInUser() OVERRIDE; |
71 | 73 |
72 virtual UserImageManager* GetUserImageManager() OVERRIDE; | 74 virtual UserImageManager* GetUserImageManager() OVERRIDE; |
(...skipping 15 matching lines...) Expand all Loading... |
88 MockUserManager* user_manager(); | 90 MockUserManager* user_manager(); |
89 | 91 |
90 private: | 92 private: |
91 UserManager* old_user_manager_; | 93 UserManager* old_user_manager_; |
92 scoped_ptr<MockUserManager> user_manager_; | 94 scoped_ptr<MockUserManager> user_manager_; |
93 }; | 95 }; |
94 | 96 |
95 } // namespace chromeos | 97 } // namespace chromeos |
96 | 98 |
97 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ | 99 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ |
OLD | NEW |