Pass the NetworkAgentConfig to NetworkMonitor.

When the network is a VPN, NetworkMonitor needs to know whether
the VPN requests validation, and that information is stored in
NetworkAgentConfig. Pass it.

Test: FrameworksNetTests
Change-Id: I3616f0796b69ce054d92213aafdef43ba7041596
This commit is contained in:
Chalard Jean
2022-02-06 12:25:38 +09:00
parent 3068ce7378
commit d490072cd6
2 changed files with 8 additions and 5 deletions

View File

@@ -907,7 +907,7 @@ public class ConnectivityServiceTest {
return null;
};
doAnswer(validateAnswer).when(mNetworkMonitor).notifyNetworkConnected(any(), any());
doAnswer(validateAnswer).when(mNetworkMonitor).notifyNetworkConnectedParcel(any());
doAnswer(validateAnswer).when(mNetworkMonitor).forceReevaluation(anyInt());
final ArgumentCaptor<Network> nmNetworkCaptor = ArgumentCaptor.forClass(Network.class);