Skip to content

Commit 04d0600

Browse files
zhangkun83AgraVator
authored andcommitted
binder: stops emulating for 21/22 Lollipop in tests
See cl/769936336 internally
1 parent 17c811c commit 04d0600

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

binder/src/test/java/io/grpc/binder/SecurityPoliciesTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ public void testIsDeviceOwner_failsWhenNoPackagesForUid() throws Exception {
357357
}
358358

359359
@Test
360-
@Config(sdk = 21)
360+
@Config(sdk = Config.OLDEST_SDK)
361361
public void testIsProfileOwner_succeedsForProfileOwner() throws Exception {
362362
PackageInfo info =
363363
newBuilder().setPackageName(OTHER_UID_PACKAGE_NAME).setSignatures(SIG2).build();
@@ -371,7 +371,7 @@ public void testIsProfileOwner_succeedsForProfileOwner() throws Exception {
371371
}
372372

373373
@Test
374-
@Config(sdk = 21)
374+
@Config(sdk = Config.OLDEST_SDK)
375375
public void testIsProfileOwner_failsForNotProfileOwner() throws Exception {
376376
PackageInfo info =
377377
newBuilder().setPackageName(OTHER_UID_PACKAGE_NAME).setSignatures(SIG2).build();
@@ -385,7 +385,7 @@ public void testIsProfileOwner_failsForNotProfileOwner() throws Exception {
385385
}
386386

387387
@Test
388-
@Config(sdk = 21)
388+
@Config(sdk = Config.OLDEST_SDK)
389389
public void testIsProfileOwner_failsWhenNoPackagesForUid() throws Exception {
390390
policy = SecurityPolicies.isProfileOwner(appContext);
391391

@@ -425,7 +425,7 @@ public void testIsProfileOwnerOnOrgOwned_failsForProfileOwnerOnNonOrgOwned() thr
425425
}
426426

427427
@Test
428-
@Config(sdk = 21)
428+
@Config(sdk = Config.OLDEST_SDK)
429429
public void testIsProfileOwnerOnOrgOwned_failsForNotProfileOwner() throws Exception {
430430
PackageInfo info =
431431
newBuilder().setPackageName(OTHER_UID_PACKAGE_NAME).setSignatures(SIG2).build();
@@ -439,7 +439,7 @@ public void testIsProfileOwnerOnOrgOwned_failsForNotProfileOwner() throws Except
439439
}
440440

441441
@Test
442-
@Config(sdk = 21)
442+
@Config(sdk = Config.OLDEST_SDK)
443443
public void testIsProfileOwnerOnOrgOwned_failsWhenNoPackagesForUid() throws Exception {
444444
policy = SecurityPolicies.isProfileOwnerOnOrganizationOwnedDevice(appContext);
445445

0 commit comments

Comments
 (0)