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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user