Extract test utilities for ConnectivityService
The utilities help using ConnectivityService in tests, and will be used to write integration tests for ConnectivityService. Test: atest FrameworksNetTests Change-Id: Ie895ad05139cd5768d3d8a9bd5589d72571f47e6
This commit is contained in:
@@ -750,10 +750,10 @@ public class IpSecService extends IIpSecService.Stub {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// These values have been reserved in ConnectivityService
|
// These values have been reserved in NetIdManager
|
||||||
@VisibleForTesting static final int TUN_INTF_NETID_START = 0xFC00;
|
@VisibleForTesting static final int TUN_INTF_NETID_START = 0xFC00;
|
||||||
|
|
||||||
@VisibleForTesting static final int TUN_INTF_NETID_RANGE = 0x0400;
|
public static final int TUN_INTF_NETID_RANGE = 0x0400;
|
||||||
|
|
||||||
private final SparseBooleanArray mTunnelNetIds = new SparseBooleanArray();
|
private final SparseBooleanArray mTunnelNetIds = new SparseBooleanArray();
|
||||||
private int mNextTunnelNetIdIndex = 0;
|
private int mNextTunnelNetIdIndex = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user