NsdService: test coverage for client requests.
Adding coverage for: - NsdManager client disconnection - in-flight request GC Test: new test passes Bug: 37013369, 33298084 Change-Id: I92039f297cf99352bbf4196797933d89c0b819ff
This commit is contained in:
parent
f2c64f8725
commit
4dd4db7720
1 changed files with 18 additions and 25 deletions
|
|
@ -273,6 +273,14 @@ public final class NsdManager {
|
|||
init();
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@VisibleForTesting
|
||||
public void disconnect() {
|
||||
mAsyncChannel.disconnect();
|
||||
}
|
||||
|
||||
/**
|
||||
* Failures are passed with {@link RegistrationListener#onRegistrationFailed},
|
||||
* {@link RegistrationListener#onUnregistrationFailed},
|
||||
|
|
|
|||
Loading…
Reference in a new issue