Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: chrome/browser/chromeos/login/mock_user_manager.h

Issue 10448105: Revert "Added support for animated/nonanimated user image. There are no" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
13 #include "chrome/browser/chromeos/login/user_manager.h" 12 #include "chrome/browser/chromeos/login/user_manager.h"
14 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
15 14
16 namespace chromeos { 15 namespace chromeos {
17 16
18 class MockUserManager : public UserManager { 17 class MockUserManager : public UserManager {
19 public: 18 public:
20 MockUserManager(); 19 MockUserManager();
21 virtual ~MockUserManager(); 20 virtual ~MockUserManager();
22 21
(...skipping 12 matching lines...) Expand all
35 MOCK_METHOD2(SaveUserOAuthStatus, void(const std::string&, 34 MOCK_METHOD2(SaveUserOAuthStatus, void(const std::string&,
36 User::OAuthTokenStatus)); 35 User::OAuthTokenStatus));
37 MOCK_METHOD2(SaveUserDisplayEmail, void(const std::string&, 36 MOCK_METHOD2(SaveUserDisplayEmail, void(const std::string&,
38 const std::string&)); 37 const std::string&));
39 MOCK_METHOD2(GetLoggedInUserWallpaperProperties, void(User::WallpaperType*, 38 MOCK_METHOD2(GetLoggedInUserWallpaperProperties, void(User::WallpaperType*,
40 int*)); 39 int*));
41 MOCK_METHOD2(SaveLoggedInUserWallpaperProperties, void(User::WallpaperType, 40 MOCK_METHOD2(SaveLoggedInUserWallpaperProperties, void(User::WallpaperType,
42 int)); 41 int));
43 MOCK_CONST_METHOD1(GetUserDisplayEmail, std::string(const std::string&)); 42 MOCK_CONST_METHOD1(GetUserDisplayEmail, std::string(const std::string&));
44 MOCK_METHOD2(SaveUserDefaultImageIndex, void(const std::string&, int)); 43 MOCK_METHOD2(SaveUserDefaultImageIndex, void(const std::string&, int));
45 MOCK_METHOD2(SaveUserImage, void(const std::string&, const UserImage&)); 44 MOCK_METHOD2(SaveUserImage, void(const std::string&, const SkBitmap&));
46 MOCK_METHOD1(SetLoggedInUserCustomWallpaperLayout,void( 45 MOCK_METHOD1(SetLoggedInUserCustomWallpaperLayout,void(
47 ash::WallpaperLayout)); 46 ash::WallpaperLayout));
48 MOCK_METHOD2(SaveUserImageFromFile, void(const std::string&, 47 MOCK_METHOD2(SaveUserImageFromFile, void(const std::string&,
49 const FilePath&)); 48 const FilePath&));
50 MOCK_METHOD4(SaveUserWallpaperFromFile, void(const std::string&, 49 MOCK_METHOD4(SaveUserWallpaperFromFile, void(const std::string&,
51 const FilePath&, 50 const FilePath&,
52 ash::WallpaperLayout, 51 ash::WallpaperLayout,
53 WallpaperDelegate*)); 52 WallpaperDelegate*));
54 MOCK_METHOD1(SaveUserImageFromProfileImage, void(const std::string&)); 53 MOCK_METHOD1(SaveUserImageFromProfileImage, void(const std::string&));
55 MOCK_METHOD1(DownloadProfileImage, void(const std::string&)); 54 MOCK_METHOD1(DownloadProfileImage, void(const std::string&));
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 MockUserManager* user_manager(); 94 MockUserManager* user_manager();
96 95
97 private: 96 private:
98 UserManager* old_user_manager_; 97 UserManager* old_user_manager_;
99 scoped_ptr<MockUserManager> user_manager_; 98 scoped_ptr<MockUserManager> user_manager_;
100 }; 99 };
101 100
102 } // namespace chromeos 101 } // namespace chromeos
103 102
104 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ 103 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider_observers_chromeos.cc ('k') | chrome/browser/chromeos/login/user.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698