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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 virtual void SetUp() OVERRIDE; | 152 virtual void SetUp() OVERRIDE; |
153 virtual void TearDown() OVERRIDE; | 153 virtual void TearDown() OVERRIDE; |
154 | 154 |
155 // Flushes any pending device settings operations. | 155 // Flushes any pending device settings operations. |
156 void FlushDeviceSettings(); | 156 void FlushDeviceSettings(); |
157 | 157 |
158 // Triggers an owner key and device settings reload on | 158 // Triggers an owner key and device settings reload on |
159 // |device_settings_service_| and flushes the resulting load operation. | 159 // |device_settings_service_| and flushes the resulting load operation. |
160 void ReloadDeviceSettings(); | 160 void ReloadDeviceSettings(); |
161 | 161 |
162 MessageLoop loop_; | 162 base::MessageLoop loop_; |
163 content::TestBrowserThread ui_thread_; | 163 content::TestBrowserThread ui_thread_; |
164 content::TestBrowserThread file_thread_; | 164 content::TestBrowserThread file_thread_; |
165 | 165 |
166 policy::DevicePolicyBuilder device_policy_; | 166 policy::DevicePolicyBuilder device_policy_; |
167 | 167 |
168 DeviceSettingsTestHelper device_settings_test_helper_; | 168 DeviceSettingsTestHelper device_settings_test_helper_; |
169 scoped_refptr<MockOwnerKeyUtil> owner_key_util_; | 169 scoped_refptr<MockOwnerKeyUtil> owner_key_util_; |
170 // Local DeviceSettingsService instance for tests. Avoid using in combination | 170 // Local DeviceSettingsService instance for tests. Avoid using in combination |
171 // with the global instance (DeviceSettingsService::Get()). | 171 // with the global instance (DeviceSettingsService::Get()). |
172 DeviceSettingsService device_settings_service_; | 172 DeviceSettingsService device_settings_service_; |
173 | 173 |
174 private: | 174 private: |
175 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsTestBase); | 175 DISALLOW_COPY_AND_ASSIGN(DeviceSettingsTestBase); |
176 }; | 176 }; |
177 | 177 |
178 } // namespace chromeos | 178 } // namespace chromeos |
179 | 179 |
180 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ | 180 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_DEVICE_SETTINGS_TEST_HELPER_H_ |
OLD | NEW |