Index: components/proximity_auth/ble/bluetooth_low_energy_connection_finder_unittest.cc |
diff --git a/components/proximity_auth/ble/bluetooth_low_energy_connection_finder_unittest.cc b/components/proximity_auth/ble/bluetooth_low_energy_connection_finder_unittest.cc |
index 6691536882bf307e525d09ddfdb5814317b8e107..be22b1852b8531f3611b1ca5e15e250467d64a3a 100644 |
--- a/components/proximity_auth/ble/bluetooth_low_energy_connection_finder_unittest.cc |
+++ b/components/proximity_auth/ble/bluetooth_low_energy_connection_finder_unittest.cc |
@@ -257,7 +257,7 @@ TEST_F(ProximityAuthBluetoothLowEnergyConnectionFinderTest, |
ExpectRemoveObserver(); |
PrepareDevice(kServiceUUID, kTestRemoteDeviceBluetoothAddress, false); |
- ON_CALL(*device_, GetName()) |
+ ON_CALL(*device_, GetNameForDisplay()) |
.WillByDefault(Return(base::UTF8ToUTF16(kTestRemoteDeviceName))); |
connection_finder.ExpectCreateConnection(); |
@@ -273,7 +273,7 @@ TEST_F(ProximityAuthBluetoothLowEnergyConnectionFinderTest, |
ExpectRemoveObserver(); |
PrepareDevice(kOtherUUID, kTestRemoteDeviceBluetoothAddress, false); |
- ON_CALL(*device_, GetName()) |
+ ON_CALL(*device_, GetNameForDisplay()) |
.WillByDefault(Return(base::UTF8ToUTF16("Other name"))); |
EXPECT_CALL(connection_finder, CreateConnectionProxy()).Times(0); |