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_TRANSPORT_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 27 matching lines...) Expand all Loading... | |
38 static const char kTransportPath[]; | 38 static const char kTransportPath[]; |
39 | 39 |
40 // The default properties including device, codec, configuration, state, delay | 40 // The default properties including device, codec, configuration, state, delay |
41 // and volume, owned by a fake media transport object we emulate. | 41 // and volume, owned by a fake media transport object we emulate. |
42 static const char kTransportDevicePath[]; | 42 static const char kTransportDevicePath[]; |
43 static const uint8_t kTransportCodec; | 43 static const uint8_t kTransportCodec; |
44 static const std::vector<uint8_t> kTransportConfiguration; | 44 static const std::vector<uint8_t> kTransportConfiguration; |
45 static const uint16_t kTransportDelay; | 45 static const uint16_t kTransportDelay; |
46 static const uint16_t kTransportVolume; | 46 static const uint16_t kTransportVolume; |
47 | 47 |
48 // The default MTUs for read and write. | |
49 static const uint16_t kReadMtu; | |
armansito
2015/03/26 20:20:18
If these are defaults then name these "kDefaultRea
Miao
2015/03/26 20:34:13
Done.
| |
50 static const uint16_t kWriteMtu; | |
51 | |
48 FakeBluetoothMediaTransportClient(); | 52 FakeBluetoothMediaTransportClient(); |
49 ~FakeBluetoothMediaTransportClient() override; | 53 ~FakeBluetoothMediaTransportClient() override; |
50 | 54 |
51 // DBusClient override. | 55 // DBusClient override. |
52 void Init(dbus::Bus* bus) override; | 56 void Init(dbus::Bus* bus) override; |
53 | 57 |
54 // BluetoothMediaTransportClient override. | 58 // BluetoothMediaTransportClient override. |
55 void AddObserver(Observer* observer) override; | 59 void AddObserver(Observer* observer) override; |
56 void RemoveObserver(Observer* observer) override; | 60 void RemoveObserver(Observer* observer) override; |
57 Properties* GetProperties(const dbus::ObjectPath& object_path) override; | 61 Properties* GetProperties(const dbus::ObjectPath& object_path) override; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
135 std::map<dbus::ObjectPath, dbus::ObjectPath> transport_to_endpoint_map_; | 139 std::map<dbus::ObjectPath, dbus::ObjectPath> transport_to_endpoint_map_; |
136 | 140 |
137 ObserverList<BluetoothMediaTransportClient::Observer> observers_; | 141 ObserverList<BluetoothMediaTransportClient::Observer> observers_; |
138 | 142 |
139 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaTransportClient); | 143 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaTransportClient); |
140 }; | 144 }; |
141 | 145 |
142 } // namespace chromeos | 146 } // namespace chromeos |
143 | 147 |
144 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_ | 148 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_ |
OLD | NEW |