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

Unified Diff: chromeos/dbus/fake_leadership_daemon_manager_client.cc

Issue 887083002: Add DBus Bindings for leaderd (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix lint error Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698