From e2f19b7de93c513c1d0d441cb5844f7817ae396a Mon Sep 17 00:00:00 2001 From: ykhung Date: Thu, 1 Jun 2023 12:47:50 +0800 Subject: [PATCH] Update incompatible charger checking rule Bug: 278316711 Test: make test RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.fuelgauge Change-Id: I8f720bcdf7c0efabc8278913ccf1c0427c857fac --- .../src/com/android/settings/testutils/BatteryTestUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/robotests/src/com/android/settings/testutils/BatteryTestUtils.java b/tests/robotests/src/com/android/settings/testutils/BatteryTestUtils.java index b75fa8cfe1c..c54b750cb55 100644 --- a/tests/robotests/src/com/android/settings/testutils/BatteryTestUtils.java +++ b/tests/robotests/src/com/android/settings/testutils/BatteryTestUtils.java @@ -190,6 +190,7 @@ public class BatteryTestUtils { when(mockUsbPort.getStatus()).thenReturn(mockUsbPortStatus); when(mockUsbPort.supportsComplianceWarnings()).thenReturn(true); when(mockUsbPortStatus.isConnected()).thenReturn(true); - when(mockUsbPortStatus.getComplianceWarnings()).thenReturn(new int[]{1}); + when(mockUsbPortStatus.getComplianceWarnings()) + .thenReturn(new int[]{UsbPortStatus.COMPLIANCE_WARNING_OTHER}); } }