Chromium Code Reviews| Index: chromeos/dbus/fake_leadership_daemon_manager_client.cc |
| diff --git a/chromeos/dbus/fake_leadership_daemon_manager_client.cc b/chromeos/dbus/fake_leadership_daemon_manager_client.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..19840b6cd2f5de1a90b8e4ad655e1da23cdb6730 |
| --- /dev/null |
| +++ b/chromeos/dbus/fake_leadership_daemon_manager_client.cc |
| @@ -0,0 +1,61 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "chromeos/dbus/fake_leadership_daemon_manager_client.h" |
| + |
| +namespace chromeos { |
| + |
| +FakeLeadershipDaemonManagerClient::FakeLeadershipDaemonManagerClient() { |
| +} |
| + |
| +FakeLeadershipDaemonManagerClient::~FakeLeadershipDaemonManagerClient() { |
| +} |
| + |
| +void FakeLeadershipDaemonManagerClient::Init(dbus::Bus* bus) { |
| +} |
| + |
| +void FakeLeadershipDaemonManagerClient::AddObserver(Observer* observer) { |
| +} |
| + |
| +void FakeLeadershipDaemonManagerClient::RemoveObserver(Observer* observer) { |
| +} |
| + |
| +void FakeLeadershipDaemonManagerClient::JoinGroup( |
| + const std::string& group, |
| + const base::DictionaryValue& options, |
| + const StringDBusMethodCallback& callback) { |
| + 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.
|
| +} |
| + |
| +void FakeLeadershipDaemonManagerClient::LeaveGroup( |
| + const std::string& object_path, |
| + const VoidDBusMethodCallback& callback) { |
| + callback.Run(DBUS_METHOD_CALL_SUCCESS); |
| +} |
| + |
| +void FakeLeadershipDaemonManagerClient::SetScore( |
| + const std::string& object_path, |
| + int score, |
| + const VoidDBusMethodCallback& callback) { |
| + callback.Run(DBUS_METHOD_CALL_SUCCESS); |
| +} |
| + |
| +void FakeLeadershipDaemonManagerClient::PokeLeader( |
| + const std::string& object_path, |
| + const VoidDBusMethodCallback& callback) { |
| + callback.Run(DBUS_METHOD_CALL_SUCCESS); |
| +} |
| + |
| +void FakeLeadershipDaemonManagerClient::Ping( |
| + const StringDBusMethodCallback& callback) { |
| + callback.Run(DBUS_METHOD_CALL_SUCCESS, std::string()); |
| +} |
| + |
| +const LeadershipDaemonManagerClient::GroupProperties* |
| +FakeLeadershipDaemonManagerClient::GetGroupProperties( |
| + const dbus::ObjectPath& object_path) { |
| + return nullptr; |
| +} |
| + |
| +} // namespace chromeos |