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:
Chiachang Wang
2023-08-30 10:21:33 +00:00
parent 7145c5c1fe
commit 5ee9dedb0f

View File

@@ -2041,6 +2041,8 @@ public class VpnTest extends VpnTestBase {
// Check if allowBypass is set or not.
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();
assertTrue(info.isBypassable());
assertEquals(areLongLivedTcpConnectionsExpensive,