Merge "Update incompatible charger checking rule" into main

This commit is contained in:
YK Hung
2023-11-14 02:47:29 +00:00
committed by Android (Google) Code Review

View File

@@ -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});
}
}