NsdServiceInfo: move test to tests/net
This patch also
- adds a license plate to NsdServiceInfoTest
- fixes some formatting and style issues
package name
uses of canonical junit asserts
- update NsdServiceInfoTest to not use the deprecated AndroidTestCase
Bug: 62044295
Bug: 32561414
Test: $ runtest frameworks-net passes
Change-Id: Ie5ebb00172aef4eec19e6ecd2b41c4467901b93d
This commit is contained in:
@@ -30,7 +30,6 @@ import java.nio.charset.StandardCharsets;
|
||||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* A class representing service information for network service discovery
|
||||
* {@see NsdManager}
|
||||
@@ -43,7 +42,7 @@ public final class NsdServiceInfo implements Parcelable {
|
||||
|
||||
private String mServiceType;
|
||||
|
||||
private final ArrayMap<String, byte[]> mTxtRecord = new ArrayMap<String, byte[]>();
|
||||
private final ArrayMap<String, byte[]> mTxtRecord = new ArrayMap<>();
|
||||
|
||||
private InetAddress mHost;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user