Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: chromeos/dbus/fake_session_manager_client.cc

Issue 2310823003: chromeos: Remove dbus::FileDescriptor from SessionManagerClient (Closed)
Patch Set: Add a comment Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 const std::string& account_id, 228 const std::string& account_id,
227 const std::string& policy_blob) { 229 const std::string& policy_blob) {
228 device_local_account_policy_[account_id] = policy_blob; 230 device_local_account_policy_[account_id] = policy_blob;
229 } 231 }
230 232
231 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) { 233 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) {
232 FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(success)); 234 FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(success));
233 } 235 }
234 236
235 } // namespace chromeos 237 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_session_manager_client.h ('k') | chromeos/dbus/mock_session_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698