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/policy/proto/chrome_device_policy.pb.h" | 10 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 ++device_local_account_state) { | 93 ++device_local_account_state) { |
94 if (device_local_account_state->second.HasPendingOperations()) | 94 if (device_local_account_state->second.HasPendingOperations()) |
95 return true; | 95 return true; |
96 } | 96 } |
97 | 97 |
98 return false; | 98 return false; |
99 } | 99 } |
100 | 100 |
101 void DeviceSettingsTestHelper::Init(dbus::Bus* bus) {} | 101 void DeviceSettingsTestHelper::Init(dbus::Bus* bus) {} |
102 | 102 |
| 103 void DeviceSettingsTestHelper::SetStubDelegate( |
| 104 SessionManagerClient::StubDelegate* delegate) {} |
| 105 |
103 void DeviceSettingsTestHelper::AddObserver(Observer* observer) {} | 106 void DeviceSettingsTestHelper::AddObserver(Observer* observer) {} |
104 | 107 |
105 void DeviceSettingsTestHelper::RemoveObserver(Observer* observer) {} | 108 void DeviceSettingsTestHelper::RemoveObserver(Observer* observer) {} |
106 | 109 |
107 bool DeviceSettingsTestHelper::HasObserver(Observer* observer) { | 110 bool DeviceSettingsTestHelper::HasObserver(Observer* observer) { |
108 return false; | 111 return false; |
109 } | 112 } |
110 | 113 |
111 void DeviceSettingsTestHelper::EmitLoginPromptVisible() {} | 114 void DeviceSettingsTestHelper::EmitLoginPromptVisible() {} |
112 | 115 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 void DeviceSettingsTestBase::FlushDeviceSettings() { | 235 void DeviceSettingsTestBase::FlushDeviceSettings() { |
233 device_settings_test_helper_.Flush(); | 236 device_settings_test_helper_.Flush(); |
234 } | 237 } |
235 | 238 |
236 void DeviceSettingsTestBase::ReloadDeviceSettings() { | 239 void DeviceSettingsTestBase::ReloadDeviceSettings() { |
237 device_settings_service_.OwnerKeySet(true); | 240 device_settings_service_.OwnerKeySet(true); |
238 FlushDeviceSettings(); | 241 FlushDeviceSettings(); |
239 } | 242 } |
240 | 243 |
241 } // namespace chromeos | 244 } // namespace chromeos |
OLD | NEW |