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

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

Issue 12256046: Added interstitial page for merge session. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 MOCK_CONST_METHOD0(IsLoggedInAsLocallyManagedUser, bool(void)); 59 MOCK_CONST_METHOD0(IsLoggedInAsLocallyManagedUser, bool(void));
60 MOCK_CONST_METHOD0(IsLoggedInAsStub, bool(void)); 60 MOCK_CONST_METHOD0(IsLoggedInAsStub, bool(void));
61 MOCK_CONST_METHOD0(IsSessionStarted, bool(void)); 61 MOCK_CONST_METHOD0(IsSessionStarted, bool(void));
62 MOCK_CONST_METHOD0(HasBrowserRestarted, bool(void)); 62 MOCK_CONST_METHOD0(HasBrowserRestarted, bool(void));
63 MOCK_CONST_METHOD1(IsUserNonCryptohomeDataEphemeral, 63 MOCK_CONST_METHOD1(IsUserNonCryptohomeDataEphemeral,
64 bool(const std::string&)); 64 bool(const std::string&));
65 MOCK_METHOD1(AddObserver, void(UserManager::Observer*)); 65 MOCK_METHOD1(AddObserver, void(UserManager::Observer*));
66 MOCK_METHOD1(RemoveObserver, void(UserManager::Observer*)); 66 MOCK_METHOD1(RemoveObserver, void(UserManager::Observer*));
67 MOCK_METHOD0(NotifyLocalStateChanged, void(void)); 67 MOCK_METHOD0(NotifyLocalStateChanged, void(void));
68 MOCK_METHOD0(CreateLocallyManagedUserRecord, void(void)); 68 MOCK_METHOD0(CreateLocallyManagedUserRecord, void(void));
69 MOCK_CONST_METHOD0(GetMergeSessionState, MergeSessionState(void));
70 MOCK_METHOD1(SetMergeSessionState, void(MergeSessionState));
69 71
70 // You can't mock this function easily because nobody can create User objects 72 // You can't mock this function easily because nobody can create User objects
71 // but the UserManagerImpl and us. 73 // but the UserManagerImpl and us.
72 virtual const User* GetLoggedInUser() const OVERRIDE; 74 virtual const User* GetLoggedInUser() const OVERRIDE;
73 75
74 // You can't mock this function easily because nobody can create User objects 76 // You can't mock this function easily because nobody can create User objects
75 // but the UserManagerImpl and us. 77 // but the UserManagerImpl and us.
76 virtual User* GetLoggedInUser() OVERRIDE; 78 virtual User* GetLoggedInUser() OVERRIDE;
77 79
78 virtual UserImageManager* GetUserImageManager() OVERRIDE; 80 virtual UserImageManager* GetUserImageManager() OVERRIDE;
(...skipping 15 matching lines...) Expand all
94 MockUserManager* user_manager(); 96 MockUserManager* user_manager();
95 97
96 private: 98 private:
97 UserManager* old_user_manager_; 99 UserManager* old_user_manager_;
98 scoped_ptr<MockUserManager> user_manager_; 100 scoped_ptr<MockUserManager> user_manager_;
99 }; 101 };
100 102
101 } // namespace chromeos 103 } // namespace chromeos
102 104
103 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ 105 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/merge_session_throttle.cc ('k') | chrome/browser/chromeos/login/oauth2_login_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698