Add test for downstream tethering

Add end-to-end testing for testing NsdManager advertising and
discovering works fine with downstream tethering interfaces.

Bug: 281639507
Test: atest NsdManagerTest
Change-Id: I5a66423f216cfe0c82db5128502c885980ab264b
This commit is contained in:
Yuyang Huang
2023-05-24 14:45:59 +09:00
parent a669de72d3
commit fca402abed
9 changed files with 485 additions and 278 deletions

View File

@@ -77,6 +77,15 @@ public final class DnsResolver {
@interface QueryType {}
public static final int TYPE_A = 1;
public static final int TYPE_AAAA = 28;
// TODO: add below constants as part of QueryType and the public API
/** @hide */
public static final int TYPE_PTR = 12;
/** @hide */
public static final int TYPE_TXT = 16;
/** @hide */
public static final int TYPE_SRV = 33;
/** @hide */
public static final int TYPE_ANY = 255;
@IntDef(prefix = { "FLAG_" }, value = {
FLAG_EMPTY,