| 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/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 } | 42 } |
| 43 | 43 |
| 44 bool FakeSessionManagerClient::IsScreenLocked() const { | 44 bool FakeSessionManagerClient::IsScreenLocked() const { |
| 45 return false; | 45 return false; |
| 46 } | 46 } |
| 47 | 47 |
| 48 void FakeSessionManagerClient::EmitLoginPromptVisible() { | 48 void FakeSessionManagerClient::EmitLoginPromptVisible() { |
| 49 } | 49 } |
| 50 | 50 |
| 51 void FakeSessionManagerClient::RestartJob( | 51 void FakeSessionManagerClient::RestartJob( |
| 52 const std::vector<std::string>& argv) {} | 52 int socket_fd, |
| 53 const std::vector<std::string>& argv, |
| 54 const VoidDBusMethodCallback& callback) {} |
| 53 | 55 |
| 54 void FakeSessionManagerClient::StartSession( | 56 void FakeSessionManagerClient::StartSession( |
| 55 const cryptohome::Identification& cryptohome_id) { | 57 const cryptohome::Identification& cryptohome_id) { |
| 56 DCHECK_EQ(0UL, user_sessions_.count(cryptohome_id)); | 58 DCHECK_EQ(0UL, user_sessions_.count(cryptohome_id)); |
| 57 std::string user_id_hash = | 59 std::string user_id_hash = |
| 58 CryptohomeClient::GetStubSanitizedUsername(cryptohome_id); | 60 CryptohomeClient::GetStubSanitizedUsername(cryptohome_id); |
| 59 user_sessions_[cryptohome_id] = user_id_hash; | 61 user_sessions_[cryptohome_id] = user_id_hash; |
| 60 } | 62 } |
| 61 | 63 |
| 62 void FakeSessionManagerClient::StopSession() { | 64 void FakeSessionManagerClient::StopSession() { |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 const std::string& account_id, | 222 const std::string& account_id, |
| 221 const std::string& policy_blob) { | 223 const std::string& policy_blob) { |
| 222 device_local_account_policy_[account_id] = policy_blob; | 224 device_local_account_policy_[account_id] = policy_blob; |
| 223 } | 225 } |
| 224 | 226 |
| 225 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) { | 227 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) { |
| 226 FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(success)); | 228 FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(success)); |
| 227 } | 229 } |
| 228 | 230 |
| 229 } // namespace chromeos | 231 } // namespace chromeos |
| OLD | NEW |