| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 const StorePolicyCallback& callback) override; | 119 const StorePolicyCallback& callback) override; |
| 120 void SetFlagsForUser(const cryptohome::Identification& cryptohome_id, | 120 void SetFlagsForUser(const cryptohome::Identification& cryptohome_id, |
| 121 const std::vector<std::string>& flags) override; | 121 const std::vector<std::string>& flags) override; |
| 122 void GetServerBackedStateKeys(const StateKeysCallback& callback) override; | 122 void GetServerBackedStateKeys(const StateKeysCallback& callback) override; |
| 123 | 123 |
| 124 void CheckArcAvailability(const ArcCallback& callback) override; | 124 void CheckArcAvailability(const ArcCallback& callback) override; |
| 125 void StartArcInstance(const cryptohome::Identification& cryptohome_id, | 125 void StartArcInstance(const cryptohome::Identification& cryptohome_id, |
| 126 const ArcCallback& callback) override; | 126 const ArcCallback& callback) override; |
| 127 void StopArcInstance(const ArcCallback& callback) override; | 127 void StopArcInstance(const ArcCallback& callback) override; |
| 128 void PrioritizeArcInstance(const ArcCallback& callback) override; | 128 void PrioritizeArcInstance(const ArcCallback& callback) override; |
| 129 void EmitArcBooted() override; |
| 129 void GetArcStartTime(const GetArcStartTimeCallback& callback) override; | 130 void GetArcStartTime(const GetArcStartTimeCallback& callback) override; |
| 130 void RemoveArcData(const cryptohome::Identification& cryptohome_id, | 131 void RemoveArcData(const cryptohome::Identification& cryptohome_id, |
| 131 const ArcCallback& callback) override; | 132 const ArcCallback& callback) override; |
| 132 | 133 |
| 133 private: | 134 private: |
| 134 struct PolicyState { | 135 struct PolicyState { |
| 135 bool store_result_; | 136 bool store_result_; |
| 136 std::string policy_blob_; | 137 std::string policy_blob_; |
| 137 std::vector<StorePolicyCallback> store_callbacks_; | 138 std::vector<StorePolicyCallback> store_callbacks_; |
| 138 std::vector<RetrievePolicyCallback> retrieve_callbacks_; | 139 std::vector<RetrievePolicyCallback> retrieve_callbacks_; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 202 |
| 202 std::unique_ptr<DBusThreadManagerSetter> dbus_setter_; | 203 std::unique_ptr<DBusThreadManagerSetter> dbus_setter_; |
| 203 | 204 |
| 204 private: | 205 private: |
| 205 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsTestBase); | 206 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsTestBase); |
| 206 }; | 207 }; |
| 207 | 208 |
| 208 } // namespace chromeos | 209 } // namespace chromeos |
| 209 | 210 |
| 210 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ | 211 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ |
| OLD | NEW |