binder: Fix expected result of security test

The test name includes "fails" but it asserts the result is OK. The test
was added in #9428.

The binder tests are passing on the Android CI, but for some reason the
tests with sdk >= 29 are skipped. Robolectric 4.8 claims API level 32
support and the tests are skipped even when using Java 11 and 17.
This commit is contained in:
Eric Anderson 2022-09-08 16:16:11 -07:00
parent 074e919304
commit 24287b0b14
1 changed files with 1 additions and 1 deletions

View File

@ -460,7 +460,7 @@ public final class SecurityPoliciesTest {
policy = SecurityPolicies.isProfileOwnerOnOrganizationOwnedDevice(appContext);
assertThat(policy.checkAuthorization(OTHER_UID).getCode()).isEqualTo(Status.OK.getCode());
assertThat(policy.checkAuthorization(OTHER_UID).getCode()).isEqualTo(Status.PERMISSION_DENIED.getCode());
}
@Test