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

Commit 4d11ab6e authored by YK Hung's avatar YK Hung Committed by Android (Google) Code Review
Browse files

Merge "Update incompatible charger checking rule" into main

parents e4300ace ef2cd064
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -81,6 +81,7 @@ public final class IncompatibleChargerDetectorTest {
        when(mUsbPort.getStatus()).thenReturn(mUsbPortStatus);
        when(mUsbPort.supportsComplianceWarnings()).thenReturn(true);
        when(mUsbPortStatus.isConnected()).thenReturn(true);
        when(mUsbPortStatus.getComplianceWarnings()).thenReturn(new int[] {1});
        when(mUsbPortStatus.getComplianceWarnings())
                .thenReturn(new int[] {UsbPortStatus.COMPLIANCE_WARNING_DEBUG_ACCESSORY});
    }
}