| Index: device/bluetooth/test/mock_bluetooth_device.cc
|
| diff --git a/device/bluetooth/test/mock_bluetooth_device.cc b/device/bluetooth/test/mock_bluetooth_device.cc
|
| index 928d98cb2939f541d77cc956268c02941a99df3d..0aa8448b3b8123b7ead169188599eb5447a0729b 100644
|
| --- a/device/bluetooth/test/mock_bluetooth_device.cc
|
| +++ b/device/bluetooth/test/mock_bluetooth_device.cc
|
| @@ -71,4 +71,14 @@ std::vector<BluetoothGattService*> MockBluetoothDevice::GetMockServices()
|
| return services;
|
| }
|
|
|
| +BluetoothGattService* MockBluetoothDevice::GetMockService(
|
| + const std::string& identifier) const {
|
| + for (BluetoothGattService* service : mock_services_) {
|
| + if (service->GetIdentifier() == identifier) {
|
| + return service;
|
| + }
|
| + }
|
| + return nullptr;
|
| +}
|
| +
|
| } // namespace device
|
|
|