| Index: device/bluetooth/test/fake_peripheral.cc
|
| diff --git a/device/bluetooth/test/fake_peripheral.cc b/device/bluetooth/test/fake_peripheral.cc
|
| index 6714a5b827ccdd86180404e1100ed96b1404594a..1515e991b9f194914b363e65f15705cd27e11c72 100644
|
| --- a/device/bluetooth/test/fake_peripheral.cc
|
| +++ b/device/bluetooth/test/fake_peripheral.cc
|
| @@ -15,13 +15,17 @@ FakePeripheral::FakePeripheral(FakeCentral* fake_central,
|
| FakePeripheral::~FakePeripheral() {}
|
|
|
| void FakePeripheral::SetName(base::Optional<std::string> name) {
|
| - name_ = name;
|
| + name_ = std::move(name);
|
| }
|
|
|
| void FakePeripheral::SetGattConnected(bool connected) {
|
| gatt_connected_ = connected;
|
| }
|
|
|
| +void FakePeripheral::SetServiceUUIDs(UUIDSet service_uuids) {
|
| + service_uuids_ = std::move(service_uuids);
|
| +}
|
| +
|
| uint32_t FakePeripheral::GetBluetoothClass() const {
|
| NOTREACHED();
|
| return 0;
|
| @@ -102,7 +106,7 @@ bool FakePeripheral::IsConnecting() const {
|
| }
|
|
|
| device::BluetoothDevice::UUIDSet FakePeripheral::GetUUIDs() const {
|
| - return UUIDSet();
|
| + return service_uuids_;
|
| }
|
|
|
| bool FakePeripheral::ExpectingPinCode() const {
|
|
|