PmPermissionsTest: Update test expectations for getPackageSizeInfo

Now unconditionally throws for apps targeting > 0.

Test: atest PmPermissionsTests
Bug: 148316352
Change-Id: Ia24d501257743db22d2f850a5fca933669f0a5ae
This commit is contained in:
Narayan Kamath
2020-03-30 10:05:09 +01:00
parent 8df5b601a2
commit 6671601d6b

View File

@@ -43,8 +43,8 @@ public class PmPermissionsTests extends AndroidTestCase {
try {
mPm.getPackageSizeInfo(mPkgName, null);
fail("PackageManager.getPackageSizeInfo" +
"did not throw SecurityException as expected");
} catch (SecurityException e) {
"did not throw UnsupportedOperationException as expected");
} catch (UnsupportedOperationException e) {
// expected
}
}
@@ -130,4 +130,4 @@ public class PmPermissionsTests extends AndroidTestCase {
// expected
}
}
}
}