Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(641)

Side by Side Diff: device/bluetooth/dbus/fake_bluetooth_media_transport_client.h

Issue 1378573002: Fix static initializers from r316709. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lint Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_
Lei Zhang 2015/09/29 09:25:35 Our code base would be a lot cleaner if everyone r
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_ 6 #define DEVICE_BLUETOOTH_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>
11 11
12 #include "base/files/file.h" 12 #include "base/files/file.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/observer_list.h" 14 #include "base/observer_list.h"
15 #include "dbus/object_path.h" 15 #include "dbus/object_path.h"
16 #include "device/bluetooth/bluetooth_export.h" 16 #include "device/bluetooth/bluetooth_export.h"
(...skipping 17 matching lines...) Expand all
34 dbus::PropertySet::SetCallback callback) override; 34 dbus::PropertySet::SetCallback callback) override;
35 }; 35 };
36 36
37 // The default path of the transport object. 37 // The default path of the transport object.
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 uint8_t kTransportConfiguration[];
45 static const uint8_t kTransportConfigurationLength;
45 static const uint16_t kTransportDelay; 46 static const uint16_t kTransportDelay;
46 static const uint16_t kTransportVolume; 47 static const uint16_t kTransportVolume;
47 48
48 // The default MTUs for read and write. 49 // The default MTUs for read and write.
49 static const uint16_t kDefaultReadMtu; 50 static const uint16_t kDefaultReadMtu;
50 static const uint16_t kDefaultWriteMtu; 51 static const uint16_t kDefaultWriteMtu;
51 52
52 FakeBluetoothMediaTransportClient(); 53 FakeBluetoothMediaTransportClient();
53 ~FakeBluetoothMediaTransportClient() override; 54 ~FakeBluetoothMediaTransportClient() override;
54 55
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // corresponding endpoint path when GetProperties() is called. 138 // corresponding endpoint path when GetProperties() is called.
138 std::map<dbus::ObjectPath, dbus::ObjectPath> transport_to_endpoint_map_; 139 std::map<dbus::ObjectPath, dbus::ObjectPath> transport_to_endpoint_map_;
139 140
140 base::ObserverList<BluetoothMediaTransportClient::Observer> observers_; 141 base::ObserverList<BluetoothMediaTransportClient::Observer> observers_;
141 142
142 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaTransportClient); 143 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothMediaTransportClient);
143 }; 144 };
144 145
145 } // namespace bluez 146 } // namespace bluez
146 147
147 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_ 148 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_MEDIA_TRANSPORT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698