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

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: 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/test/bluetooth_test_win.cc
diff --git a/device/bluetooth/test/bluetooth_test_win.cc b/device/bluetooth/test/bluetooth_test_win.cc
index 23ea410f261a37e1b2b1824c01b37ab0c9dce5a8..843e7a43435816cf5054f9b47ee737cd0043ff7b 100644
--- a/device/bluetooth/test/bluetooth_test_win.cc
+++ b/device/bluetooth/test/bluetooth_test_win.cc
@@ -381,6 +381,16 @@ void BluetoothTestWin::SimulateGattNotifySessionStarted(
FinishPendingTasks();
}
+void BluetoothTestWin::
+ SimulateGattCharacteristicSetNotifyWillFailAsynchronouslyOnce(
+ BluetoothRemoteGattCharacteristic* 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(
BluetoothRemoteGattCharacteristic* characteristic,
const std::vector<uint8_t>& value) {
« device/bluetooth/test/bluetooth_test.cc ('K') | « device/bluetooth/test/bluetooth_test_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698