OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
12 #include "chromeos/chromeos_export.h" | |
13 #include "chromeos/dbus/bluetooth_media_client.h" | |
14 #include "dbus/object_path.h" | 12 #include "dbus/object_path.h" |
| 13 #include "device/bluetooth/bluetooth_export.h" |
| 14 #include "device/bluetooth/dbus/bluetooth_media_client.h" |
15 | 15 |
16 namespace chromeos { | 16 namespace bluez { |
17 | 17 |
18 class FakeBluetoothMediaEndpointServiceProvider; | 18 class FakeBluetoothMediaEndpointServiceProvider; |
19 | 19 |
20 class CHROMEOS_EXPORT FakeBluetoothMediaClient : public BluetoothMediaClient { | 20 class DEVICE_BLUETOOTH_EXPORT FakeBluetoothMediaClient |
| 21 : public BluetoothMediaClient { |
21 public: | 22 public: |
22 // The default codec is SBC(0x00). | 23 // The default codec is SBC(0x00). |
23 static const uint8_t kDefaultCodec; | 24 static const uint8_t kDefaultCodec; |
24 | 25 |
25 FakeBluetoothMediaClient(); | 26 FakeBluetoothMediaClient(); |
26 ~FakeBluetoothMediaClient() override; | 27 ~FakeBluetoothMediaClient() override; |
27 | 28 |
28 // DBusClient override. | 29 // DBusClient override. |
29 void Init(dbus::Bus* bus) override; | 30 void Init(dbus::Bus* bus) override; |
30 | 31 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // key and a pointer to the endpoint as value. | 65 // key and a pointer to the endpoint as value. |
65 std::map<dbus::ObjectPath, FakeBluetoothMediaEndpointServiceProvider*> | 66 std::map<dbus::ObjectPath, FakeBluetoothMediaEndpointServiceProvider*> |
66 endpoints_; | 67 endpoints_; |
67 | 68 |
68 // List of observers interested in event notifications from us. | 69 // List of observers interested in event notifications from us. |
69 base::ObserverList<BluetoothMediaClient::Observer> observers_; | 70 base::ObserverList<BluetoothMediaClient::Observer> observers_; |
70 | 71 |
71 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaClient); | 72 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaClient); |
72 }; | 73 }; |
73 | 74 |
74 } // namespace chromeos | 75 } // namespace bluez |
75 | 76 |
76 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_ | 77 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_ |
OLD | NEW |