Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad54f58a authored by Yan Yan's avatar Yan Yan Committed by Gerrit Code Review
Browse files

Merge "Remove hidden VcnTransportInfo methods from VpnTest" into main

parents 59a332c5 fb0fc8a5
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -2380,9 +2380,13 @@ public class VpnTest extends VpnTestBase {
    @Test
    public void doTestMigrateIkeSession_Vcn() throws Exception {
        final int expectedKeepalive = 2097; // Any unlikely number will do
        final NetworkCapabilities vcnNc = new NetworkCapabilities.Builder()
        final NetworkCapabilities vcnNc =
                new NetworkCapabilities.Builder()
                        .addTransportType(TRANSPORT_CELLULAR)
                .setTransportInfo(new VcnTransportInfo(TEST_SUB_ID, expectedKeepalive))
                        .setTransportInfo(
                                new VcnTransportInfo.Builder()
                                        .setMinUdpPort4500NatTimeoutSeconds(expectedKeepalive)
                                        .build())
                        .build();
        final Ikev2VpnProfile ikev2VpnProfile = makeIkeV2VpnProfile(
                true /* isAutomaticIpVersionSelectionEnabled */,