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

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

Issue 23095006: If user profile doesn't contain language setting, default to his Google account settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment on "list of preferred languages". Created 7 years, 3 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
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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 24 matching lines...) Expand all
35 MOCK_METHOD0(RestoreActiveSessions, void(void)); 35 MOCK_METHOD0(RestoreActiveSessions, void(void));
36 MOCK_METHOD2(RemoveUser, void(const std::string&, RemoveUserDelegate*)); 36 MOCK_METHOD2(RemoveUser, void(const std::string&, RemoveUserDelegate*));
37 MOCK_METHOD1(RemoveUserFromList, void(const std::string&)); 37 MOCK_METHOD1(RemoveUserFromList, void(const std::string&));
38 MOCK_CONST_METHOD1(IsKnownUser, bool(const std::string&)); 38 MOCK_CONST_METHOD1(IsKnownUser, bool(const std::string&));
39 MOCK_CONST_METHOD1(FindUser, const User*(const std::string&)); 39 MOCK_CONST_METHOD1(FindUser, const User*(const std::string&));
40 MOCK_CONST_METHOD1(FindLocallyManagedUser, const User*(const string16&)); 40 MOCK_CONST_METHOD1(FindLocallyManagedUser, const User*(const string16&));
41 MOCK_METHOD2(SaveUserOAuthStatus, void(const std::string&, 41 MOCK_METHOD2(SaveUserOAuthStatus, void(const std::string&,
42 User::OAuthTokenStatus)); 42 User::OAuthTokenStatus));
43 MOCK_METHOD2(SaveUserDisplayName, void(const std::string&, 43 MOCK_METHOD2(SaveUserDisplayName, void(const std::string&,
44 const string16&)); 44 const string16&));
45 MOCK_METHOD3(UpdateUserAccountData,
46 void(const std::string&, const string16&, const std::string&));
45 MOCK_CONST_METHOD1(GetUserDisplayName, string16(const std::string&)); 47 MOCK_CONST_METHOD1(GetUserDisplayName, string16(const std::string&));
46 MOCK_METHOD2(SaveUserDisplayEmail, void(const std::string&, 48 MOCK_METHOD2(SaveUserDisplayEmail, void(const std::string&,
47 const std::string&)); 49 const std::string&));
48 MOCK_CONST_METHOD1(GetUserDisplayEmail, std::string(const std::string&)); 50 MOCK_CONST_METHOD1(GetUserDisplayEmail, std::string(const std::string&));
49 MOCK_CONST_METHOD0(IsCurrentUserOwner, bool(void)); 51 MOCK_CONST_METHOD0(IsCurrentUserOwner, bool(void));
50 MOCK_CONST_METHOD0(IsCurrentUserNew, bool(void)); 52 MOCK_CONST_METHOD0(IsCurrentUserNew, bool(void));
51 MOCK_CONST_METHOD0(IsCurrentUserNonCryptohomeDataEphemeral, bool(void)); 53 MOCK_CONST_METHOD0(IsCurrentUserNonCryptohomeDataEphemeral, bool(void));
52 MOCK_CONST_METHOD0(CanCurrentUserLock, bool(void)); 54 MOCK_CONST_METHOD0(CanCurrentUserLock, bool(void));
53 MOCK_CONST_METHOD0(IsUserLoggedIn, bool(void)); 55 MOCK_CONST_METHOD0(IsUserLoggedIn, bool(void));
54 MOCK_CONST_METHOD0(IsLoggedInAsRegularUser, bool(void)); 56 MOCK_CONST_METHOD0(IsLoggedInAsRegularUser, bool(void));
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 User* CreatePublicAccountUser(const std::string& email); 121 User* CreatePublicAccountUser(const std::string& email);
120 122
121 User* user_; 123 User* user_;
122 scoped_ptr<MockUserImageManager> user_image_manager_; 124 scoped_ptr<MockUserImageManager> user_image_manager_;
123 scoped_ptr<UserFlow> user_flow_; 125 scoped_ptr<UserFlow> user_flow_;
124 }; 126 };
125 127
126 } // namespace chromeos 128 } // namespace chromeos
127 129
128 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ 130 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698