Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 643400a3 authored by Jason Hsu's avatar Jason Hsu Committed by Android (Google) Code Review
Browse files

Merge "Fix test failure for...

Merge "Fix test failure for #CachedBluetoothDeviceManagerTest#onDeviceUnpaired_hearingDevice_callReportConnectionStatus" into main
parents 456df9a8 5cc92c1a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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);