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 15 matching lines...) Expand all Loading... |
37 const string16&)); | 38 const string16&)); |
38 MOCK_CONST_METHOD1(GetUserDisplayName, string16(const std::string&)); | 39 MOCK_CONST_METHOD1(GetUserDisplayName, string16(const std::string&)); |
39 MOCK_METHOD2(SaveUserDisplayEmail, void(const std::string&, | 40 MOCK_METHOD2(SaveUserDisplayEmail, void(const std::string&, |
40 const std::string&)); | 41 const std::string&)); |
41 MOCK_METHOD2(GetLoggedInUserWallpaperProperties, void(User::WallpaperType*, | 42 MOCK_METHOD2(GetLoggedInUserWallpaperProperties, void(User::WallpaperType*, |
42 int*)); | 43 int*)); |
43 MOCK_METHOD2(SaveLoggedInUserWallpaperProperties, void(User::WallpaperType, | 44 MOCK_METHOD2(SaveLoggedInUserWallpaperProperties, void(User::WallpaperType, |
44 int)); | 45 int)); |
45 MOCK_CONST_METHOD1(GetUserDisplayEmail, std::string(const std::string&)); | 46 MOCK_CONST_METHOD1(GetUserDisplayEmail, std::string(const std::string&)); |
46 MOCK_METHOD2(SaveUserDefaultImageIndex, void(const std::string&, int)); | 47 MOCK_METHOD2(SaveUserDefaultImageIndex, void(const std::string&, int)); |
47 MOCK_METHOD2(SaveUserImage, void(const std::string&, const SkBitmap&)); | 48 MOCK_METHOD2(SaveUserImage, void(const std::string&, const UserImage&)); |
48 MOCK_METHOD1(SetLoggedInUserCustomWallpaperLayout,void( | 49 MOCK_METHOD1(SetLoggedInUserCustomWallpaperLayout,void( |
49 ash::WallpaperLayout)); | 50 ash::WallpaperLayout)); |
50 MOCK_METHOD2(SaveUserImageFromFile, void(const std::string&, | 51 MOCK_METHOD2(SaveUserImageFromFile, void(const std::string&, |
51 const FilePath&)); | 52 const FilePath&)); |
52 MOCK_METHOD4(SaveUserWallpaperFromFile, void(const std::string&, | 53 MOCK_METHOD4(SaveUserWallpaperFromFile, void(const std::string&, |
53 const FilePath&, | 54 const FilePath&, |
54 ash::WallpaperLayout, | 55 ash::WallpaperLayout, |
55 WallpaperDelegate*)); | 56 WallpaperDelegate*)); |
56 MOCK_METHOD1(SaveUserImageFromProfileImage, void(const std::string&)); | 57 MOCK_METHOD1(SaveUserImageFromProfileImage, void(const std::string&)); |
57 MOCK_METHOD1(DownloadProfileImage, void(const std::string&)); | 58 MOCK_METHOD1(DownloadProfileImage, void(const std::string&)); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 MockUserManager* user_manager(); | 93 MockUserManager* user_manager(); |
93 | 94 |
94 private: | 95 private: |
95 UserManager* old_user_manager_; | 96 UserManager* old_user_manager_; |
96 scoped_ptr<MockUserManager> user_manager_; | 97 scoped_ptr<MockUserManager> user_manager_; |
97 }; | 98 }; |
98 | 99 |
99 } // namespace chromeos | 100 } // namespace chromeos |
100 | 101 |
101 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ | 102 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ |
OLD | NEW |