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

Unified Diff: device/bluetooth/bluetooth_low_energy_win_fake.h

Issue 1804093003: Add BluetoothGattCharacteristicTest::StartNotifySession_Reentrant unit test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/bluetooth_low_energy_win_fake.h
diff --git a/device/bluetooth/bluetooth_low_energy_win_fake.h b/device/bluetooth/bluetooth_low_energy_win_fake.h
index 9db118b8beb68bbfa0c574b92b03bec429ae5e33..6a4b5ba66f6a3849411f9f66c3830773960ad4df 100644
--- a/device/bluetooth/bluetooth_low_energy_win_fake.h
+++ b/device/bluetooth/bluetooth_low_energy_win_fake.h
@@ -62,6 +62,7 @@ struct GattCharacteristic {
GattDescriptorsMap included_descriptors;
std::vector<HRESULT> read_errors;
std::vector<HRESULT> write_errors;
+ std::vector<HRESULT> notify_errors;
std::vector<BLUETOOTH_GATT_EVENT_HANDLE> observers;
};
@@ -168,6 +169,9 @@ class BluetoothLowEnergyWrapperFake : public BluetoothLowEnergyWrapper {
const std::vector<uint8_t>& value);
void SimulateCharacteristicValueChangeNotification(
GattCharacteristic* characteristic);
+ void SimulateGattCharacteristicSetNotifyError(
+ GattCharacteristic* characteristic,
+ HRESULT error);
void SimulateGattCharacteristicReadError(GattCharacteristic* characteristic,
HRESULT error);
void SimulateGattCharacteristicWriteError(GattCharacteristic* characteristic,

Powered by Google App Engine
This is Rietveld 408576698