Merge "Update incompatible charger checking rule" into main

This commit is contained in:
Roy Luo
2023-11-09 19:09:38 +00:00
committed by Android (Google) Code Review

View File

@@ -219,7 +219,7 @@ public class BatteryTestUtils {
when(mockUsbPort.supportsComplianceWarnings()).thenReturn(true);
when(mockUsbPortStatus.isConnected()).thenReturn(true);
when(mockUsbPortStatus.getComplianceWarnings())
.thenReturn(new int[]{UsbPortStatus.COMPLIANCE_WARNING_OTHER});
.thenReturn(new int[]{UsbPortStatus.COMPLIANCE_WARNING_DEBUG_ACCESSORY});
}
/**