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

Side by Side Diff: device/bluetooth/bluetooth_adapter_bluez.h

Issue 1884033002: Implement BluetoothTestBlueZ and enable some LE tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « device/BUILD.gn ('k') | device/bluetooth/bluetooth_adapter_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 18 matching lines...) Expand all
29 #include "device/bluetooth/dbus/bluetooth_input_client.h" 29 #include "device/bluetooth/dbus/bluetooth_input_client.h"
30 #include "device/bluetooth/dbus/bluetooth_profile_manager_client.h" 30 #include "device/bluetooth/dbus/bluetooth_profile_manager_client.h"
31 #include "device/bluetooth/dbus/bluetooth_profile_service_provider.h" 31 #include "device/bluetooth/dbus/bluetooth_profile_service_provider.h"
32 32
33 namespace base { 33 namespace base {
34 class SequencedTaskRunner; 34 class SequencedTaskRunner;
35 } // namespace base 35 } // namespace base
36 36
37 namespace device { 37 namespace device {
38 class BluetoothSocketThread; 38 class BluetoothSocketThread;
39 class BluetoothTestBlueZ;
39 } // namespace device 40 } // namespace device
40 41
41 namespace bluez { 42 namespace bluez {
42 43
43 class BluetoothBlueZTest; 44 class BluetoothBlueZTest;
44 class BluetoothAdapterProfileBlueZ; 45 class BluetoothAdapterProfileBlueZ;
45 class BluetoothDeviceBlueZ; 46 class BluetoothDeviceBlueZ;
46 class BluetoothPairingBlueZ; 47 class BluetoothPairingBlueZ;
47 48
48 // The BluetoothAdapterBlueZ class implements BluetoothAdapter for platforms 49 // The BluetoothAdapterBlueZ class implements BluetoothAdapter for platforms
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 void RemovePairingDelegateInternal( 154 void RemovePairingDelegateInternal(
154 device::BluetoothDevice::PairingDelegate* pairing_delegate) override; 155 device::BluetoothDevice::PairingDelegate* pairing_delegate) override;
155 156
156 private: 157 private:
157 friend class BluetoothBlueZTest; 158 friend class BluetoothBlueZTest;
158 friend class BluetoothBlueZTest_Shutdown_Test; 159 friend class BluetoothBlueZTest_Shutdown_Test;
159 friend class BluetoothBlueZTest_Shutdown_OnStartDiscovery_Test; 160 friend class BluetoothBlueZTest_Shutdown_OnStartDiscovery_Test;
160 friend class BluetoothBlueZTest_Shutdown_OnStartDiscoveryError_Test; 161 friend class BluetoothBlueZTest_Shutdown_OnStartDiscoveryError_Test;
161 friend class BluetoothBlueZTest_Shutdown_OnStopDiscovery_Test; 162 friend class BluetoothBlueZTest_Shutdown_OnStopDiscovery_Test;
162 friend class BluetoothBlueZTest_Shutdown_OnStopDiscoveryError_Test; 163 friend class BluetoothBlueZTest_Shutdown_OnStopDiscoveryError_Test;
164 friend class device::BluetoothTestBlueZ;
163 165
164 // typedef for callback parameters that are passed to AddDiscoverySession 166 // typedef for callback parameters that are passed to AddDiscoverySession
165 // and RemoveDiscoverySession. This is used to queue incoming requests while 167 // and RemoveDiscoverySession. This is used to queue incoming requests while
166 // a call to BlueZ is pending. 168 // a call to BlueZ is pending.
167 typedef std::tuple<device::BluetoothDiscoveryFilter*, 169 typedef std::tuple<device::BluetoothDiscoveryFilter*,
168 base::Closure, 170 base::Closure,
169 DiscoverySessionErrorCallback> DiscoveryParamTuple; 171 DiscoverySessionErrorCallback> DiscoveryParamTuple;
170 typedef std::queue<DiscoveryParamTuple> DiscoveryCallbackQueue; 172 typedef std::queue<DiscoveryParamTuple> DiscoveryCallbackQueue;
171 173
172 // Callback pair for the profile registration queue. 174 // Callback pair for the profile registration queue.
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 // Note: This should remain the last member so it'll be destroyed and 390 // Note: This should remain the last member so it'll be destroyed and
389 // invalidate its weak pointers before any other members are destroyed. 391 // invalidate its weak pointers before any other members are destroyed.
390 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_; 392 base::WeakPtrFactory<BluetoothAdapterBlueZ> weak_ptr_factory_;
391 393
392 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ); 394 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterBlueZ);
393 }; 395 };
394 396
395 } // namespace bluez 397 } // namespace bluez
396 398
397 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_ 399 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_BLUEZ_H_
OLDNEW
« no previous file with comments | « device/BUILD.gn ('k') | device/bluetooth/bluetooth_adapter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698