OLD | NEW |
| (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_ | |
OLD | NEW |