| 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 8bbf442ea56f89cbf84db71f2a5a398e6ad1c573..ed7468b813075610c7e6f7e0750bf8f7ca1eaf56 100644
|
| --- a/device/bluetooth/test/mock_bluetooth_device.cc
|
| +++ b/device/bluetooth/test/mock_bluetooth_device.cc
|
| @@ -22,7 +22,8 @@ MockBluetoothDevice::MockBluetoothDevice(MockBluetoothAdapter* adapter,
|
| : BluetoothDevice(adapter),
|
| bluetooth_class_(bluetooth_class),
|
| name_(name),
|
| - address_(address) {
|
| + address_(address),
|
| + connected_(connected) {
|
| ON_CALL(*this, GetBluetoothClass())
|
| .WillByDefault(testing::Return(bluetooth_class_));
|
| ON_CALL(*this, GetDeviceName())
|
| @@ -44,7 +45,7 @@ MockBluetoothDevice::MockBluetoothDevice(MockBluetoothAdapter* adapter,
|
| ON_CALL(*this, IsPaired())
|
| .WillByDefault(testing::Return(paired));
|
| ON_CALL(*this, IsConnected())
|
| - .WillByDefault(testing::Return(connected));
|
| + .WillByDefault(testing::ReturnPointee(&connected_));
|
| ON_CALL(*this, IsConnectable())
|
| .WillByDefault(testing::Return(false));
|
| ON_CALL(*this, IsConnecting())
|
|
|