commit | a20232d7a1fd11ed60b641f7cda01f6294cbf0c7 | [log] [tgz] |
---|---|---|
author | pajacechen <pajacechen@google.com> | Thu Feb 22 11:27:03 2024 +0800 |
committer | pajacechen <pajacechen@google.com> | Thu Feb 22 11:28:44 2024 +0800 |
tree | 47345eafc54d7b45a2b599569e1ba95f0fa1ec32 | |
parent | 3f52a6c47d9b526692ddd5a4b012caf6349c7249 [diff] |
[Shadow] Fix failed test case for battery defender - Fix failed test case in BatteryInfoTest and BatteryDefenderTipTest Test: http://ab/I73800010248910938 Bug: 315748218 Change-Id: Iaa01a1d777236b7772fa762c94ab094246c38f21
diff --git a/tests/robotests/src/com/android/settings/fuelgauge/BatteryInfoTest.java b/tests/robotests/src/com/android/settings/fuelgauge/BatteryInfoTest.java index 0339f57..e99c4e0 100644 --- a/tests/robotests/src/com/android/settings/fuelgauge/BatteryInfoTest.java +++ b/tests/robotests/src/com/android/settings/fuelgauge/BatteryInfoTest.java
@@ -64,7 +64,7 @@ private static final String STATUS_CHARGING_NO_TIME = "50% - charging"; private static final String STATUS_CHARGING_TIME = "50% - 0 min left until full"; private static final String STATUS_NOT_CHARGING = "Not charging"; - private static final String STATUS_CHARGING_FUTURE_BYPASS = "50% - Charging optimized"; + private static final String STATUS_CHARGING_FUTURE_BYPASS = "50% - Charging"; private static final String STATUS_CHARGING_PAUSED = "50% - Charging optimized"; private static final long REMAINING_TIME_NULL = -1; private static final long REMAINING_TIME = 2;
diff --git a/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/BatteryDefenderTipTest.java b/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/BatteryDefenderTipTest.java index 4efd850..a605ee3 100644 --- a/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/BatteryDefenderTipTest.java +++ b/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/BatteryDefenderTipTest.java
@@ -82,7 +82,7 @@ @Test public void getIcon_showIcon() { assertThat(mBatteryDefenderTip.getIconId()) - .isEqualTo(R.drawable.ic_battery_status_good_theme); + .isEqualTo(R.drawable.ic_battery_defender_tip_shield); } @Test