Lines Matching refs:selectIpv4Address
83 in_addr_t selectIpv4Address(const in_addr a, int16_t b) { in selectIpv4Address() function in android::net::ClatdControllerTest
84 return ClatdController::selectIpv4Address(a, b); in selectIpv4Address()
98 EXPECT_EQ(INADDR_NONE, selectIpv4Address(addr, 29)); in TEST_F()
99 EXPECT_EQ(INADDR_NONE, selectIpv4Address(addr, 16)); in TEST_F()
103 EXPECT_EQ(inet_addr(kIPv4LocalAddr), selectIpv4Address(addr, 29)); in TEST_F()
104 EXPECT_EQ(inet_addr(kIPv4LocalAddr), selectIpv4Address(addr, 20)); in TEST_F()
105 EXPECT_EQ(INADDR_NONE, selectIpv4Address(addr, 15)); in TEST_F()
108 EXPECT_EQ(inet_addr(kIPv4LocalAddr), selectIpv4Address(addr, 32)); in TEST_F()
109 EXPECT_EQ(INADDR_NONE, selectIpv4Address(addr, 33)); in TEST_F()
113 EXPECT_EQ(inet_addr("192.0.0.6"), selectIpv4Address(addr, 29)); in TEST_F()
117 EXPECT_EQ(inet_addr("192.0.0.2"), selectIpv4Address(addr, 29)); in TEST_F()
118 EXPECT_EQ(INADDR_NONE, selectIpv4Address(addr, 30)); in TEST_F()
122 EXPECT_EQ(INADDR_NONE, selectIpv4Address(addr, 29)); in TEST_F()
123 EXPECT_EQ(inet_addr("192.0.0.10"), selectIpv4Address(addr, 24)); in TEST_F()
129 EXPECT_EQ(inet_addr("8.8.8.8"), selectIpv4Address(addr, 29)); in TEST_F()
132 EXPECT_EQ(inet_addr("127.0.0.2"), selectIpv4Address(addr, 29)); in TEST_F()