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

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

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/test/bluetooth_test_win.cc
diff --git a/device/bluetooth/test/bluetooth_test_win.cc b/device/bluetooth/test/bluetooth_test_win.cc
index 7596bb3be6012db2c4bfa89fe52196571c22d6a2..9295fcb67c30ec0da9f09c18fe38c75de91fe377 100644
--- a/device/bluetooth/test/bluetooth_test_win.cc
+++ b/device/bluetooth/test/bluetooth_test_win.cc
@@ -369,6 +369,16 @@ void BluetoothTestWin::SimulateGattNotifySessionStarted(
FinishPendingTasks();
}
+void BluetoothTestWin::
+ SimulateGattCharacteristicSetNotifyWillFailAsynchronouslyOnce(
+ BluetoothGattCharacteristic* characteristic) {
+ win::GattCharacteristic* simulated_characteristic =
+ GetSimulatedCharacteristic(characteristic);
+ CHECK(simulated_characteristic);
+ fake_bt_le_wrapper_->SimulateGattCharacteristicSetNotifyError(
+ simulated_characteristic, E_BLUETOOTH_ATT_UNKNOWN_ERROR);
+}
+
void BluetoothTestWin::SimulateGattCharacteristicChanged(
BluetoothGattCharacteristic* characteristic,
const std::vector<uint8_t>& value) {

Powered by Google App Engine
This is Rietveld 408576698