Verify that VPN name is set in VPN networks
Verify that the extra info for validation logs in the NetworkInfo is set. Bug: 297790570 Test: atest FrameworksNetTests Change-Id: I5b77b3bab30154b7979cda003274cde0d834a5fb
This commit is contained in:
@@ -2041,6 +2041,8 @@ public class VpnTest extends VpnTestBase {
|
|||||||
|
|
||||||
// Check if allowBypass is set or not.
|
// Check if allowBypass is set or not.
|
||||||
assertTrue(nacCaptor.getValue().isBypassableVpn());
|
assertTrue(nacCaptor.getValue().isBypassableVpn());
|
||||||
|
// Check if extra info for VPN is set.
|
||||||
|
assertTrue(nacCaptor.getValue().getLegacyExtraInfo().contains(TEST_VPN_PKG));
|
||||||
final VpnTransportInfo info = (VpnTransportInfo) ncCaptor.getValue().getTransportInfo();
|
final VpnTransportInfo info = (VpnTransportInfo) ncCaptor.getValue().getTransportInfo();
|
||||||
assertTrue(info.isBypassable());
|
assertTrue(info.isBypassable());
|
||||||
assertEquals(areLongLivedTcpConnectionsExpensive,
|
assertEquals(areLongLivedTcpConnectionsExpensive,
|
||||||
|
|||||||
Reference in New Issue
Block a user