summaryrefslogtreecommitdiffstats
path: root/device/bluetooth/bluetooth_low_energy_win.h
diff options
context:
space:
mode:
authorgogerald <gogerald@chromium.org>2016-02-26 07:36:09 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-26 15:37:17 +0000
commite069a45ceb26f426aae38a1f0e88d7d6e447b6cc (patch)
treec4e1f9ad8a438ca2abcd22fc47e5185c5ee6efa8 /device/bluetooth/bluetooth_low_energy_win.h
parent920e3f0cb63252e35a01ccea4abe1492f164eef1 (diff)
downloadchromium_src-e069a45ceb26f426aae38a1f0e88d7d6e447b6cc.zip
chromium_src-e069a45ceb26f426aae38a1f0e88d7d6e447b6cc.tar.gz
chromium_src-e069a45ceb26f426aae38a1f0e88d7d6e447b6cc.tar.bz2
Implement BluetoothRemoteGattServiceWin and related unit tests
This CL implements BluetoothRemoteGattServiceWin and related unit tests. BUG=579202 Review URL: https://codereview.chromium.org/1690133002 Cr-Commit-Position: refs/heads/master@{#377893}
Diffstat (limited to 'device/bluetooth/bluetooth_low_energy_win.h')
-rw-r--r--device/bluetooth/bluetooth_low_energy_win.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/device/bluetooth/bluetooth_low_energy_win.h b/device/bluetooth/bluetooth_low_energy_win.h
index 9d92435..a2bae9e 100644
--- a/device/bluetooth/bluetooth_low_energy_win.h
+++ b/device/bluetooth/bluetooth_low_energy_win.h
@@ -74,9 +74,6 @@ class DEVICE_BLUETOOTH_EXPORT DevicePropertyValue {
DISALLOW_COPY_AND_ASSIGN(DevicePropertyValue);
};
-// Returns true only on Windows platforms supporting Bluetooth Low Energy.
-bool DEVICE_BLUETOOTH_EXPORT IsBluetoothLowEnergySupported();
-
struct DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyServiceInfo {
BluetoothLowEnergyServiceInfo();
~BluetoothLowEnergyServiceInfo();
@@ -113,6 +110,9 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyWrapper {
static void DeleteInstance();
static void SetInstanceForTest(BluetoothLowEnergyWrapper* instance);
+ // Returns true only on Windows platforms supporting Bluetooth Low Energy.
+ virtual bool IsBluetoothLowEnergySupported();
+
// Enumerates the list of known (i.e. already paired) Bluetooth LE devices on
// this machine. In case of error, returns false and sets |error| with an
// error message describing the problem.
@@ -144,6 +144,15 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyWrapper {
ScopedVector<BluetoothLowEnergyServiceInfo>* services,
std::string* error);
+ // Reads characteristics of |service| with service device path |service_path|.
+ // The result will be stored in |*out_included_characteristics| and
+ // |*out_counts|.
+ virtual HRESULT ReadCharacteristicsOfAService(
+ base::FilePath& service_path,
+ const PBTH_LE_GATT_SERVICE service,
+ scoped_ptr<BTH_LE_GATT_CHARACTERISTIC>* out_included_characteristics,
+ USHORT* out_counts);
+
protected:
BluetoothLowEnergyWrapper();
virtual ~BluetoothLowEnergyWrapper();