OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_IMAGE_MANAGER_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_IMAGE_MANAGER_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/files/file_path.h" | |
11 #include "chrome/browser/chromeos/login/user_image.h" | |
12 #include "chrome/browser/chromeos/login/user_image_manager.h" | |
13 #include "testing/gmock/include/gmock/gmock.h" | |
14 | |
15 namespace chromeos { | |
16 | |
17 class MockUserImageManager : public UserImageManager { | |
18 public: | |
19 explicit MockUserImageManager(const std::string& user_id); | |
20 virtual ~MockUserImageManager(); | |
21 | |
22 MOCK_METHOD1(SaveUserDefaultImageIndex, void(int)); | |
23 MOCK_METHOD1(SaveUserImage, void(const UserImage&)); | |
24 MOCK_METHOD1(SaveUserImageFromFile, void(const base::FilePath&)); | |
25 MOCK_METHOD0(SaveUserImageFromProfileImage, void()); | |
26 MOCK_METHOD1(DownloadProfileImage, void(const std::string&)); | |
27 MOCK_CONST_METHOD0(DownloadedProfileImage, const gfx::ImageSkia& (void)); | |
28 | |
29 }; | |
30 | |
31 } // namespace chromeos | |
32 | |
33 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_IMAGE_MANAGER_H_ | |
OLD | NEW |