Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / chromeos / login / users / avatar / mock_user_image_manager.h
blobc006a1897292e539f686f149d15da2162134bff1
1 // Copyright 2014 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.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_MOCK_USER_IMAGE_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_MOCK_USER_IMAGE_MANAGER_H_
8 #include <string>
10 #include "base/files/file_path.h"
11 #include "chrome/browser/chromeos/login/users/avatar/user_image_manager.h"
12 #include "components/user_manager/user_image/user_image.h"
13 #include "testing/gmock/include/gmock/gmock.h"
15 namespace chromeos {
17 class MockUserImageManager : public UserImageManager {
18 public:
19 explicit MockUserImageManager(const std::string& user_id);
20 virtual ~MockUserImageManager();
22 MOCK_METHOD1(SaveUserDefaultImageIndex, void(int));
23 MOCK_METHOD1(SaveUserImage, void(const user_manager::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));
31 } // namespace chromeos
33 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_MOCK_USER_IMAGE_MANAGER_H_