Merge "Follow storage API polishing." into oc-dev

This commit is contained in:
Jeff Sharkey
2017-04-17 22:26:35 +00:00
committed by Android (Google) Code Review
7 changed files with 32 additions and 11 deletions

View File

@@ -194,8 +194,8 @@ public class StorageAsyncLoaderTest {
// Should not crash.
}
private ApplicationInfo addPackage(
String packageName, long cacheSize, long codeSize, long dataSize, int category) {
private ApplicationInfo addPackage(String packageName, long cacheSize, long codeSize,
long dataSize, int category) throws Exception {
StorageStatsSource.AppStorageStats storageStats =
mock(StorageStatsSource.AppStorageStats.class);
when(storageStats.getCodeBytes()).thenReturn(codeSize);