diff options
author | Narayan Kamath <narayan@google.com> | 2020-03-30 10:05:09 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2020-03-31 09:11:56 +0100 |
commit | 6671601d6b7596a2ccf5e20eb156e6be598ed70f (patch) | |
tree | 42d0c6ca78272fd3aa7c83843886dddab4d55530 /tests/permission/src | |
parent | 8df5b601a2d101c814f252232243d166e94ef697 (diff) |
PmPermissionsTest: Update test expectations for getPackageSizeInfo
Now unconditionally throws for apps targeting > 0.
Test: atest PmPermissionsTests
Bug: 148316352
Change-Id: Ia24d501257743db22d2f850a5fca933669f0a5ae
Diffstat (limited to 'tests/permission/src')
-rw-r--r-- | tests/permission/src/com/android/framework/permission/tests/PmPermissionsTests.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/permission/src/com/android/framework/permission/tests/PmPermissionsTests.java b/tests/permission/src/com/android/framework/permission/tests/PmPermissionsTests.java index b39db61794de..299d8d003d9c 100644 --- a/tests/permission/src/com/android/framework/permission/tests/PmPermissionsTests.java +++ b/tests/permission/src/com/android/framework/permission/tests/PmPermissionsTests.java @@ -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 } } -}
\ No newline at end of file +} |