| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 void DeviceSettingsTestHelper::SetFlagsForUser( | 176 void DeviceSettingsTestHelper::SetFlagsForUser( |
| 177 const cryptohome::Identification& cryptohome_id, | 177 const cryptohome::Identification& cryptohome_id, |
| 178 const std::vector<std::string>& flags) {} | 178 const std::vector<std::string>& flags) {} |
| 179 | 179 |
| 180 void DeviceSettingsTestHelper::GetServerBackedStateKeys( | 180 void DeviceSettingsTestHelper::GetServerBackedStateKeys( |
| 181 const StateKeysCallback& callback) {} | 181 const StateKeysCallback& callback) {} |
| 182 | 182 |
| 183 void DeviceSettingsTestHelper::CheckArcAvailability( | 183 void DeviceSettingsTestHelper::CheckArcAvailability( |
| 184 const ArcCallback& callback) {} | 184 const ArcCallback& callback) {} |
| 185 | 185 |
| 186 void DeviceSettingsTestHelper::StartArcInstance(const std::string& socket_path, | 186 void DeviceSettingsTestHelper::StartArcInstance( |
| 187 const ArcCallback& callback) {} | 187 const std::string& socket_path, |
| 188 const cryptohome::Identification& cryptohome_id, |
| 189 const ArcCallback& callback) {} |
| 188 | 190 |
| 189 void DeviceSettingsTestHelper::StopArcInstance(const ArcCallback& callback) {} | 191 void DeviceSettingsTestHelper::StopArcInstance(const ArcCallback& callback) {} |
| 190 | 192 |
| 191 void DeviceSettingsTestHelper::GetArcStartTime( | 193 void DeviceSettingsTestHelper::GetArcStartTime( |
| 192 const GetArcStartTimeCallback& callback) {} | 194 const GetArcStartTimeCallback& callback) {} |
| 193 | 195 |
| 194 DeviceSettingsTestHelper::PolicyState::PolicyState() | 196 DeviceSettingsTestHelper::PolicyState::PolicyState() |
| 195 : store_result_(true) {} | 197 : store_result_(true) {} |
| 196 | 198 |
| 197 DeviceSettingsTestHelper::PolicyState::PolicyState(const PolicyState& other) = | 199 DeviceSettingsTestHelper::PolicyState::PolicyState(const PolicyState& other) = |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 const_cast<user_manager::User*>(user)); | 275 const_cast<user_manager::User*>(user)); |
| 274 } | 276 } |
| 275 OwnerSettingsServiceChromeOS* service = | 277 OwnerSettingsServiceChromeOS* service = |
| 276 OwnerSettingsServiceChromeOSFactory::GetForBrowserContext(profile_.get()); | 278 OwnerSettingsServiceChromeOSFactory::GetForBrowserContext(profile_.get()); |
| 277 CHECK(service); | 279 CHECK(service); |
| 278 if (tpm_is_ready) | 280 if (tpm_is_ready) |
| 279 service->OnTPMTokenReady(true /* token is enabled */); | 281 service->OnTPMTokenReady(true /* token is enabled */); |
| 280 } | 282 } |
| 281 | 283 |
| 282 } // namespace chromeos | 284 } // namespace chromeos |
| OLD | NEW |