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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 SessionManagerClient::StubDelegate* delegate) {} | 97 SessionManagerClient::StubDelegate* delegate) {} |
98 | 98 |
99 void DeviceSettingsTestHelper::AddObserver(Observer* observer) {} | 99 void DeviceSettingsTestHelper::AddObserver(Observer* observer) {} |
100 | 100 |
101 void DeviceSettingsTestHelper::RemoveObserver(Observer* observer) {} | 101 void DeviceSettingsTestHelper::RemoveObserver(Observer* observer) {} |
102 | 102 |
103 bool DeviceSettingsTestHelper::HasObserver(const Observer* observer) const { | 103 bool DeviceSettingsTestHelper::HasObserver(const Observer* observer) const { |
104 return false; | 104 return false; |
105 } | 105 } |
106 | 106 |
| 107 bool DeviceSettingsTestHelper::IsScreenLocked() const { return false; } |
| 108 |
107 void DeviceSettingsTestHelper::EmitLoginPromptVisible() {} | 109 void DeviceSettingsTestHelper::EmitLoginPromptVisible() {} |
108 | 110 |
109 void DeviceSettingsTestHelper::RestartJob(int pid, | 111 void DeviceSettingsTestHelper::RestartJob(int pid, |
110 const std::string& command_line) {} | 112 const std::string& command_line) {} |
111 | 113 |
112 void DeviceSettingsTestHelper::StartSession(const std::string& user_email) {} | 114 void DeviceSettingsTestHelper::StartSession(const std::string& user_email) {} |
113 | 115 |
114 void DeviceSettingsTestHelper::StopSession() {} | 116 void DeviceSettingsTestHelper::StopSession() {} |
115 | 117 |
116 void DeviceSettingsTestHelper::NotifySupervisedUserCreationStarted() {} | 118 void DeviceSettingsTestHelper::NotifySupervisedUserCreationStarted() {} |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 const_cast<user_manager::User*>(user)); | 258 const_cast<user_manager::User*>(user)); |
257 } | 259 } |
258 OwnerSettingsServiceChromeOS* service = | 260 OwnerSettingsServiceChromeOS* service = |
259 OwnerSettingsServiceChromeOSFactory::GetForBrowserContext(profile_.get()); | 261 OwnerSettingsServiceChromeOSFactory::GetForBrowserContext(profile_.get()); |
260 CHECK(service); | 262 CHECK(service); |
261 if (tpm_is_ready) | 263 if (tpm_is_ready) |
262 service->OnTPMTokenReady(true /* token is enabled */); | 264 service->OnTPMTokenReady(true /* token is enabled */); |
263 } | 265 } |
264 | 266 |
265 } // namespace chromeos | 267 } // namespace chromeos |
OLD | NEW |