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

Unified Diff: chromeos/dbus/fake_ap_manager_client.cc

Issue 980973003: apmanager: Add dbus implementation to chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change struct into class Created 5 years, 9 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
« no previous file with comments | « chromeos/dbus/fake_ap_manager_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_ap_manager_client.cc
diff --git a/chromeos/dbus/fake_ap_manager_client.cc b/chromeos/dbus/fake_ap_manager_client.cc
new file mode 100644
index 0000000000000000000000000000000000000000..79ed780cd794e3bd2b01c496798cd103455e99b9
--- /dev/null
+++ b/chromeos/dbus/fake_ap_manager_client.cc
@@ -0,0 +1,77 @@
+// 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_ap_manager_client.h"
+
+#include "base/message_loop/message_loop.h"
+
+namespace chromeos {
+
+namespace {
+void ObjectPathDBBusMethodCallbackThunk(
+ const ObjectPathDBusMethodCallback& callback) {
+ callback.Run(DBUS_METHOD_CALL_SUCCESS, dbus::ObjectPath());
+}
+
+void VoidDBBusMethodCallbackThunk(const VoidDBusMethodCallback& callback) {
+ callback.Run(DBUS_METHOD_CALL_SUCCESS);
+}
+} // namespace
+
+FakeApManagerClient::FakeApManagerClient() {
+}
+
+FakeApManagerClient::~FakeApManagerClient() {
+}
+
+void FakeApManagerClient::Init(dbus::Bus* bus) {
+}
+
+void FakeApManagerClient::AddObserver(Observer* observer) {
+}
+
+void FakeApManagerClient::RemoveObserver(Observer* observer) {
+}
+
+void FakeApManagerClient::CreateService(
+ const ObjectPathDBusMethodCallback& callback) {
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE, base::Bind(&ObjectPathDBBusMethodCallbackThunk, callback));
+}
+
+void FakeApManagerClient::RemoveService(
+ const dbus::ObjectPath& object_path,
+ const VoidDBusMethodCallback& callback) {
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE, base::Bind(&VoidDBBusMethodCallbackThunk, callback));
+}
+
+void FakeApManagerClient::StartService(const dbus::ObjectPath& object_path,
+ const VoidDBusMethodCallback& callback) {
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE, base::Bind(&VoidDBBusMethodCallbackThunk, callback));
+}
+
+void FakeApManagerClient::StopService(const dbus::ObjectPath& object_path,
+ const VoidDBusMethodCallback& callback) {
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE, base::Bind(&VoidDBBusMethodCallbackThunk, callback));
+}
+
+ApManagerClient::ConfigProperties* FakeApManagerClient::GetConfigProperties(
+ const dbus::ObjectPath& object_path) {
+ return nullptr;
+}
+
+const ApManagerClient::DeviceProperties*
+FakeApManagerClient::GetDeviceProperties(const dbus::ObjectPath& object_path) {
+ return nullptr;
+}
+
+const ApManagerClient::ServiceProperties*
+FakeApManagerClient::GetServiceProperties(const dbus::ObjectPath& object_path) {
+ return nullptr;
+}
+
+} // namespace chromeos
« no previous file with comments | « chromeos/dbus/fake_ap_manager_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698