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

Unified Diff: device/bluetooth/test/bluetooth_test_win.h

Issue 1728163006: Implement BluetoothRemoteGattCharacteristicWin::GetDescriptors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/bluetooth/bluetooth_task_manager_win.cc ('k') | device/bluetooth/test/bluetooth_test_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/test/bluetooth_test_win.h
diff --git a/device/bluetooth/test/bluetooth_test_win.h b/device/bluetooth/test/bluetooth_test_win.h
index f159235c2e5d36b0c3ba05c6a126b07a8b4cd8fa..d87baccf31f7cb4ac760c7cc87a71125fc278b80 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).
« no previous file with comments | « device/bluetooth/bluetooth_task_manager_win.cc ('k') | device/bluetooth/test/bluetooth_test_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698