Revert of mac: Weakly link against the CoreBluetooth framework. (patchset #2 id:80001...
[chromium-blink-merge.git] / chromeos / dbus / fake_ap_manager_client.cc
blob79ed780cd794e3bd2b01c496798cd103455e99b9
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.
5 #include "chromeos/dbus/fake_ap_manager_client.h"
7 #include "base/message_loop/message_loop.h"
9 namespace chromeos {
11 namespace {
12 void ObjectPathDBBusMethodCallbackThunk(
13 const ObjectPathDBusMethodCallback& callback) {
14 callback.Run(DBUS_METHOD_CALL_SUCCESS, dbus::ObjectPath());
17 void VoidDBBusMethodCallbackThunk(const VoidDBusMethodCallback& callback) {
18 callback.Run(DBUS_METHOD_CALL_SUCCESS);
20 } // namespace
22 FakeApManagerClient::FakeApManagerClient() {
25 FakeApManagerClient::~FakeApManagerClient() {
28 void FakeApManagerClient::Init(dbus::Bus* bus) {
31 void FakeApManagerClient::AddObserver(Observer* observer) {
34 void FakeApManagerClient::RemoveObserver(Observer* observer) {
37 void FakeApManagerClient::CreateService(
38 const ObjectPathDBusMethodCallback& callback) {
39 base::MessageLoop::current()->PostTask(
40 FROM_HERE, base::Bind(&ObjectPathDBBusMethodCallbackThunk, callback));
43 void FakeApManagerClient::RemoveService(
44 const dbus::ObjectPath& object_path,
45 const VoidDBusMethodCallback& callback) {
46 base::MessageLoop::current()->PostTask(
47 FROM_HERE, base::Bind(&VoidDBBusMethodCallbackThunk, callback));
50 void FakeApManagerClient::StartService(const dbus::ObjectPath& object_path,
51 const VoidDBusMethodCallback& callback) {
52 base::MessageLoop::current()->PostTask(
53 FROM_HERE, base::Bind(&VoidDBBusMethodCallbackThunk, callback));
56 void FakeApManagerClient::StopService(const dbus::ObjectPath& object_path,
57 const VoidDBusMethodCallback& callback) {
58 base::MessageLoop::current()->PostTask(
59 FROM_HERE, base::Bind(&VoidDBBusMethodCallbackThunk, callback));
62 ApManagerClient::ConfigProperties* FakeApManagerClient::GetConfigProperties(
63 const dbus::ObjectPath& object_path) {
64 return nullptr;
67 const ApManagerClient::DeviceProperties*
68 FakeApManagerClient::GetDeviceProperties(const dbus::ObjectPath& object_path) {
69 return nullptr;
72 const ApManagerClient::ServiceProperties*
73 FakeApManagerClient::GetServiceProperties(const dbus::ObjectPath& object_path) {
74 return nullptr;
77 } // namespace chromeos