OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chromeos/dbus/fake_leadership_daemon_manager_client.h" | |
6 | |
7 namespace chromeos { | |
8 | |
9 FakeLeadershipDaemonManagerClient::FakeLeadershipDaemonManagerClient() { | |
10 } | |
11 | |
12 FakeLeadershipDaemonManagerClient::~FakeLeadershipDaemonManagerClient() { | |
13 } | |
14 | |
15 void FakeLeadershipDaemonManagerClient::Init(dbus::Bus* bus) { | |
16 } | |
17 | |
18 void FakeLeadershipDaemonManagerClient::AddObserver(Observer* observer) { | |
19 } | |
20 | |
21 void FakeLeadershipDaemonManagerClient::RemoveObserver(Observer* observer) { | |
22 } | |
23 | |
24 void FakeLeadershipDaemonManagerClient::JoinGroup( | |
25 const std::string& group, | |
26 const base::DictionaryValue& options, | |
27 const StringDBusMethodCallback& callback) { | |
28 callback.Run(DBUS_METHOD_CALL_SUCCESS, std::string()); | |
stevenjb
2015/02/12 23:03:22
It would actually be preferable to post these call
dtapuska
2015/02/13 15:23:49
Done.
| |
29 } | |
30 | |
31 void FakeLeadershipDaemonManagerClient::LeaveGroup( | |
32 const std::string& object_path, | |
33 const VoidDBusMethodCallback& callback) { | |
34 callback.Run(DBUS_METHOD_CALL_SUCCESS); | |
35 } | |
36 | |
37 void FakeLeadershipDaemonManagerClient::SetScore( | |
38 const std::string& object_path, | |
39 int score, | |
40 const VoidDBusMethodCallback& callback) { | |
41 callback.Run(DBUS_METHOD_CALL_SUCCESS); | |
42 } | |
43 | |
44 void FakeLeadershipDaemonManagerClient::PokeLeader( | |
45 const std::string& object_path, | |
46 const VoidDBusMethodCallback& callback) { | |
47 callback.Run(DBUS_METHOD_CALL_SUCCESS); | |
48 } | |
49 | |
50 void FakeLeadershipDaemonManagerClient::Ping( | |
51 const StringDBusMethodCallback& callback) { | |
52 callback.Run(DBUS_METHOD_CALL_SUCCESS, std::string()); | |
53 } | |
54 | |
55 const LeadershipDaemonManagerClient::GroupProperties* | |
56 FakeLeadershipDaemonManagerClient::GetGroupProperties( | |
57 const dbus::ObjectPath& object_path) { | |
58 return nullptr; | |
59 } | |
60 | |
61 } // namespace chromeos | |
OLD | NEW |