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.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_IMAGE_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_IMAGE_MANAGER_H_
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"
17 class MockUserImageManager
: public UserImageManager
{
19 explicit MockUserImageManager(const std::string
& user_id
);
20 virtual ~MockUserImageManager();
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));
31 } // namespace chromeos
33 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_IMAGE_MANAGER_H_