Merge "Consider usage map valid even if [all][all] is null."
This commit is contained in:
committed by
Android (Google) Code Review
commit
86f436dd0d
@@ -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[]{
|
||||
|
Reference in New Issue
Block a user