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 <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 void GetServerBackedStateKeys(const StateKeysCallback& callback) override; | 123 void GetServerBackedStateKeys(const StateKeysCallback& callback) override; |
124 | 124 |
125 void CheckArcAvailability(const ArcCallback& callback) override; | 125 void CheckArcAvailability(const ArcCallback& callback) override; |
126 void StartArcInstance(const cryptohome::Identification& cryptohome_id, | 126 void StartArcInstance(const cryptohome::Identification& cryptohome_id, |
127 bool disable_boot_completed_broadcast, | 127 bool disable_boot_completed_broadcast, |
128 const StartArcInstanceCallback& callback) override; | 128 const StartArcInstanceCallback& callback) override; |
129 void StopArcInstance(const ArcCallback& callback) override; | 129 void StopArcInstance(const ArcCallback& callback) override; |
130 void SetArcCpuRestriction( | 130 void SetArcCpuRestriction( |
131 login_manager::ContainerCpuRestrictionState restriction_state, | 131 login_manager::ContainerCpuRestrictionState restriction_state, |
132 const ArcCallback& callback) override; | 132 const ArcCallback& callback) override; |
133 void EmitArcBooted() override; | 133 void EmitArcBooted(const cryptohome::Identification& cryptohome_id, |
| 134 const ArcCallback& callback) override; |
134 void GetArcStartTime(const GetArcStartTimeCallback& callback) override; | 135 void GetArcStartTime(const GetArcStartTimeCallback& callback) override; |
135 void RemoveArcData(const cryptohome::Identification& cryptohome_id, | 136 void RemoveArcData(const cryptohome::Identification& cryptohome_id, |
136 const ArcCallback& callback) override; | 137 const ArcCallback& callback) override; |
137 | 138 |
138 private: | 139 private: |
139 struct PolicyState { | 140 struct PolicyState { |
140 bool store_result_; | 141 bool store_result_; |
141 std::string policy_blob_; | 142 std::string policy_blob_; |
142 std::vector<StorePolicyCallback> store_callbacks_; | 143 std::vector<StorePolicyCallback> store_callbacks_; |
143 std::vector<RetrievePolicyCallback> retrieve_callbacks_; | 144 std::vector<RetrievePolicyCallback> retrieve_callbacks_; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 207 |
207 std::unique_ptr<DBusThreadManagerSetter> dbus_setter_; | 208 std::unique_ptr<DBusThreadManagerSetter> dbus_setter_; |
208 | 209 |
209 private: | 210 private: |
210 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsTestBase); | 211 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsTestBase); |
211 }; | 212 }; |
212 | 213 |
213 } // namespace chromeos | 214 } // namespace chromeos |
214 | 215 |
215 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ | 216 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ |
OLD | NEW |