Implement Ikev2VpnRunner
This change adds the implementation for IKEv2/IPsec VPNs. Bug: 144246767 Test: Manually tested Change-Id: I5ccec756cec49ccf57ccc4d5ad800eeb5d595a76
This commit is contained in:
@@ -148,6 +148,7 @@ public class VpnTest {
|
|||||||
@Mock private AppOpsManager mAppOps;
|
@Mock private AppOpsManager mAppOps;
|
||||||
@Mock private NotificationManager mNotificationManager;
|
@Mock private NotificationManager mNotificationManager;
|
||||||
@Mock private Vpn.SystemServices mSystemServices;
|
@Mock private Vpn.SystemServices mSystemServices;
|
||||||
|
@Mock private Vpn.Ikev2SessionCreator mIkev2SessionCreator;
|
||||||
@Mock private ConnectivityManager mConnectivityManager;
|
@Mock private ConnectivityManager mConnectivityManager;
|
||||||
@Mock private KeyStore mKeyStore;
|
@Mock private KeyStore mKeyStore;
|
||||||
private final VpnProfile mVpnProfile = new VpnProfile("key");
|
private final VpnProfile mVpnProfile = new VpnProfile("key");
|
||||||
@@ -867,7 +868,8 @@ public class VpnTest {
|
|||||||
* Mock some methods of vpn object.
|
* Mock some methods of vpn object.
|
||||||
*/
|
*/
|
||||||
private Vpn createVpn(@UserIdInt int userId) {
|
private Vpn createVpn(@UserIdInt int userId) {
|
||||||
return new Vpn(Looper.myLooper(), mContext, mNetService, userId, mSystemServices);
|
return new Vpn(Looper.myLooper(), mContext, mNetService,
|
||||||
|
userId, mSystemServices, mIkev2SessionCreator);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void assertBlocked(Vpn vpn, int... uids) {
|
private static void assertBlocked(Vpn vpn, int... uids) {
|
||||||
|
|||||||
Reference in New Issue
Block a user