Verify bypassability in the VPN network capabilities

Bug: 256775913
Test: atest FrameworksNetTests
Change-Id: I6600714e5fc7c5d78fa7b8bb29c0c8840ec69637
This commit is contained in:
chiachangwang
2022-11-08 06:02:56 +00:00
committed by Chiachang Wang
parent 89d4bda742
commit d0a2805616

View File

@@ -1853,6 +1853,7 @@ public class VpnTest extends VpnTestBase {
// Check if allowBypass is set or not.
assertTrue(nacCaptor.getValue().isBypassableVpn());
assertTrue(((VpnTransportInfo) ncCaptor.getValue().getTransportInfo()).getBypassable());
return new PlatformVpnSnapshot(vpn, nwCb, ikeCb, childCb);
}