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_TRANSPORT_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_
8 #include "chromeos/dbus/bluetooth_media_transport_client.h"
10 #include "chromeos/chromeos_export.h"
11 #include "dbus/object_path.h"
15 class CHROMEOS_EXPORT FakeBluetoothMediaTransportClient
16 : public BluetoothMediaTransportClient
{
18 struct Properties
: public BluetoothMediaTransportClient::Properties
{
19 explicit Properties(const PropertyChangedCallback
& callback
);
20 ~Properties() override
;
22 void Get(dbus::PropertyBase
* property
,
23 dbus::PropertySet::GetCallback callback
) override
;
24 void GetAll() override
;
25 void Set(dbus::PropertyBase
* property
,
26 dbus::PropertySet::SetCallback callback
) override
;
29 FakeBluetoothMediaTransportClient();
30 ~FakeBluetoothMediaTransportClient() override
;
32 void Init(dbus::Bus
* bus
) override
;
33 Properties
* GetProperties(const dbus::ObjectPath
& object_path
) override
;
34 void Acquire(const dbus::ObjectPath
& object_path
,
35 const AcquireCallback
& callback
,
36 const ErrorCallback
& error_callback
) override
;
37 void TryAcquire(const dbus::ObjectPath
& object_path
,
38 const AcquireCallback
& callback
,
39 const ErrorCallback
& error_callback
) override
;
40 void Release(const dbus::ObjectPath
& object_path
,
41 const base::Closure
& callback
,
42 const ErrorCallback
& error_callback
) override
;
45 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaTransportClient
);
48 } // namespace chromeos
50 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_