| Index: device/bluetooth/test/mock_bluetooth_gatt_service.cc
|
| diff --git a/device/bluetooth/test/mock_bluetooth_gatt_service.cc b/device/bluetooth/test/mock_bluetooth_gatt_service.cc
|
| index faba596a2d1e4f5f5df8df760955a69167c03511..93cbfc573e8391dc1adb836080036311454e8f9c 100644
|
| --- a/device/bluetooth/test/mock_bluetooth_gatt_service.cc
|
| +++ b/device/bluetooth/test/mock_bluetooth_gatt_service.cc
|
| @@ -47,4 +47,14 @@ MockBluetoothGattService::GetMockCharacteristics() const {
|
| return characteristics;
|
| }
|
|
|
| +BluetoothGattCharacteristic* MockBluetoothGattService::GetMockCharacteristic(
|
| + const std::string& identifier) const {
|
| + for (BluetoothGattCharacteristic* characteristic : mock_characteristics_) {
|
| + if (characteristic->GetIdentifier() == identifier) {
|
| + return characteristic;
|
| + }
|
| + }
|
| + return nullptr;
|
| +}
|
| +
|
| } // namespace device
|
|
|