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 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" | 5 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" |
6 | 6 |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "base/threading/sequenced_worker_pool.h" | 9 #include "base/threading/sequenced_worker_pool.h" |
10 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" | 10 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 185 |
186 void DeviceSettingsTestHelper::StartArcInstance( | 186 void DeviceSettingsTestHelper::StartArcInstance( |
187 const cryptohome::Identification& cryptohome_id, | 187 const cryptohome::Identification& cryptohome_id, |
188 const ArcCallback& callback) {} | 188 const ArcCallback& callback) {} |
189 | 189 |
190 void DeviceSettingsTestHelper::StopArcInstance(const ArcCallback& callback) {} | 190 void DeviceSettingsTestHelper::StopArcInstance(const ArcCallback& callback) {} |
191 | 191 |
192 void DeviceSettingsTestHelper::GetArcStartTime( | 192 void DeviceSettingsTestHelper::GetArcStartTime( |
193 const GetArcStartTimeCallback& callback) {} | 193 const GetArcStartTimeCallback& callback) {} |
194 | 194 |
| 195 void DeviceSettingsTestHelper::RemoveArcData( |
| 196 const cryptohome::Identification& cryptohome_id) {} |
| 197 |
195 DeviceSettingsTestHelper::PolicyState::PolicyState() | 198 DeviceSettingsTestHelper::PolicyState::PolicyState() |
196 : store_result_(true) {} | 199 : store_result_(true) {} |
197 | 200 |
198 DeviceSettingsTestHelper::PolicyState::PolicyState(const PolicyState& other) = | 201 DeviceSettingsTestHelper::PolicyState::PolicyState(const PolicyState& other) = |
199 default; | 202 default; |
200 | 203 |
201 DeviceSettingsTestHelper::PolicyState::~PolicyState() {} | 204 DeviceSettingsTestHelper::PolicyState::~PolicyState() {} |
202 | 205 |
203 ScopedDeviceSettingsTestHelper::ScopedDeviceSettingsTestHelper() { | 206 ScopedDeviceSettingsTestHelper::ScopedDeviceSettingsTestHelper() { |
204 DeviceSettingsService::Initialize(); | 207 DeviceSettingsService::Initialize(); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 const_cast<user_manager::User*>(user)); | 277 const_cast<user_manager::User*>(user)); |
275 } | 278 } |
276 OwnerSettingsServiceChromeOS* service = | 279 OwnerSettingsServiceChromeOS* service = |
277 OwnerSettingsServiceChromeOSFactory::GetForBrowserContext(profile_.get()); | 280 OwnerSettingsServiceChromeOSFactory::GetForBrowserContext(profile_.get()); |
278 CHECK(service); | 281 CHECK(service); |
279 if (tpm_is_ready) | 282 if (tpm_is_ready) |
280 service->OnTPMTokenReady(true /* token is enabled */); | 283 service->OnTPMTokenReady(true /* token is enabled */); |
281 } | 284 } |
282 | 285 |
283 } // namespace chromeos | 286 } // namespace chromeos |
OLD | NEW |