NsdManager: add test coverage for discoverServices()
Test: added new tests Bug: 37013369, 33298084 Change-Id: If6c1113ee1bd4690db90abd5a61c3e229c827aec
This commit is contained in:
@@ -372,6 +372,8 @@ public final class NsdManager {
|
||||
((DiscoveryListener) listener).onServiceLost((NsdServiceInfo) message.obj);
|
||||
break;
|
||||
case STOP_DISCOVERY_FAILED:
|
||||
// TODO: failure to stop discovery should be internal and retried internally, as
|
||||
// the effect for the client is indistinguishable from STOP_DISCOVERY_SUCCEEDED
|
||||
removeListener(message.arg2);
|
||||
((DiscoveryListener) listener).onStopDiscoveryFailed(getNsdServiceInfoType(ns),
|
||||
message.arg1);
|
||||
|
||||
Reference in New Issue
Block a user