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

Commit 5cc92c1a authored by jasonwshsu's avatar jasonwshsu
Browse files

Fix test failure for...

Fix test failure for #CachedBluetoothDeviceManagerTest#onDeviceUnpaired_hearingDevice_callReportConnectionStatus

Bug: 397877928
Test: atest CachedBluetoothDeviceManagerTest
Flag: EXEMPT bugfix
Change-Id: I27f8d1bd4d53bc7a9ea481a6bbd5c76c22716ddb
parent 238c473c
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);