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

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: address comments 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
« no previous file with comments | « device/bluetooth/test/bluetooth_test_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..02536bb9df9f8440f6d39c42becb72bea93f7f82 100644
--- a/device/bluetooth/test/bluetooth_test_win.cc
+++ b/device/bluetooth/test/bluetooth_test_win.cc
@@ -381,6 +381,17 @@ void BluetoothTestWin::SimulateGattNotifySessionStarted(
FinishPendingTasks();
}
+void BluetoothTestWin::SimulateGattNotifySessionStartError(
+ BluetoothRemoteGattCharacteristic* characteristic,
+ BluetoothRemoteGattService::GattErrorCode error_code) {
+ win::GattCharacteristic* simulated_characteristic =
+ GetSimulatedCharacteristic(characteristic);
+ CHECK(simulated_characteristic);
ortuno 2016/04/28 16:21:25 DCHECK is enough. CHECK is normally used if failin
gogerald1 2016/05/02 15:37:50 Done.
+ CHECK(error_code == BluetoothRemoteGattService::GATT_ERROR_UNKNOWN);
+ fake_bt_le_wrapper_->SimulateGattCharacteristicSetNotifyError(
+ simulated_characteristic, E_BLUETOOTH_ATT_UNKNOWN_ERROR);
+}
+
void BluetoothTestWin::SimulateGattCharacteristicChanged(
BluetoothRemoteGattCharacteristic* characteristic,
const std::vector<uint8_t>& value) {
« no previous file with comments | « 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