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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 bool DeviceSettingsTestHelper::HasObserver(const Observer* observer) const { | 104 bool DeviceSettingsTestHelper::HasObserver(const Observer* observer) const { |
105 return false; | 105 return false; |
106 } | 106 } |
107 | 107 |
108 bool DeviceSettingsTestHelper::IsScreenLocked() const { return false; } | 108 bool DeviceSettingsTestHelper::IsScreenLocked() const { return false; } |
109 | 109 |
110 void DeviceSettingsTestHelper::EmitLoginPromptVisible() {} | 110 void DeviceSettingsTestHelper::EmitLoginPromptVisible() {} |
111 | 111 |
112 void DeviceSettingsTestHelper::RestartJob( | 112 void DeviceSettingsTestHelper::RestartJob( |
113 const std::vector<std::string>& argv) {} | 113 int socket_fd, |
| 114 const std::vector<std::string>& argv, |
| 115 const VoidDBusMethodCallback& callback) {} |
114 | 116 |
115 void DeviceSettingsTestHelper::StartSession( | 117 void DeviceSettingsTestHelper::StartSession( |
116 const cryptohome::Identification& cryptohome_id) {} | 118 const cryptohome::Identification& cryptohome_id) {} |
117 | 119 |
118 void DeviceSettingsTestHelper::StopSession() {} | 120 void DeviceSettingsTestHelper::StopSession() {} |
119 | 121 |
120 void DeviceSettingsTestHelper::NotifySupervisedUserCreationStarted() {} | 122 void DeviceSettingsTestHelper::NotifySupervisedUserCreationStarted() {} |
121 | 123 |
122 void DeviceSettingsTestHelper::NotifySupervisedUserCreationFinished() {} | 124 void DeviceSettingsTestHelper::NotifySupervisedUserCreationFinished() {} |
123 | 125 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 const_cast<user_manager::User*>(user)); | 283 const_cast<user_manager::User*>(user)); |
282 } | 284 } |
283 OwnerSettingsServiceChromeOS* service = | 285 OwnerSettingsServiceChromeOS* service = |
284 OwnerSettingsServiceChromeOSFactory::GetForBrowserContext(profile_.get()); | 286 OwnerSettingsServiceChromeOSFactory::GetForBrowserContext(profile_.get()); |
285 CHECK(service); | 287 CHECK(service); |
286 if (tpm_is_ready) | 288 if (tpm_is_ready) |
287 service->OnTPMTokenReady(true /* token is enabled */); | 289 service->OnTPMTokenReady(true /* token is enabled */); |
288 } | 290 } |
289 | 291 |
290 } // namespace chromeos | 292 } // namespace chromeos |
OLD | NEW |