| Index: components/proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc
|
| diff --git a/components/proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc b/components/proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc
|
| index 9dbaa9c2f80fddd0ea22f42d9ae435dac4fa9073..8ee2540cab1181506c8e87e8c9ea62034f17fdfe 100644
|
| --- a/components/proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc
|
| +++ b/components/proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc
|
| @@ -139,6 +139,7 @@ class ProximityAuthBluetoothLowEnergyConnectionTest : public testing::Test {
|
| from_peripheral_char_uuid_(
|
| device::BluetoothUUID(kFromPeripheralCharUUID)),
|
| gatt_connection_(new NiceMock<device::MockBluetoothGattConnection>(
|
| + adapter_,
|
| kBluetoothAddress)),
|
| gatt_connection_alias_(gatt_connection_.get()),
|
| notify_session_alias_(NULL),
|
| @@ -224,8 +225,9 @@ class ProximityAuthBluetoothLowEnergyConnectionTest : public testing::Test {
|
| SaveArg<1>(&characteristics_finder_error_callback_),
|
| Return(new NiceMock<MockBluetoothLowEnergyCharacteristicsFinder>)));
|
|
|
| - create_gatt_connection_success_callback_.Run(make_scoped_ptr(
|
| - new NiceMock<device::MockBluetoothGattConnection>(kBluetoothAddress)));
|
| + create_gatt_connection_success_callback_.Run(
|
| + make_scoped_ptr(new NiceMock<device::MockBluetoothGattConnection>(
|
| + adapter_, kBluetoothAddress)));
|
|
|
| EXPECT_EQ(connection->sub_status(),
|
| BluetoothLowEnergyConnection::SubStatus::WAITING_CHARACTERISTICS);
|
| @@ -708,8 +710,9 @@ TEST_F(ProximityAuthBluetoothLowEnergyConnectionTest,
|
| SaveArg<1>(&characteristics_finder_error_callback_),
|
| Return(new NiceMock<MockBluetoothLowEnergyCharacteristicsFinder>)));
|
|
|
| - create_gatt_connection_success_callback_.Run(make_scoped_ptr(
|
| - new NiceMock<device::MockBluetoothGattConnection>(kBluetoothAddress)));
|
| + create_gatt_connection_success_callback_.Run(
|
| + make_scoped_ptr(new NiceMock<device::MockBluetoothGattConnection>(
|
| + adapter_, kBluetoothAddress)));
|
|
|
| CharacteristicsFound(connection.get());
|
| NotifySessionStarted(connection.get());
|
|
|