Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6671601d authored by Narayan Kamath's avatar Narayan Kamath
Browse files

PmPermissionsTest: Update test expectations for getPackageSizeInfo

Now unconditionally throws for apps targeting > 0.

Test: atest PmPermissionsTests
Bug: 148316352
Change-Id: Ia24d501257743db22d2f850a5fca933669f0a5ae
parent 8df5b601
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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
        }
    }