OLD | NEW |
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_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 // SessionManagerClient: | 83 // SessionManagerClient: |
84 void Init(dbus::Bus* bus) override; | 84 void Init(dbus::Bus* bus) override; |
85 void SetStubDelegate(SessionManagerClient::StubDelegate* delegate) override; | 85 void SetStubDelegate(SessionManagerClient::StubDelegate* delegate) override; |
86 void AddObserver(Observer* observer) override; | 86 void AddObserver(Observer* observer) override; |
87 void RemoveObserver(Observer* observer) override; | 87 void RemoveObserver(Observer* observer) override; |
88 bool HasObserver(const Observer* observer) const override; | 88 bool HasObserver(const Observer* observer) const override; |
89 bool IsScreenLocked() const override; | 89 bool IsScreenLocked() const override; |
90 void EmitLoginPromptVisible() override; | 90 void EmitLoginPromptVisible() override; |
91 void RestartJob(const std::vector<std::string>& argv) override; | 91 void RestartJob(const std::vector<std::string>& argv) override; |
92 void StartSession(const std::string& user_email) override; | 92 void StartSession(const cryptohome::Identification& cryptohome_id) override; |
93 void StopSession() override; | 93 void StopSession() override; |
94 void NotifySupervisedUserCreationStarted() override; | 94 void NotifySupervisedUserCreationStarted() override; |
95 void NotifySupervisedUserCreationFinished() override; | 95 void NotifySupervisedUserCreationFinished() override; |
96 void StartDeviceWipe() override; | 96 void StartDeviceWipe() override; |
97 void RequestLockScreen() override; | 97 void RequestLockScreen() override; |
98 void NotifyLockScreenShown() override; | 98 void NotifyLockScreenShown() override; |
99 void NotifyLockScreenDismissed() override; | 99 void NotifyLockScreenDismissed() override; |
100 void RetrieveActiveSessions(const ActiveSessionsCallback& callback) override; | 100 void RetrieveActiveSessions(const ActiveSessionsCallback& callback) override; |
101 void RetrieveDevicePolicy(const RetrievePolicyCallback& callback) override; | 101 void RetrieveDevicePolicy(const RetrievePolicyCallback& callback) override; |
102 void RetrievePolicyForUser(const std::string& username, | 102 void RetrievePolicyForUser(const cryptohome::Identification& cryptohome_id, |
103 const RetrievePolicyCallback& callback) override; | 103 const RetrievePolicyCallback& callback) override; |
104 std::string BlockingRetrievePolicyForUser( | 104 std::string BlockingRetrievePolicyForUser( |
105 const std::string& username) override; | 105 const cryptohome::Identification& cryptohome_id) override; |
106 void RetrieveDeviceLocalAccountPolicy( | 106 void RetrieveDeviceLocalAccountPolicy( |
107 const std::string& account_id, | 107 const std::string& account_id, |
108 const RetrievePolicyCallback& callback) override; | 108 const RetrievePolicyCallback& callback) override; |
109 void StoreDevicePolicy(const std::string& policy_blob, | 109 void StoreDevicePolicy(const std::string& policy_blob, |
110 const StorePolicyCallback& callback) override; | 110 const StorePolicyCallback& callback) override; |
111 void StorePolicyForUser(const std::string& username, | 111 void StorePolicyForUser(const cryptohome::Identification& cryptohome_id, |
112 const std::string& policy_blob, | 112 const std::string& policy_blob, |
113 const StorePolicyCallback& callback) override; | 113 const StorePolicyCallback& callback) override; |
114 void StoreDeviceLocalAccountPolicy( | 114 void StoreDeviceLocalAccountPolicy( |
115 const std::string& account_id, | 115 const std::string& account_id, |
116 const std::string& policy_blob, | 116 const std::string& policy_blob, |
117 const StorePolicyCallback& callback) override; | 117 const StorePolicyCallback& callback) override; |
118 void SetFlagsForUser(const std::string& account_id, | 118 void SetFlagsForUser(const cryptohome::Identification& cryptohome_id, |
119 const std::vector<std::string>& flags) override; | 119 const std::vector<std::string>& flags) override; |
120 void GetServerBackedStateKeys(const StateKeysCallback& callback) override; | 120 void GetServerBackedStateKeys(const StateKeysCallback& callback) override; |
121 | 121 |
122 void CheckArcAvailability(const ArcCallback& callback) override; | 122 void CheckArcAvailability(const ArcCallback& callback) override; |
123 void StartArcInstance(const std::string& socket_path, | 123 void StartArcInstance(const std::string& socket_path, |
124 const ArcCallback& callback) override; | 124 const ArcCallback& callback) override; |
125 void StopArcInstance(const ArcCallback& callback) override; | 125 void StopArcInstance(const ArcCallback& callback) override; |
126 | 126 |
127 private: | 127 private: |
128 struct PolicyState { | 128 struct PolicyState { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 194 |
195 scoped_ptr<DBusThreadManagerSetter> dbus_setter_; | 195 scoped_ptr<DBusThreadManagerSetter> dbus_setter_; |
196 | 196 |
197 private: | 197 private: |
198 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsTestBase); | 198 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsTestBase); |
199 }; | 199 }; |
200 | 200 |
201 } // namespace chromeos | 201 } // namespace chromeos |
202 | 202 |
203 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ | 203 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ |
OLD | NEW |