Fix build breakage.

Change-Id: Ideb32704ce5dc37ef36b05609f88da2aa55b3a00
This commit is contained in:
Robert Greenwalt
2014-06-11 18:06:55 -07:00
parent 08bbe1fd33
commit 20091e092e

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