Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chromeos / dbus / fake_ap_manager_client.h
blob24b8cc65c0bb38dd904b459d8d431811d20327c7
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 #ifndef CHROMEOS_DBUS_FAKE_AP_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_AP_MANAGER_CLIENT_H_
8 #include <map>
9 #include <string>
10 #include <vector>
12 #include "chromeos/dbus/ap_manager_client.h"
14 namespace chromeos {
16 // A fake implementation of ApManagerClient. Invokes callbacks
17 // immediately.
18 class FakeApManagerClient : public ApManagerClient {
19 public:
20 FakeApManagerClient();
21 ~FakeApManagerClient() override;
23 // DBusClient overrides:
24 void Init(dbus::Bus* bus) override;
26 // ApManagerClient overrides:
27 void AddObserver(Observer* observer) override;
28 void RemoveObserver(Observer* observer) override;
29 void CreateService(const ObjectPathDBusMethodCallback& callback) override;
30 void RemoveService(const dbus::ObjectPath& object_path,
31 const VoidDBusMethodCallback& callback) override;
32 void StartService(const dbus::ObjectPath& object_path,
33 const VoidDBusMethodCallback& callback) override;
34 void StopService(const dbus::ObjectPath& object_path,
35 const VoidDBusMethodCallback& callback) override;
36 ConfigProperties* GetConfigProperties(
37 const dbus::ObjectPath& object_path) override;
38 const DeviceProperties* GetDeviceProperties(
39 const dbus::ObjectPath& object_path) override;
40 const ServiceProperties* GetServiceProperties(
41 const dbus::ObjectPath& object_path) override;
43 private:
44 DISALLOW_COPY_AND_ASSIGN(FakeApManagerClient);
47 } // namespace chromeos
49 #endif // CHROMEOS_DBUS_FAKE_AP_MANAGER_CLIENT_H_