Correct the logic in NetworkCapabilitiesTest
setOwnerUid() and setAdministratorUids() should run in R+. Previous logic will skip them in S+. Correct the logic to what it should be. Bug: 172183305 Test: atest android.net.NetworkCapabilitiesTest Change-Id: Ic983aa00f930fb26350469ef093bcba2990433a4
This commit is contained in:
@@ -329,7 +329,8 @@ public class NetworkCapabilitiesTest {
|
||||
if (isAtLeastS()) {
|
||||
netCap.setSubIds(Set.of(TEST_SUBID1, TEST_SUBID2));
|
||||
netCap.setUids(uids);
|
||||
} else if (isAtLeastR()) {
|
||||
}
|
||||
if (isAtLeastR()) {
|
||||
netCap.setOwnerUid(123);
|
||||
netCap.setAdministratorUids(new int[] {5, 11});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user