| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 virtual void RestartEntd() OVERRIDE; | 87 virtual void RestartEntd() OVERRIDE; |
| 88 virtual void StartSession(const std::string& user_email) OVERRIDE; | 88 virtual void StartSession(const std::string& user_email) OVERRIDE; |
| 89 virtual void StopSession() OVERRIDE; | 89 virtual void StopSession() OVERRIDE; |
| 90 virtual void StartDeviceWipe() OVERRIDE; | 90 virtual void StartDeviceWipe() OVERRIDE; |
| 91 virtual void RequestLockScreen() OVERRIDE; | 91 virtual void RequestLockScreen() OVERRIDE; |
| 92 virtual void NotifyLockScreenShown() OVERRIDE; | 92 virtual void NotifyLockScreenShown() OVERRIDE; |
| 93 virtual void RequestUnlockScreen() OVERRIDE; | 93 virtual void RequestUnlockScreen() OVERRIDE; |
| 94 virtual void NotifyLockScreenDismissed() OVERRIDE; | 94 virtual void NotifyLockScreenDismissed() OVERRIDE; |
| 95 virtual void RetrieveDevicePolicy( | 95 virtual void RetrieveDevicePolicy( |
| 96 const RetrievePolicyCallback& callback) OVERRIDE; | 96 const RetrievePolicyCallback& callback) OVERRIDE; |
| 97 virtual void RetrieveUserPolicy( | 97 virtual void RetrievePolicyForUser( |
| 98 const std::string& username, |
| 98 const RetrievePolicyCallback& callback) OVERRIDE; | 99 const RetrievePolicyCallback& callback) OVERRIDE; |
| 99 virtual void RetrieveDeviceLocalAccountPolicy( | 100 virtual void RetrieveDeviceLocalAccountPolicy( |
| 100 const std::string& account_id, | 101 const std::string& account_id, |
| 101 const RetrievePolicyCallback& callback) OVERRIDE; | 102 const RetrievePolicyCallback& callback) OVERRIDE; |
| 102 virtual void StoreDevicePolicy(const std::string& policy_blob, | 103 virtual void StoreDevicePolicy(const std::string& policy_blob, |
| 103 const StorePolicyCallback& callback) OVERRIDE; | 104 const StorePolicyCallback& callback) OVERRIDE; |
| 104 virtual void StoreUserPolicy(const std::string& policy_blob, | 105 virtual void StorePolicyForUser(const std::string& username, |
| 105 const StorePolicyCallback& callback) OVERRIDE; | 106 const std::string& policy_blob, |
| 107 const std::string& policy_key, |
| 108 const StorePolicyCallback& callback) OVERRIDE; |
| 106 virtual void StoreDeviceLocalAccountPolicy( | 109 virtual void StoreDeviceLocalAccountPolicy( |
| 107 const std::string& account_id, | 110 const std::string& account_id, |
| 108 const std::string& policy_blob, | 111 const std::string& policy_blob, |
| 109 const StorePolicyCallback& callback) OVERRIDE; | 112 const StorePolicyCallback& callback) OVERRIDE; |
| 110 | 113 |
| 111 private: | 114 private: |
| 112 struct PolicyState { | 115 struct PolicyState { |
| 113 bool store_result_; | 116 bool store_result_; |
| 114 std::string policy_blob_; | 117 std::string policy_blob_; |
| 115 std::vector<StorePolicyCallback> store_callbacks_; | 118 std::vector<StorePolicyCallback> store_callbacks_; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // with the global instance (DeviceSettingsService::Get()). | 174 // with the global instance (DeviceSettingsService::Get()). |
| 172 DeviceSettingsService device_settings_service_; | 175 DeviceSettingsService device_settings_service_; |
| 173 | 176 |
| 174 private: | 177 private: |
| 175 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsTestBase); | 178 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsTestBase); |
| 176 }; | 179 }; |
| 177 | 180 |
| 178 } // namespace chromeos | 181 } // namespace chromeos |
| 179 | 182 |
| 180 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ | 183 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ |
| OLD | NEW |