Chromium Code Reviews| Index: device/bluetooth/test/mock_bluetooth_gatt_connection.cc |
| diff --git a/device/bluetooth/test/mock_bluetooth_gatt_connection.cc b/device/bluetooth/test/mock_bluetooth_gatt_connection.cc |
| index 7f06a9f1bf705ed6a7b6a8948bcd00e727de9af1..9af0128b6d144e1ccfce85f41ba75e4000de919d 100644 |
| --- a/device/bluetooth/test/mock_bluetooth_gatt_connection.cc |
| +++ b/device/bluetooth/test/mock_bluetooth_gatt_connection.cc |
| @@ -4,12 +4,16 @@ |
| #include "device/bluetooth/test/mock_bluetooth_gatt_connection.h" |
| +#include "device/bluetooth/bluetooth_adapter.h" |
| + |
| using ::testing::Return; |
| namespace device { |
| MockBluetoothGattConnection::MockBluetoothGattConnection( |
| - const std::string& device_address) { |
| + scoped_refptr<device::BluetoothAdapter> adapter, |
| + const std::string& device_address) |
| + : BluetoothGattConnection(/* Next Patch: adapter.get(), device_address */) { |
|
Jeffrey Yasskin
2015/08/19 22:19:04
Just |adapter|. .get() risks holding a pointer to
scheib
2015/09/13 02:40:11
Done.
|
| ON_CALL(*this, GetDeviceAddress()).WillByDefault(Return(device_address)); |
| ON_CALL(*this, IsConnected()).WillByDefault(Return(true)); |
| } |