Skip to content
Snippets Groups Projects
Commit 99c8a5d1 authored by Maciej Żenczykowski's avatar Maciej Żenczykowski Committed by Gerrit Code Review
Browse files

Merge "cts: fix android.net.cts.VpnServiceTest#testProtect_int flake" into main

parents 30ef5308 ee20a09b
No related branches found
No related tags found
No related merge requests found
......@@ -216,6 +216,15 @@ public class Ikev2VpnTest {
}
setAppop(AppOpsManager.OP_ACTIVATE_VPN, false);
setAppop(AppOpsManager.OP_ACTIVATE_PLATFORM_VPN, false);
// Make sure the VpnProfile is not provisioned already.
sVpnMgr.stopProvisionedVpnProfile();
try {
sVpnMgr.startProvisionedVpnProfile();
fail("Expected SecurityException for missing consent");
} catch (SecurityException expected) {
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment