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

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: Fix tests. 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
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | chrome/browser/chromeos/login/user.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 23 matching lines...) Expand all
34 MOCK_METHOD0(RestoreActiveSessions, void(void)); 34 MOCK_METHOD0(RestoreActiveSessions, void(void));
35 MOCK_METHOD2(RemoveUser, void(const std::string&, RemoveUserDelegate*)); 35 MOCK_METHOD2(RemoveUser, void(const std::string&, RemoveUserDelegate*));
36 MOCK_METHOD1(RemoveUserFromList, void(const std::string&)); 36 MOCK_METHOD1(RemoveUserFromList, void(const std::string&));
37 MOCK_CONST_METHOD1(IsKnownUser, bool(const std::string&)); 37 MOCK_CONST_METHOD1(IsKnownUser, bool(const std::string&));
38 MOCK_CONST_METHOD1(FindUser, const User*(const std::string&)); 38 MOCK_CONST_METHOD1(FindUser, const User*(const std::string&));
39 MOCK_CONST_METHOD1(FindLocallyManagedUser, const User*(const string16&)); 39 MOCK_CONST_METHOD1(FindLocallyManagedUser, const User*(const string16&));
40 MOCK_METHOD2(SaveUserOAuthStatus, void(const std::string&, 40 MOCK_METHOD2(SaveUserOAuthStatus, void(const std::string&,
41 User::OAuthTokenStatus)); 41 User::OAuthTokenStatus));
42 MOCK_METHOD2(SaveUserDisplayName, void(const std::string&, 42 MOCK_METHOD2(SaveUserDisplayName, void(const std::string&,
43 const string16&)); 43 const string16&));
44 MOCK_METHOD3(UpdateUserAccountData,
45 void(const std::string&, const string16&, const std::string&));
44 MOCK_CONST_METHOD1(GetUserDisplayName, string16(const std::string&)); 46 MOCK_CONST_METHOD1(GetUserDisplayName, string16(const std::string&));
45 MOCK_METHOD2(SaveUserDisplayEmail, void(const std::string&, 47 MOCK_METHOD2(SaveUserDisplayEmail, void(const std::string&,
46 const std::string&)); 48 const std::string&));
47 MOCK_CONST_METHOD1(GetUserDisplayEmail, std::string(const std::string&)); 49 MOCK_CONST_METHOD1(GetUserDisplayEmail, std::string(const std::string&));
48 MOCK_CONST_METHOD0(IsCurrentUserOwner, bool(void)); 50 MOCK_CONST_METHOD0(IsCurrentUserOwner, bool(void));
49 MOCK_CONST_METHOD0(IsCurrentUserNew, bool(void)); 51 MOCK_CONST_METHOD0(IsCurrentUserNew, bool(void));
50 MOCK_CONST_METHOD0(IsCurrentUserNonCryptohomeDataEphemeral, bool(void)); 52 MOCK_CONST_METHOD0(IsCurrentUserNonCryptohomeDataEphemeral, bool(void));
51 MOCK_CONST_METHOD0(CanCurrentUserLock, bool(void)); 53 MOCK_CONST_METHOD0(CanCurrentUserLock, bool(void));
52 MOCK_CONST_METHOD0(IsUserLoggedIn, bool(void)); 54 MOCK_CONST_METHOD0(IsUserLoggedIn, bool(void));
53 MOCK_CONST_METHOD0(IsLoggedInAsRegularUser, bool(void)); 55 MOCK_CONST_METHOD0(IsLoggedInAsRegularUser, bool(void));
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 126
125 User* user_; 127 User* user_;
126 scoped_ptr<MockUserImageManager> user_image_manager_; 128 scoped_ptr<MockUserImageManager> user_image_manager_;
127 scoped_ptr<UserFlow> user_flow_; 129 scoped_ptr<UserFlow> user_flow_;
128 UserList user_list_; 130 UserList user_list_;
129 }; 131 };
130 132
131 } // namespace chromeos 133 } // namespace chromeos
132 134
133 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ 135 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | chrome/browser/chromeos/login/user.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698