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" | 12 #include "chromeos/chromeos_export.h" |
13 #include "chromeos/dbus/bluetooth_media_client.h" | |
14 #include "dbus/object_path.h" | 13 #include "dbus/object_path.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 CHROMEOS_EXPORT FakeBluetoothMediaClient : public BluetoothMediaClient { |
21 public: | 21 public: |
22 // The default codec is SBC(0x00). | 22 // The default codec is SBC(0x00). |
23 static const uint8_t kDefaultCodec; | 23 static const uint8_t kDefaultCodec; |
24 | 24 |
25 FakeBluetoothMediaClient(); | 25 FakeBluetoothMediaClient(); |
26 ~FakeBluetoothMediaClient() override; | 26 ~FakeBluetoothMediaClient() override; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // key and a pointer to the endpoint as value. | 64 // key and a pointer to the endpoint as value. |
65 std::map<dbus::ObjectPath, FakeBluetoothMediaEndpointServiceProvider*> | 65 std::map<dbus::ObjectPath, FakeBluetoothMediaEndpointServiceProvider*> |
66 endpoints_; | 66 endpoints_; |
67 | 67 |
68 // List of observers interested in event notifications from us. | 68 // List of observers interested in event notifications from us. |
69 base::ObserverList<BluetoothMediaClient::Observer> observers_; | 69 base::ObserverList<BluetoothMediaClient::Observer> observers_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaClient); | 71 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaClient); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace chromeos | 74 } // namespace bluez |
75 | 75 |
76 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_ | 76 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_CLIENT_H_ |
OLD | NEW |