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_
12 #include "chromeos/dbus/ap_manager_client.h"
16 // A fake implementation of ApManagerClient. Invokes callbacks
18 class FakeApManagerClient
: public ApManagerClient
{
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
;
44 DISALLOW_COPY_AND_ASSIGN(FakeApManagerClient
);
47 } // namespace chromeos
49 #endif // CHROMEOS_DBUS_FAKE_AP_MANAGER_CLIENT_H_