Merge "[CS] Unregister callback as part of onUnavailable dispatch" into qt-dev

This commit is contained in:
Lorenzo Colitti
2019-05-09 09:42:38 +00:00
committed by Android (Google) Code Review
2 changed files with 11 additions and 2 deletions

View File

@@ -3854,6 +3854,9 @@ public class ConnectivityServiceTest {
networkCallback.expectCallback(CallbackState.UNAVAILABLE, null);
testFactory.waitForRequests();
// unregister network callback - a no-op, but should not fail
mCm.unregisterNetworkCallback(networkCallback);
testFactory.unregister();
handlerThread.quit();
}