| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |