diff options
author | gogerald <gogerald@chromium.org> | 2016-03-01 12:45:36 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-01 20:47:06 +0000 |
commit | 74459acf6390eed6009b8bf5edad68d7e03bf008 (patch) | |
tree | 4187f9836cb9e7992835eae39101a45f465fdb1b /device/bluetooth/test/bluetooth_test_win.h | |
parent | 0a8abd1cd85e42b969740ca38e01df01ff244743 (diff) | |
download | chromium_src-74459acf6390eed6009b8bf5edad68d7e03bf008.zip chromium_src-74459acf6390eed6009b8bf5edad68d7e03bf008.tar.gz chromium_src-74459acf6390eed6009b8bf5edad68d7e03bf008.tar.bz2 |
Implement BluetoothRemoteGattCharacteristicWin::GetDescriptors
This CL implements GetDescriptors() in BluetoothRemoteGattCharacteristicWin.
It also optimized previous codes by renaming interfaces, data structures and so on.
BUG=579202
Review URL: https://codereview.chromium.org/1728163006
Cr-Commit-Position: refs/heads/master@{#378552}
Diffstat (limited to 'device/bluetooth/test/bluetooth_test_win.h')
-rw-r--r-- | device/bluetooth/test/bluetooth_test_win.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/device/bluetooth/test/bluetooth_test_win.h b/device/bluetooth/test/bluetooth_test_win.h index f159235..d87bacc 100644 --- a/device/bluetooth/test/bluetooth_test_win.h +++ b/device/bluetooth/test/bluetooth_test_win.h @@ -41,6 +41,8 @@ class BluetoothTestWin : public BluetoothTestBase { void SimulateGattCharacteristicRemoved( BluetoothGattService* service, BluetoothGattCharacteristic* characteristic) override; + void SimulateGattDescriptor(BluetoothGattCharacteristic* characteristic, + const std::string& uuid) override; private: scoped_refptr<base::TestSimpleTaskRunner> ui_task_runner_; @@ -51,9 +53,12 @@ class BluetoothTestWin : public BluetoothTestBase { win::BluetoothLowEnergyWrapperFake* fake_bt_le_wrapper_; void AdapterInitCallback(); - win::BLEGattService* GetSimulatedService(win::BLEDevice* device, - BluetoothGattService* service); + win::GattService* GetSimulatedService(win::BLEDevice* device, + BluetoothGattService* service); + win::GattCharacteristic* GetSimulatedCharacteristic( + BluetoothGattCharacteristic* characteristic); void ForceRefreshDevice(); + void FinishPendingTasks(); }; // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). |