Merge changes from topic "revert-1551943-vpn-impl-FKOLCXTDDT"
* changes: Revert "Unhide RouteInfo#getType and related fields" Revert "Unhide IpPrefix(InetAddress, int)" Revert "Add CTS tests for exclude VPN routes APIs"
This commit is contained in:
@@ -122,9 +122,6 @@ public class IpPrefixTest {
|
||||
|
||||
p = new IpPrefix("[2001:db8::123]/64");
|
||||
assertEquals("2001:db8::/64", p.toString());
|
||||
|
||||
p = new IpPrefix(InetAddresses.parseNumericAddress("::128"), 64);
|
||||
assertEquals("::/64", p.toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -16,8 +16,6 @@
|
||||
|
||||
package android.net;
|
||||
|
||||
import static android.net.RouteInfo.RTN_THROW;
|
||||
import static android.net.RouteInfo.RTN_UNICAST;
|
||||
import static android.net.RouteInfo.RTN_UNREACHABLE;
|
||||
|
||||
import static com.android.testutils.MiscAsserts.assertEqualBothWays;
|
||||
@@ -330,16 +328,6 @@ public class RouteInfoTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testRouteTypes() {
|
||||
RouteInfo r = new RouteInfo(new IpPrefix(Inet6Address.ANY, 0), RTN_UNREACHABLE);
|
||||
assertEquals(RTN_UNREACHABLE, r.getType());
|
||||
r = new RouteInfo(new IpPrefix(Inet6Address.ANY, 0), RTN_UNICAST);
|
||||
assertEquals(RTN_UNICAST, r.getType());
|
||||
r = new RouteInfo(new IpPrefix(Inet6Address.ANY, 0), RTN_THROW);
|
||||
assertEquals(RTN_THROW, r.getType());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTruncation() {
|
||||
LinkAddress l;
|
||||
|
||||
Reference in New Issue
Block a user