| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chromeos/dbus/fake_session_manager_client.h" | 5 #include "chromeos/dbus/fake_session_manager_client.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "chromeos/dbus/cryptohome_client.h" | 11 #include "chromeos/dbus/cryptohome_client.h" |
| 12 | 12 |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 | 14 |
| 15 FakeSessionManagerClient::FakeSessionManagerClient() | 15 FakeSessionManagerClient::FakeSessionManagerClient() |
| 16 : start_device_wipe_call_count_(0), | 16 : start_device_wipe_call_count_(0), |
| 17 notify_lock_screen_shown_call_count_(0), | 17 notify_lock_screen_shown_call_count_(0), |
| 18 notify_lock_screen_dismissed_call_count_(0) { | 18 notify_lock_screen_dismissed_call_count_(0) { |
| 19 } | 19 } |
| 20 | 20 |
| 21 FakeSessionManagerClient::~FakeSessionManagerClient() { | 21 FakeSessionManagerClient::~FakeSessionManagerClient() { |
| 22 } | 22 } |
| 23 | 23 |
| 24 void FakeSessionManagerClient::Init(dbus::Bus* bus) { | 24 void FakeSessionManagerClient::Init(dbus::Bus* bus) { |
| 25 } | 25 } |
| 26 | 26 |
| 27 void FakeSessionManagerClient::SetStubDelegate(StubDelegate* delegate) { |
| 28 } |
| 29 |
| 27 void FakeSessionManagerClient::AddObserver(Observer* observer) { | 30 void FakeSessionManagerClient::AddObserver(Observer* observer) { |
| 28 observers_.AddObserver(observer); | 31 observers_.AddObserver(observer); |
| 29 } | 32 } |
| 30 | 33 |
| 31 void FakeSessionManagerClient::RemoveObserver(Observer* observer) { | 34 void FakeSessionManagerClient::RemoveObserver(Observer* observer) { |
| 32 observers_.RemoveObserver(observer); | 35 observers_.RemoveObserver(observer); |
| 33 } | 36 } |
| 34 | 37 |
| 35 bool FakeSessionManagerClient::HasObserver(Observer* observer) { | 38 bool FakeSessionManagerClient::HasObserver(Observer* observer) { |
| 36 return observers_.HasObserver(observer); | 39 return observers_.HasObserver(observer); |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 const std::string& account_id, | 166 const std::string& account_id, |
| 164 const std::string& policy_blob) { | 167 const std::string& policy_blob) { |
| 165 device_local_account_policy_[account_id] = policy_blob; | 168 device_local_account_policy_[account_id] = policy_blob; |
| 166 } | 169 } |
| 167 | 170 |
| 168 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) { | 171 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) { |
| 169 FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(success)); | 172 FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(success)); |
| 170 } | 173 } |
| 171 | 174 |
| 172 } // namespace chromeos | 175 } // namespace chromeos |
| OLD | NEW |