| 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..0d595d333400b42a31fb82b30fb83ef76ff9fa6d
|
| --- /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());
|
| +}
|
| +
|
| +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());
|
| +}
|
| +
|
| +LeadershipDaemonManagerClient::GroupProperties*
|
| +FakeLeadershipDaemonManagerClient::GetGroupProperties(
|
| + const dbus::ObjectPath& object_path) {
|
| + return nullptr;
|
| +}
|
| +
|
| +} // namespace chromeos
|
|
|