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

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

Issue 286933002: [cros login] Split login related classes into subfolders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in new tests Created 6 years, 7 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
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_SUPERVISED_USER_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_SUPERVISED_USER_MANAGER_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "chrome/browser/chromeos/login/supervised_user_manager.h"
11
12 namespace chromeos {
13
14 // Fake supervised user manager with a barebones implementation.
15 class FakeSupervisedUserManager : public SupervisedUserManager {
16 public:
17 FakeSupervisedUserManager();
18 virtual ~FakeSupervisedUserManager();
19
20 virtual bool HasSupervisedUsers(const std::string& manager_id) const OVERRIDE;
21 virtual const User* CreateUserRecord(
22 const std::string& manager_id,
23 const std::string& local_user_id,
24 const std::string& sync_user_id,
25 const base::string16& display_name) OVERRIDE;
26 virtual std::string GenerateUserId() OVERRIDE;
27 virtual const User* FindByDisplayName(const base::string16& display_name) cons t
28 OVERRIDE;
29 virtual const User* FindBySyncId(const std::string& sync_id) const OVERRIDE;
30 virtual std::string GetUserSyncId(const std::string& user_id) const OVERRIDE;
31 virtual base::string16 GetManagerDisplayName(const std::string& user_id) const
32 OVERRIDE;
33 virtual std::string GetManagerUserId(const std::string& user_id) const
34 OVERRIDE;
35 virtual std::string GetManagerDisplayEmail(const std::string& user_id) const
36 OVERRIDE;
37 virtual void StartCreationTransaction(const base::string16& display_name)
38 OVERRIDE {}
39 virtual void SetCreationTransactionUserId(const std::string& user_id)
40 OVERRIDE {}
41 virtual void CommitCreationTransaction() OVERRIDE {}
42 virtual SupervisedUserAuthentication* GetAuthentication() OVERRIDE;
43 virtual void GetPasswordInformation(
44 const std::string& user_id,
45 base::DictionaryValue* result) OVERRIDE {}
46 virtual void SetPasswordInformation(
47 const std::string& user_id,
48 const base::DictionaryValue* password_info) OVERRIDE {}
49 virtual void LoadSupervisedUserToken(
50 Profile * profile,
51 const LoadTokenCallback& callback) OVERRIDE;
52 virtual void ConfigureSyncWithToken(
53 Profile* profile,
54 const std::string& token) OVERRIDE {}
55
56 private:
57 DISALLOW_COPY_AND_ASSIGN(FakeSupervisedUserManager);
58 };
59
60 } // namespace chromeos
61
62 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_FAKE_SUPERVISED_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/fake_login_utils.cc ('k') | chrome/browser/chromeos/login/fake_supervised_user_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698