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

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: rebase Created 4 years, 8 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 28b588477caf1cb0a697b29886765ac130626af4..ad13f27b940170e0afe1c0b1a0c04660e9178719 100644
--- a/device/bluetooth/bluetooth_low_energy_win_fake.h
+++ b/device/bluetooth/bluetooth_low_energy_win_fake.h
@@ -65,6 +65,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;
};
@@ -177,6 +178,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