1 // Copyright 2014 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_BLUETOOTH_MEDIA_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_
8 #include "base/callback.h"
9 #include "base/observer_list.h"
10 #include "chromeos/chromeos_export.h"
11 #include "chromeos/dbus/bluetooth_media_client.h"
12 #include "dbus/object_path.h"
16 class CHROMEOS_EXPORT FakeBluetoothMediaClient
: public BluetoothMediaClient
{
18 FakeBluetoothMediaClient();
19 ~FakeBluetoothMediaClient() override
;
21 // DBusClient override.
22 void Init(dbus::Bus
* bus
) override
;
24 // BluetoothMediaClient overrides.
25 void AddObserver(BluetoothMediaClient::Observer
* observer
) override
;
26 void RemoveObserver(BluetoothMediaClient::Observer
* observer
) override
;
27 void RegisterEndpoint(const dbus::ObjectPath
& object_path
,
28 const dbus::ObjectPath
& endpoint_path
,
29 const EndpointProperties
& properties
,
30 const base::Closure
& callback
,
31 const ErrorCallback
& error_callback
) override
;
32 void UnregisterEndpoint(const dbus::ObjectPath
& object_path
,
33 const dbus::ObjectPath
& endpoint_path
,
34 const base::Closure
& callback
,
35 const ErrorCallback
& error_callback
) override
;
38 // List of observers interested in event notifications from us.
39 ObserverList
<BluetoothMediaClient::Observer
> observers_
;
41 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaClient
);
44 } // namespace chromeos
46 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_