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

Side by Side Diff: chromeos/dbus/fake_ap_manager_client.cc

Issue 2286423002: chromeos: Remove unused AP manager D-Bus client library (Closed)
Patch Set: rebase Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « chromeos/dbus/fake_ap_manager_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #include "chromeos/dbus/fake_ap_manager_client.h"
6
7 #include "base/location.h"
8 #include "base/threading/thread_task_runner_handle.h"
9
10 namespace chromeos {
11
12 namespace {
13 void ObjectPathDBBusMethodCallbackThunk(
14 const ObjectPathDBusMethodCallback& callback) {
15 callback.Run(DBUS_METHOD_CALL_SUCCESS, dbus::ObjectPath());
16 }
17
18 void VoidDBBusMethodCallbackThunk(const VoidDBusMethodCallback& callback) {
19 callback.Run(DBUS_METHOD_CALL_SUCCESS);
20 }
21 } // namespace
22
23 FakeApManagerClient::FakeApManagerClient() {
24 }
25
26 FakeApManagerClient::~FakeApManagerClient() {
27 }
28
29 void FakeApManagerClient::Init(dbus::Bus* bus) {
30 }
31
32 void FakeApManagerClient::AddObserver(Observer* observer) {
33 }
34
35 void FakeApManagerClient::RemoveObserver(Observer* observer) {
36 }
37
38 void FakeApManagerClient::CreateService(
39 const ObjectPathDBusMethodCallback& callback) {
40 base::ThreadTaskRunnerHandle::Get()->PostTask(
41 FROM_HERE, base::Bind(&ObjectPathDBBusMethodCallbackThunk, callback));
42 }
43
44 void FakeApManagerClient::RemoveService(
45 const dbus::ObjectPath& object_path,
46 const VoidDBusMethodCallback& callback) {
47 base::ThreadTaskRunnerHandle::Get()->PostTask(
48 FROM_HERE, base::Bind(&VoidDBBusMethodCallbackThunk, callback));
49 }
50
51 void FakeApManagerClient::StartService(const dbus::ObjectPath& object_path,
52 const VoidDBusMethodCallback& callback) {
53 base::ThreadTaskRunnerHandle::Get()->PostTask(
54 FROM_HERE, base::Bind(&VoidDBBusMethodCallbackThunk, callback));
55 }
56
57 void FakeApManagerClient::StopService(const dbus::ObjectPath& object_path,
58 const VoidDBusMethodCallback& callback) {
59 base::ThreadTaskRunnerHandle::Get()->PostTask(
60 FROM_HERE, base::Bind(&VoidDBBusMethodCallbackThunk, callback));
61 }
62
63 ApManagerClient::ConfigProperties* FakeApManagerClient::GetConfigProperties(
64 const dbus::ObjectPath& object_path) {
65 return nullptr;
66 }
67
68 const ApManagerClient::DeviceProperties*
69 FakeApManagerClient::GetDeviceProperties(const dbus::ObjectPath& object_path) {
70 return nullptr;
71 }
72
73 const ApManagerClient::ServiceProperties*
74 FakeApManagerClient::GetServiceProperties(const dbus::ObjectPath& object_path) {
75 return nullptr;
76 }
77
78 } // namespace chromeos
OLDNEW
« 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