| 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 16a6ab83c85360fb814450ee81399de87a1c90b9..5ee9944d308aa8bc8cb61e51244f75669bccc72e 100644
|
| --- a/device/bluetooth/test/bluetooth_test_mac.mm
|
| +++ b/device/bluetooth/test/bluetooth_test_mac.mm
|
| @@ -247,6 +247,14 @@ void BluetoothTestMac::SimulateGattServicesDiscovered(
|
| DidDiscoverServices(peripheral_mock);
|
| }
|
|
|
| +void BluetoothTestMac::SimulateGattServicesChanged(BluetoothDevice* device) {
|
| + BluetoothLowEnergyDeviceMac* device_mac =
|
| + static_cast<BluetoothLowEnergyDeviceMac*>(device);
|
| + CBPeripheral* peripheral = device_mac->GetPeripheral();
|
| + MockCBPeripheral* peripheral_mock = ObjCCast<MockCBPeripheral>(peripheral);
|
| + [peripheral_mock didModifyServices:@[]];
|
| +}
|
| +
|
| void BluetoothTestMac::SimulateGattServiceRemoved(
|
| BluetoothRemoteGattService* service) {
|
| BluetoothUUID bluetooth_service_uuid = service->GetUUID();
|
|
|