Merge "Fix MultinetworkApiTest for instant mode" am: 9670ecfaa3 am: c1f9b73846 am: 0b6d90c570
Original change: https://android-review.googlesource.com/c/platform/cts/+/1436501 Change-Id: I4ceae6e12222ff3f9c47f4bc3102ad9b7a3287f0
This commit is contained in:
@@ -103,6 +103,7 @@ public class MultinetworkApiTest extends AndroidTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
@AppModeFull(reason = "CHANGE_NETWORK_STATE permission can't be granted to instant apps")
|
||||
public void testSetprocnetwork() throws ErrnoException {
|
||||
// Hopefully no prior test in this process space has set a default network.
|
||||
assertNull(mCM.getProcessDefaultNetwork());
|
||||
@@ -145,6 +146,7 @@ public class MultinetworkApiTest extends AndroidTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
@AppModeFull(reason = "CHANGE_NETWORK_STATE permission can't be granted to instant apps")
|
||||
public void testSetsocknetwork() throws ErrnoException {
|
||||
for (Network network : getTestableNetworks()) {
|
||||
int errno = runSetsocknetwork(network.getNetworkHandle());
|
||||
|
||||
Reference in New Issue
Block a user