Index: device/bluetooth/test/bluetooth_test_mac.mm |
diff --git a/device/bluetooth/test/bluetooth_test_mac.mm b/device/bluetooth/test/bluetooth_test_mac.mm |
index f0e3b882997d1385fb5915856ad35818a8e37705..3ec6e6619ce198d28e4b02c3e06d93099a607412 100644 |
--- a/device/bluetooth/test/bluetooth_test_mac.mm |
+++ b/device/bluetooth/test/bluetooth_test_mac.mm |
@@ -421,6 +421,22 @@ void BluetoothTestMac::SimulateGattNotifySessionStartError( |
[characteristic_mock simulateGattNotifySessionFailedWithError:error]; |
} |
+void BluetoothTestMac::SimulateGattNotifySessionStopped( |
+ BluetoothRemoteGattCharacteristic* characteristic) { |
+ MockCBCharacteristic* characteristic_mock = |
+ GetCBMockCharacteristic(characteristic); |
+ [characteristic_mock simulateGattNotifySessionStopped]; |
+} |
+ |
+void BluetoothTestMac::SimulateGattNotifySessionStopError( |
+ BluetoothRemoteGattCharacteristic* characteristic, |
+ BluetoothRemoteGattService::GattErrorCode error_code) { |
+ MockCBCharacteristic* characteristic_mock = |
+ GetCBMockCharacteristic(characteristic); |
+ NSError* error = BluetoothDeviceMac::GetNSErrorFromGattErrorCode(error_code); |
+ [characteristic_mock simulateGattNotifySessionStoppedWithError:error]; |
+} |
+ |
void BluetoothTestMac::SimulateGattCharacteristicChanged( |
BluetoothRemoteGattCharacteristic* characteristic, |
const std::vector<uint8_t>& value) { |