Merge "Update battery summary"

This commit is contained in:
Lei Yu
2019-02-15 18:26:56 +00:00
committed by Android (Google) Code Review
2 changed files with 7 additions and 1 deletions

View File

@@ -61,5 +61,9 @@ public class TopLevelBatteryPreferenceControllerTest {
info.remainingLabel = "Phone will shut down soon";
assertThat(getDashboardLabel(mContext, info)).isEqualTo("3% - Phone will shut down soon");
info.discharging = false;
info.chargeLabel = "5% - charging";
assertThat(getDashboardLabel(mContext, info)).isEqualTo("5% - charging");
}
}