Merge "Change BatteryUtils.isLegacyApp() to isPreOApp()" into pi-dev

This commit is contained in:
TreeHugger Robot
2018-03-20 04:09:27 +00:00
committed by Android (Google) Code Review
3 changed files with 5 additions and 5 deletions

View File

@@ -516,12 +516,12 @@ public class BatteryUtilsTest {
@Test
public void testIsLegacyApp_SdkLowerThanO_ReturnTrue() {
assertThat(mBatteryUtils.isLegacyApp(LOW_SDK_PACKAGE)).isTrue();
assertThat(mBatteryUtils.isPreOApp(LOW_SDK_PACKAGE)).isTrue();
}
@Test
public void testIsLegacyApp_SdkLargerOrEqualThanO_ReturnFalse() {
assertThat(mBatteryUtils.isLegacyApp(HIGH_SDK_PACKAGE)).isFalse();
assertThat(mBatteryUtils.isPreOApp(HIGH_SDK_PACKAGE)).isFalse();
}
@Test