| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 virtual void StoreDevicePolicy(const std::string& policy_blob, | 105 virtual void StoreDevicePolicy(const std::string& policy_blob, |
| 106 const StorePolicyCallback& callback) OVERRIDE; | 106 const StorePolicyCallback& callback) OVERRIDE; |
| 107 virtual void StorePolicyForUser(const std::string& username, | 107 virtual void StorePolicyForUser(const std::string& username, |
| 108 const std::string& policy_blob, | 108 const std::string& policy_blob, |
| 109 const std::string& policy_key, | 109 const std::string& policy_key, |
| 110 const StorePolicyCallback& callback) OVERRIDE; | 110 const StorePolicyCallback& callback) OVERRIDE; |
| 111 virtual void StoreDeviceLocalAccountPolicy( | 111 virtual void StoreDeviceLocalAccountPolicy( |
| 112 const std::string& account_id, | 112 const std::string& account_id, |
| 113 const std::string& policy_blob, | 113 const std::string& policy_blob, |
| 114 const StorePolicyCallback& callback) OVERRIDE; | 114 const StorePolicyCallback& callback) OVERRIDE; |
| 115 virtual void SetFlagsForUser( |
| 116 const std::string& account_id, |
| 117 const std::vector<std::string>& flags) OVERRIDE; |
| 115 | 118 |
| 116 private: | 119 private: |
| 117 struct PolicyState { | 120 struct PolicyState { |
| 118 bool store_result_; | 121 bool store_result_; |
| 119 std::string policy_blob_; | 122 std::string policy_blob_; |
| 120 std::vector<StorePolicyCallback> store_callbacks_; | 123 std::vector<StorePolicyCallback> store_callbacks_; |
| 121 std::vector<RetrievePolicyCallback> retrieve_callbacks_; | 124 std::vector<RetrievePolicyCallback> retrieve_callbacks_; |
| 122 | 125 |
| 123 PolicyState(); | 126 PolicyState(); |
| 124 ~PolicyState(); | 127 ~PolicyState(); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 // with the global instance (DeviceSettingsService::Get()). | 179 // with the global instance (DeviceSettingsService::Get()). |
| 177 DeviceSettingsService device_settings_service_; | 180 DeviceSettingsService device_settings_service_; |
| 178 | 181 |
| 179 private: | 182 private: |
| 180 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsTestBase); | 183 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsTestBase); |
| 181 }; | 184 }; |
| 182 | 185 |
| 183 } // namespace chromeos | 186 } // namespace chromeos |
| 184 | 187 |
| 185 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ | 188 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ |
| OLD | NEW |