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

Side by Side Diff: components/proximity_auth/ble/bluetooth_low_energy_characteristics_finder.h

Issue 1144333007: Adding unit tests for BLE connection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing compilation on OS X and Windows 2 Created 5 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_CHARACTERISTICS_FINDE R_H 5 #ifndef COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_CHARACTERISTICS_FINDE R_H
6 #define COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_CHARACTERISTICS_FINDE R_H 6 #define COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_CHARACTERISTICS_FINDE R_H
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 protected: 62 protected:
63 // device::BluetoothAdapter::Observer: 63 // device::BluetoothAdapter::Observer:
64 void GattDiscoveryCompleteForService( 64 void GattDiscoveryCompleteForService(
65 device::BluetoothAdapter* adapter, 65 device::BluetoothAdapter* adapter,
66 device::BluetoothGattService* service) override; 66 device::BluetoothGattService* service) override;
67 void GattCharacteristicAdded( 67 void GattCharacteristicAdded(
68 device::BluetoothAdapter* adapter, 68 device::BluetoothAdapter* adapter,
69 device::BluetoothGattCharacteristic* characteristic) override; 69 device::BluetoothGattCharacteristic* characteristic) override;
70 70
71 // For testing. Used to mock this class.
72 BluetoothLowEnergyCharacteristicsFinder();
73
71 private: 74 private:
72 // Handles the discovery of a new characteristic. 75 // Handles the discovery of a new characteristic.
73 void HandleCharacteristicUpdate( 76 void HandleCharacteristicUpdate(
74 device::BluetoothGattCharacteristic* characteristic); 77 device::BluetoothGattCharacteristic* characteristic);
75 78
76 // Scans the remote chracteristics of the service with |uuid| in |device| 79 // Scans the remote chracteristics of the service with |uuid| in |device|
77 // calling HandleCharacteristicUpdate() for each of them. 80 // calling HandleCharacteristicUpdate() for each of them.
78 void ScanRemoteCharacteristics(device::BluetoothDevice* device, 81 void ScanRemoteCharacteristics(device::BluetoothDevice* device,
79 const device::BluetoothUUID& uuid); 82 const device::BluetoothUUID& uuid);
80 83
(...skipping 24 matching lines...) Expand all
105 108
106 // Called when there is an error. 109 // Called when there is an error.
107 ErrorCallback error_callback_; 110 ErrorCallback error_callback_;
108 111
109 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyCharacteristicsFinder); 112 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyCharacteristicsFinder);
110 }; 113 };
111 114
112 } // namespace proximity_auth 115 } // namespace proximity_auth
113 116
114 #endif // COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_CHARACTERISTICS_FINDER_H 117 #endif // COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_CHARACTERISTICS_FINDER_H
OLDNEW
« no previous file with comments | « components/proximity_auth/ble/BUILD.gn ('k') | components/proximity_auth/ble/bluetooth_low_energy_characteristics_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698