Merge "Category breakdown size should match total size."

This commit is contained in:
Daniel Nishi
2017-03-15 20:30:09 +00:00
committed by Android (Google) Code Review
4 changed files with 8 additions and 3 deletions

View File

@@ -145,7 +145,7 @@ public class StorageAsyncLoaderTest {
}
@Test
public void testSystemAppsBaseSizeIsIgnored() throws Exception {
public void testSystemAppsBaseSizeIsAddedToSystem() throws Exception {
ApplicationInfo systemApp =
addPackage(PACKAGE_NAME_1, 100, 1, 10, ApplicationInfo.CATEGORY_UNDEFINED);
systemApp.flags = ApplicationInfo.FLAG_SYSTEM;
@@ -154,6 +154,7 @@ public class StorageAsyncLoaderTest {
assertThat(result.size()).isEqualTo(1);
assertThat(result.get(PRIMARY_USER_ID).otherAppsSize).isEqualTo(10L);
assertThat(result.get(PRIMARY_USER_ID).systemSize).isEqualTo(1L);
}
@Test