diff options
author | 2024-02-01 19:20:56 +0000 | |
---|---|---|
committer | 2024-02-01 19:21:28 +0000 | |
commit | 0a7628115474e2f668d97d36e04cae51cd09f27b (patch) | |
tree | b95d1e2b80aba6f0e8a1c8dfd9ab213460fd72d6 | |
parent | 4637c1be8ea8a1f7a17a53078ade0e4703b4cce3 (diff) |
Remove test for revoking permission that's not requested.
A pervious attempt to fix these tests was at ag/26049635, where we
removed the part of these test that asserts an exception is thrown.
However, because we are on main the test is still running for U QPR as
well so we are now getting an error for the old behavior.
Since we no longer throw an exception right now, there's actually no
visible behavior to test against, and we can simply remove the test to
resolve the discrepancy.
Fixes: 323290220
Test: presubmit
Change-Id: I1b1aea268baf803b3e0fa76f8c0dfd9c76071eab
-rw-r--r-- | tests/cts/permission/src/android/permission/cts/RevokePermissionTest.kt | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/cts/permission/src/android/permission/cts/RevokePermissionTest.kt b/tests/cts/permission/src/android/permission/cts/RevokePermissionTest.kt index c67707f5f..579b03f9c 100644 --- a/tests/cts/permission/src/android/permission/cts/RevokePermissionTest.kt +++ b/tests/cts/permission/src/android/permission/cts/RevokePermissionTest.kt @@ -50,15 +50,6 @@ class RevokePermissionTest { @Test @AppModeFull(reason = "Instant apps can't revoke permissions.") - fun testRevokePermissionNotRequested() { - testRevoke( - packageName = APP_PKG_NAME, - permission = CAMERA - ) - } - - @Test - @AppModeFull(reason = "Instant apps can't revoke permissions.") fun testRevokeFakePermission() { val fakePermissionName = "FAKE_PERMISSION" testRevoke( @@ -94,16 +85,6 @@ class RevokePermissionTest { @Test @AppModeFull(reason = "Instant apps can't revoke permissions.") - fun testRevokePermissionNotRequestedWithReason() { - testRevoke( - packageName = APP_PKG_NAME, - permission = CAMERA, - reason = "test reason" - ) - } - - @Test - @AppModeFull(reason = "Instant apps can't revoke permissions.") fun testRevokeFakePermissionWithReason() { val fakePermissionName = "FAKE_PERMISSION" testRevoke( |