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

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

Issue 11499012: Add policy for limiting the session length (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload flaked. Created 8 years 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
« no previous file with comments | « chrome/app/policy/policy_templates.json ('k') | chrome/browser/chromeos/login/user_manager.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/file_path.h" 10 #include "base/file_path.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 MOCK_CONST_METHOD0(IsCurrentUserNew, bool(void)); 47 MOCK_CONST_METHOD0(IsCurrentUserNew, bool(void));
48 MOCK_CONST_METHOD0(IsCurrentUserNonCryptohomeDataEphemeral, bool(void)); 48 MOCK_CONST_METHOD0(IsCurrentUserNonCryptohomeDataEphemeral, bool(void));
49 MOCK_CONST_METHOD0(CanCurrentUserLock, bool(void)); 49 MOCK_CONST_METHOD0(CanCurrentUserLock, bool(void));
50 MOCK_CONST_METHOD0(IsUserLoggedIn, bool(void)); 50 MOCK_CONST_METHOD0(IsUserLoggedIn, bool(void));
51 MOCK_CONST_METHOD0(IsLoggedInAsRegularUser, bool(void)); 51 MOCK_CONST_METHOD0(IsLoggedInAsRegularUser, bool(void));
52 MOCK_CONST_METHOD0(IsLoggedInAsDemoUser, bool(void)); 52 MOCK_CONST_METHOD0(IsLoggedInAsDemoUser, bool(void));
53 MOCK_CONST_METHOD0(IsLoggedInAsPublicAccount, bool(void)); 53 MOCK_CONST_METHOD0(IsLoggedInAsPublicAccount, bool(void));
54 MOCK_CONST_METHOD0(IsLoggedInAsGuest, bool(void)); 54 MOCK_CONST_METHOD0(IsLoggedInAsGuest, bool(void));
55 MOCK_CONST_METHOD0(IsLoggedInAsStub, bool(void)); 55 MOCK_CONST_METHOD0(IsLoggedInAsStub, bool(void));
56 MOCK_CONST_METHOD0(IsSessionStarted, bool(void)); 56 MOCK_CONST_METHOD0(IsSessionStarted, bool(void));
57 MOCK_CONST_METHOD0(HasBrowserRestarted, bool(void));
57 MOCK_CONST_METHOD1(IsUserNonCryptohomeDataEphemeral, 58 MOCK_CONST_METHOD1(IsUserNonCryptohomeDataEphemeral,
58 bool(const std::string&)); 59 bool(const std::string&));
59 MOCK_METHOD1(AddObserver, void(UserManager::Observer*)); 60 MOCK_METHOD1(AddObserver, void(UserManager::Observer*));
60 MOCK_METHOD1(RemoveObserver, void(UserManager::Observer*)); 61 MOCK_METHOD1(RemoveObserver, void(UserManager::Observer*));
61 MOCK_METHOD0(NotifyLocalStateChanged, void(void)); 62 MOCK_METHOD0(NotifyLocalStateChanged, void(void));
62 63
63 // You can't mock this function easily because nobody can create User objects 64 // You can't mock this function easily because nobody can create User objects
64 // but the UserManagerImpl and us. 65 // but the UserManagerImpl and us.
65 virtual const User* GetLoggedInUser() const OVERRIDE; 66 virtual const User* GetLoggedInUser() const OVERRIDE;
66 67
(...skipping 20 matching lines...) Expand all
87 MockUserManager* user_manager(); 88 MockUserManager* user_manager();
88 89
89 private: 90 private:
90 UserManager* old_user_manager_; 91 UserManager* old_user_manager_;
91 scoped_ptr<MockUserManager> user_manager_; 92 scoped_ptr<MockUserManager> user_manager_;
92 }; 93 };
93 94
94 } // namespace chromeos 95 } // namespace chromeos
95 96
96 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_ 97 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/app/policy/policy_templates.json ('k') | chrome/browser/chromeos/login/user_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698