ClatCoordinatorTest: override test generateIpv6Address correctly
aosp/2267683 adds the new param "mark" in generateIpv6Address and TestDependencies#generateIpv6Address needs to override for this change correctly. Change-Id: Ia526bcdf80a428948d55a28bd5adec405530a634 Test: TH
This commit is contained in:
@@ -222,7 +222,7 @@ public class ClatCoordinatorTest {
|
|||||||
public String generateIpv6Address(@NonNull String iface, @NonNull String v4,
|
public String generateIpv6Address(@NonNull String iface, @NonNull String v4,
|
||||||
@NonNull String prefix64, int mark) throws IOException {
|
@NonNull String prefix64, int mark) throws IOException {
|
||||||
if (BASE_IFACE.equals(iface) && XLAT_LOCAL_IPV4ADDR_STRING.equals(v4)
|
if (BASE_IFACE.equals(iface) && XLAT_LOCAL_IPV4ADDR_STRING.equals(v4)
|
||||||
&& NAT64_PREFIX_STRING.equals(prefix64)) {
|
&& NAT64_PREFIX_STRING.equals(prefix64) && MARK == mark) {
|
||||||
return XLAT_LOCAL_IPV6ADDR_STRING;
|
return XLAT_LOCAL_IPV6ADDR_STRING;
|
||||||
}
|
}
|
||||||
fail("unsupported args: " + iface + ", " + v4 + ", " + prefix64 + ", " + mark);
|
fail("unsupported args: " + iface + ", " + v4 + ", " + prefix64 + ", " + mark);
|
||||||
|
|||||||
Reference in New Issue
Block a user