Merge "Add excludeLocalRoutes in NativeNetworkConfig" am: e52be3b59f am: 6571c82556
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1944725 Change-Id: I9b9ae0fc67509766c63300966469382bd62a331b
This commit is contained in:
@@ -3386,12 +3386,12 @@ public class ConnectivityServiceTest {
|
||||
|
||||
private NativeNetworkConfig nativeNetworkConfigPhysical(int netId, int permission) {
|
||||
return new NativeNetworkConfig(netId, NativeNetworkType.PHYSICAL, permission,
|
||||
/*secure=*/ false, VpnManager.TYPE_VPN_NONE);
|
||||
/*secure=*/ false, VpnManager.TYPE_VPN_NONE, /*excludeLocalRoutes=*/ false);
|
||||
}
|
||||
|
||||
private NativeNetworkConfig nativeNetworkConfigVpn(int netId, boolean secure, int vpnType) {
|
||||
return new NativeNetworkConfig(netId, NativeNetworkType.VIRTUAL, INetd.PERMISSION_NONE,
|
||||
secure, vpnType);
|
||||
secure, vpnType, /*excludeLocalRoutes=*/ false);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user