Index: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc |
diff --git a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc |
index eadea514f0743bb1c31ad567967f774a19e57b7f..1d7df8a1c4620660b9a96a223c81d693b605dbab 100644 |
--- a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc |
+++ b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc |
@@ -652,10 +652,10 @@ |
BluetoothGattNotifySession* session0 = |
new testing::NiceMock<MockBluetoothGattNotifySession>( |
- chrc0_->GetWeakPtr()); |
+ kTestCharacteristicId0); |
BluetoothGattNotifySession* session1 = |
new testing::NiceMock<MockBluetoothGattNotifySession>( |
- chrc2_->GetWeakPtr()); |
+ kTestCharacteristicId2); |
EXPECT_CALL(*chrc0_, StartNotifySession(_, _)) |
.Times(1) |
@@ -1282,10 +1282,10 @@ |
BluetoothGattNotifySession* session0 = |
new testing::NiceMock<MockBluetoothGattNotifySession>( |
- chrc0_->GetWeakPtr()); |
+ kTestCharacteristicId0); |
MockBluetoothGattNotifySession* session1 = |
new testing::NiceMock<MockBluetoothGattNotifySession>( |
- chrc1_->GetWeakPtr()); |
+ kTestCharacteristicId1); |
EXPECT_CALL(*session1, Stop(_)) |
.Times(1) |