Make sure the right NetworkMonitor start method is called on S-/T+
Test: ConnectivityServiceTest Change-Id: I6a7f0143082236e30d2e3878147df2c921ff5539
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user