Home
last modified time | relevance | path

Searched refs:MOCK_IPV4_ADDR (Results 1 – 1 of 1) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java1119 private static final byte[] MOCK_IPV4_ADDR = {10, 0, 0, 1}; field in ApfTest
1132 LinkAddress link = new LinkAddress(InetAddress.getByAddress(MOCK_IPV4_ADDR), 19); in setupApfFilter()
1167 LinkAddress link = new LinkAddress(InetAddress.getByAddress(MOCK_IPV4_ADDR), 19); in testApfFilterIPv4()
1185 put(packet, IPV4_DEST_ADDR_OFFSET, MOCK_IPV4_ADDR); in testApfFilterIPv4()
1488 assertPass(program, arpRequestBroadcast(MOCK_IPV4_ADDR)); in verifyArpFilter()
1499 assertPass(program, arpReply(IPV4_SOURCE_ADDR, MOCK_IPV4_ADDR)); in verifyArpFilter()
1519 LinkAddress linkAddress = new LinkAddress(InetAddress.getByAddress(MOCK_IPV4_ADDR), 24); in testApfFilterArp()
2303 assertEqualsIp("255.255.255.255", ApfFilter.ipv4BroadcastAddress(MOCK_IPV4_ADDR, 0)); in testBroadcastAddress()
2304 assertEqualsIp("10.0.0.1", ApfFilter.ipv4BroadcastAddress(MOCK_IPV4_ADDR, 32)); in testBroadcastAddress()
2305 assertEqualsIp("10.0.0.255", ApfFilter.ipv4BroadcastAddress(MOCK_IPV4_ADDR, 24)); in testBroadcastAddress()
[all …]