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

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

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/dbus_thread_manager.cc ('k') | chromeos/dbus/fake_ap_manager_client.cc » ('j') | 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 #ifndef CHROMEOS_DBUS_FAKE_AP_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_AP_MANAGER_CLIENT_H_
7
8 #include <map>
9 #include <string>
10 #include <vector>
11
12 #include "base/macros.h"
13 #include "chromeos/dbus/ap_manager_client.h"
14
15 namespace chromeos {
16
17 // A fake implementation of ApManagerClient. Invokes callbacks
18 // immediately.
19 class FakeApManagerClient : public ApManagerClient {
20 public:
21 FakeApManagerClient();
22 ~FakeApManagerClient() override;
23
24 // DBusClient overrides:
25 void Init(dbus::Bus* bus) override;
26
27 // ApManagerClient overrides:
28 void AddObserver(Observer* observer) override;
29 void RemoveObserver(Observer* observer) override;
30 void CreateService(const ObjectPathDBusMethodCallback& callback) override;
31 void RemoveService(const dbus::ObjectPath& object_path,
32 const VoidDBusMethodCallback& callback) override;
33 void StartService(const dbus::ObjectPath& object_path,
34 const VoidDBusMethodCallback& callback) override;
35 void StopService(const dbus::ObjectPath& object_path,
36 const VoidDBusMethodCallback& callback) override;
37 ConfigProperties* GetConfigProperties(
38 const dbus::ObjectPath& object_path) override;
39 const DeviceProperties* GetDeviceProperties(
40 const dbus::ObjectPath& object_path) override;
41 const ServiceProperties* GetServiceProperties(
42 const dbus::ObjectPath& object_path) override;
43
44 private:
45 DISALLOW_COPY_AND_ASSIGN(FakeApManagerClient);
46 };
47
48 } // namespace chromeos
49
50 #endif // CHROMEOS_DBUS_FAKE_AP_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.cc ('k') | chromeos/dbus/fake_ap_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698