From b77347619ae1d3a382e8af1479efbdcd99597dfb Mon Sep 17 00:00:00 2001 From: Salvador Martinez Date: Wed, 28 Feb 2018 10:23:58 -0800 Subject: [PATCH] Update tests for string changes Some tests were validating strings for enhanced estimates. Since those strings have been updated the tests in Settings need to be updated to reflect those changes. Test: Is a test change Bug: 73290523 Bug: 72996609 Bug: 73904361 Change-Id: I5a175eb89539544bc10647a5373bd064efa3dbf7 --- .../src/com/android/settings/fuelgauge/BatteryInfoTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/robotests/src/com/android/settings/fuelgauge/BatteryInfoTest.java b/tests/robotests/src/com/android/settings/fuelgauge/BatteryInfoTest.java index 45edb472e1a..b613bb3caaa 100644 --- a/tests/robotests/src/com/android/settings/fuelgauge/BatteryInfoTest.java +++ b/tests/robotests/src/com/android/settings/fuelgauge/BatteryInfoTest.java @@ -71,7 +71,7 @@ public class BatteryInfoTest { private static final int PLUGGED_IN = 1; private static final long REMAINING_TIME_NULL = -1; private static final long REMAINING_TIME = 2; - public static final String ENHANCED_STRING_SUFFIX = "left based on your usage"; + public static final String ENHANCED_STRING_SUFFIX = "based on your usage"; public static final long TEST_CHARGE_TIME_REMAINING = TimeUnit.MINUTES.toMicros(1); public static final String TEST_CHARGE_TIME_REMAINING_STRINGIFIED = "1m left until fully charged"; @@ -183,7 +183,7 @@ public class BatteryInfoTest { // Check that strings are showing less than 15 minutes remaining regardless of exact time. assertThat(info.chargeLabel.toString()).isEqualTo( mContext.getString(R.string.power_remaining_less_than_duration, - TEST_BATTERY_LEVEL_10, FIFTEEN_MIN_FORMATTED)); + FIFTEEN_MIN_FORMATTED, TEST_BATTERY_LEVEL_10)); assertThat(info.remainingLabel.toString()).isEqualTo( mContext.getString(R.string.power_remaining_less_than_duration_only, FIFTEEN_MIN_FORMATTED));