Fix build breakage.
Change-Id: Ideb32704ce5dc37ef36b05609f88da2aa55b3a00
This commit is contained in:
@@ -71,13 +71,15 @@ public class RouteInfoTest extends TestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testMatches() {
|
public void testMatches() {
|
||||||
class PatchedRouteInfo extends RouteInfo {
|
class PatchedRouteInfo {
|
||||||
|
private final RouteInfo mRouteInfo;
|
||||||
|
|
||||||
public PatchedRouteInfo(LinkAddress destination, InetAddress gateway, String iface) {
|
public PatchedRouteInfo(LinkAddress destination, InetAddress gateway, String iface) {
|
||||||
super(destination, gateway, iface);
|
mRouteInfo = new RouteInfo(destination, gateway, iface);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean matches(InetAddress destination) {
|
public boolean matches(InetAddress destination) {
|
||||||
return super.matches(destination);
|
return mRouteInfo.matches(destination);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user