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

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

Issue 1749403002: Implement BluetoothRemoteGattCharacteristicWin::StartNotifySession and related unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adjust 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
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 459b992b3dd8f1c054290d60bd0ec67a1c97ab09..ba3316ad13655564d96278e128b855dd6e8667fa 100644
--- a/device/bluetooth/test/bluetooth_test_win.h
+++ b/device/bluetooth/test/bluetooth_test_win.h
@@ -32,6 +32,7 @@ class BluetoothTestWin : public BluetoothTestBase,
void InitWithoutDefaultAdapter() override;
void InitWithFakeAdapter() override;
bool DenyPermission() override;
+ void RunUntilIdle() override;
void StartLowEnergyDiscoverySession() override;
BluetoothDevice* DiscoverLowEnergyDevice(int device_ordinal) override;
void SimulateGattConnection(BluetoothDevice* device) override;
@@ -58,17 +59,29 @@ class BluetoothTestWin : public BluetoothTestBase,
void SimulateGattCharacteristicWriteError(
BluetoothGattCharacteristic* characteristic,
BluetoothGattService::GattErrorCode error_code) override;
+ virtual void SimulateGattCharacteristicSetNotifyWillFailSynchronouslyOnce(
+ BluetoothGattCharacteristic* characteristic) override;
void DeleteDevice(BluetoothDevice* device) override;
void SimulateGattDescriptor(BluetoothGattCharacteristic* characteristic,
const std::string& uuid) override;
+ void SimulateGattDescriptorWriteWillFailSynchronouslyOnce(
+ BluetoothGattDescriptor* descriptor) override;
+ void SimulateGattNotifySessionStarted(
+ BluetoothGattCharacteristic* characteristic) override;
+ void SimulateGattCharacteristicChanged(
+ BluetoothGattCharacteristic* characteristic,
+ const std::vector<uint8_t>& value) override;
// BluetoothTaskManagerWin::Observer overrides.
void OnAttemptReadGattCharacteristic() override;
void OnAttemptWriteGattCharacteristic() override;
// win::BluetoothLowEnergyWrapperFake::Observer overrides.
- void onWriteGattCharacteristicValue(
+ void OnWriteGattCharacteristicValue(
const PBTH_LE_GATT_CHARACTERISTIC_VALUE value) override;
+ void OnWriteGattDescriptorValue(
+ const PBTH_LE_GATT_DESCRIPTOR_VALUE value) override;
+ void OnStartCharacteristicNotification() override;
private:
scoped_refptr<base::TestSimpleTaskRunner> ui_task_runner_;

Powered by Google App Engine
This is Rietveld 408576698