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