am 9c6d406e: Fix build breakage.

* commit '9c6d406eb7ab0fce40fb7cd1257714a29d06774c':
  Fix build breakage.
This commit is contained in:
Robert Greenwalt
2014-06-12 19:57:11 +00:00
committed by Android Git Automerger

View File

@@ -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);
} }
} }