Make sure the right NetworkMonitor start method is called on S-/T+

Test: ConnectivityServiceTest
Change-Id: I6a7f0143082236e30d2e3878147df2c921ff5539
This commit is contained in:
Chalard Jean
2022-02-23 04:31:26 +09:00
parent a14b3f2184
commit cd8210843f

View File

@@ -931,6 +931,11 @@ public class ConnectivityServiceTest {
}
private void onValidationRequested() throws Exception {
if (SdkLevel.isAtLeastT()) {
verify(mNetworkMonitor).notifyNetworkConnectedParcel(any());
} else {
verify(mNetworkMonitor).notifyNetworkConnected(any(), any());
}
if (mNmProvNotificationRequested
&& ((mNmValidationResult & NETWORK_VALIDATION_RESULT_VALID) != 0)) {
mNmCallbacks.hideProvisioningNotification();