Merge "Consider usage map valid even if [all][all] is null."

This commit is contained in:
TreeHugger Robot
2022-08-17 14:43:48 +00:00
committed by Android (Google) Code Review
2 changed files with 1 additions and 12 deletions

View File

@@ -423,17 +423,6 @@ public class DataProcessorTest {
mContext, hourlyBatteryLevelsPerDay, new HashMap<>())).isNull();
}
@Test
public void getBatteryUsageMap_emptyHourlyData_returnNull() {
final long[] timestamps = {1000000L, 2000000L};
final int[] levels = {100, 99};
final Map<Long, Map<String, BatteryHistEntry>> batteryHistoryMap =
createHistoryMap(timestamps, levels);
assertThat(DataProcessor.getBatteryUsageMap(
mContext, new ArrayList<>(), batteryHistoryMap)).isNull();
}
@Test
public void getBatteryUsageMap_returnsExpectedResult() {
final long[] batteryHistoryKeys = new long[]{