| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
| 12 #include "chrome/browser/chromeos/login/user_image.h" |
| 12 #include "chrome/browser/chromeos/login/user_manager.h" | 13 #include "chrome/browser/chromeos/login/user_manager.h" |
| 13 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
| 14 | 15 |
| 15 namespace chromeos { | 16 namespace chromeos { |
| 16 | 17 |
| 17 class MockUserManager : public UserManager { | 18 class MockUserManager : public UserManager { |
| 18 public: | 19 public: |
| 19 MockUserManager(); | 20 MockUserManager(); |
| 20 virtual ~MockUserManager(); | 21 virtual ~MockUserManager(); |
| 21 | 22 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 34 MOCK_METHOD2(SaveUserOAuthStatus, void(const std::string&, | 35 MOCK_METHOD2(SaveUserOAuthStatus, void(const std::string&, |
| 35 User::OAuthTokenStatus)); | 36 User::OAuthTokenStatus)); |
| 36 MOCK_METHOD2(SaveUserDisplayEmail, void(const std::string&, | 37 MOCK_METHOD2(SaveUserDisplayEmail, void(const std::string&, |
| 37 const std::string&)); | 38 const std::string&)); |
| 38 MOCK_METHOD2(GetLoggedInUserWallpaperProperties, void(User::WallpaperType*, | 39 MOCK_METHOD2(GetLoggedInUserWallpaperProperties, void(User::WallpaperType*, |
| 39 int*)); | 40 int*)); |
| 40 MOCK_METHOD2(SaveLoggedInUserWallpaperProperties, void(User::WallpaperType, | 41 MOCK_METHOD2(SaveLoggedInUserWallpaperProperties, void(User::WallpaperType, |
| 41 int)); | 42 int)); |
| 42 MOCK_CONST_METHOD1(GetUserDisplayEmail, std::string(const std::string&)); | 43 MOCK_CONST_METHOD1(GetUserDisplayEmail, std::string(const std::string&)); |
| 43 MOCK_METHOD2(SaveUserDefaultImageIndex, void(const std::string&, int)); | 44 MOCK_METHOD2(SaveUserDefaultImageIndex, void(const std::string&, int)); |
| 44 MOCK_METHOD2(SaveUserImage, void(const std::string&, const SkBitmap&)); | 45 MOCK_METHOD2(SaveUserImage, void(const std::string&, const UserImage&)); |
| 45 MOCK_METHOD1(SetLoggedInUserCustomWallpaperLayout,void( | 46 MOCK_METHOD1(SetLoggedInUserCustomWallpaperLayout,void( |
| 46 ash::WallpaperLayout)); | 47 ash::WallpaperLayout)); |
| 47 MOCK_METHOD2(SaveUserImageFromFile, void(const std::string&, | 48 MOCK_METHOD2(SaveUserImageFromFile, void(const std::string&, |
| 48 const FilePath&)); | 49 const FilePath&)); |
| 49 MOCK_METHOD4(SaveUserWallpaperFromFile, void(const std::string&, | 50 MOCK_METHOD4(SaveUserWallpaperFromFile, void(const std::string&, |
| 50 const FilePath&, | 51 const FilePath&, |
| 51 ash::WallpaperLayout, | 52 ash::WallpaperLayout, |
| 52 WallpaperDelegate*)); | 53 WallpaperDelegate*)); |
| 53 MOCK_METHOD1(SaveUserImageFromProfileImage, void(const std::string&)); | 54 MOCK_METHOD1(SaveUserImageFromProfileImage, void(const std::string&)); |
| 54 MOCK_METHOD1(DownloadProfileImage, void(const std::string&)); | 55 MOCK_METHOD1(DownloadProfileImage, void(const std::string&)); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 MockUserManager* user_manager(); | 95 MockUserManager* user_manager(); |
| 95 | 96 |
| 96 private: | 97 private: |
| 97 UserManager* old_user_manager_; | 98 UserManager* old_user_manager_; |
| 98 scoped_ptr<MockUserManager> user_manager_; | 99 scoped_ptr<MockUserManager> user_manager_; |
| 99 }; | 100 }; |
| 100 | 101 |
| 101 } // namespace chromeos | 102 } // namespace chromeos |
| 102 | 103 |
| 103 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ | 104 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ |
| OLD | NEW |