Merge "Remove schedule by routine relative tests"
This commit is contained in:
committed by
Android (Google) Code Review
commit
cd8f6a2b78
@@ -80,17 +80,4 @@ public class BatterySaverSchedulePreferenceControllerTest {
|
||||
|
||||
assertThat(mPreference.getSummary()).isEqualTo("Will turn on at 20%");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPreference_percentageRoutine_summaryRoutine() {
|
||||
// It doesn't matter what this is set to for routine mode
|
||||
Settings.Global.putInt(mContext.getContentResolver(),
|
||||
Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, TRIGGER_LEVEL);
|
||||
Settings.Global.putInt(mContext.getContentResolver(),
|
||||
Global.AUTOMATIC_POWER_SAVE_MODE, PowerManager.POWER_SAVE_MODE_TRIGGER_DYNAMIC);
|
||||
|
||||
mController.updateState(mPreference);
|
||||
|
||||
assertThat(mPreference.getSummary()).isEqualTo("Based on your routine");
|
||||
}
|
||||
}
|
||||
|
@@ -51,16 +51,6 @@ public final class BatterySaverScheduleSettingsTest {
|
||||
verifySchedule("key_battery_saver_no_schedule", expectedPercentage);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void onPause_withRoutineScheduleType_logExpectedData() {
|
||||
int expectedPercentage = 0;
|
||||
setSchedule(PowerManager.POWER_SAVE_MODE_TRIGGER_DYNAMIC, expectedPercentage);
|
||||
|
||||
mBatterySaverScheduleSettings.onPause();
|
||||
|
||||
verifySchedule("key_battery_saver_routine", expectedPercentage);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void onPause_withPercentageScheduleType_logExpectedData() {
|
||||
int expectedPercentage = 10;
|
||||
|
Reference in New Issue
Block a user