diff options
| -rw-r--r-- | packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/CachedBluetoothDeviceManagerTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/CachedBluetoothDeviceManagerTest.java b/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/CachedBluetoothDeviceManagerTest.java index 69e99c616910..94199df4b9f8 100644 --- a/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/CachedBluetoothDeviceManagerTest.java +++ b/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/CachedBluetoothDeviceManagerTest.java @@ -662,10 +662,10 @@ public class CachedBluetoothDeviceManagerTest { @Test @RequiresFlagsEnabled( com.android.settingslib.flags.Flags.FLAG_HEARING_DEVICE_SET_CONNECTION_STATUS_REPORT) - public void onDeviceUnpaired_hearingDevice_callReportConnectionStatus() { + public void onDeviceUnpaired_containsHearingAidInfo_callReportConnectionStatus() { when(mDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); - when(mCachedDevice1.getProfiles()).thenReturn( - ImmutableList.of(mHapClientProfile, mHearingAidProfile)); + mCachedDevice1.setHearingAidInfo( + new HearingAidInfo.Builder().setHiSyncId(HISYNCID1).build()); mCachedDeviceManager.onDeviceUnpaired(mCachedDevice1); |