Merge "Update incompatible charger checking rule" into udc-dev

This commit is contained in:
YK Hung
2023-06-02 00:50:17 +00:00
committed by Android (Google) Code Review

View File

@@ -190,6 +190,7 @@ public class BatteryTestUtils {
when(mockUsbPort.getStatus()).thenReturn(mockUsbPortStatus); when(mockUsbPort.getStatus()).thenReturn(mockUsbPortStatus);
when(mockUsbPort.supportsComplianceWarnings()).thenReturn(true); when(mockUsbPort.supportsComplianceWarnings()).thenReturn(true);
when(mockUsbPortStatus.isConnected()).thenReturn(true); when(mockUsbPortStatus.isConnected()).thenReturn(true);
when(mockUsbPortStatus.getComplianceWarnings()).thenReturn(new int[]{1}); when(mockUsbPortStatus.getComplianceWarnings())
.thenReturn(new int[]{UsbPortStatus.COMPLIANCE_WARNING_OTHER});
} }
} }