• Home
  • Raw
  • Download

Lines Matching refs:forString

152 TEST(IPAddressTest, forString) {  in TEST()  argument
155 EXPECT_FALSE(IPAddress::forString("not_an_ip", &ip)); in TEST()
156 EXPECT_FALSE(IPAddress::forString("not_an_ip", nullptr)); in TEST()
157 EXPECT_EQ(IPAddress(), IPAddress::forString("not_an_ip")); in TEST()
159 EXPECT_EQ(IPAddress(IPV4_ANY), IPAddress::forString("0.0.0.0")); in TEST()
160 EXPECT_EQ(IPAddress(IPV4_ONES), IPAddress::forString("255.255.255.255")); in TEST()
161 EXPECT_EQ(IPAddress(IPV4_LOOPBACK), IPAddress::forString("127.0.0.1")); in TEST()
163 EXPECT_EQ(IPAddress(IPV6_ANY), IPAddress::forString("::")); in TEST()
164 EXPECT_EQ(IPAddress(IPV6_ANY), IPAddress::forString("::0")); in TEST()
165 EXPECT_EQ(IPAddress(IPV6_ANY), IPAddress::forString("0::")); in TEST()
166 EXPECT_EQ(IPAddress(IPV6_LOOPBACK), IPAddress::forString("::1")); in TEST()
167 EXPECT_EQ(IPAddress(IPV6_LOOPBACK), IPAddress::forString("0::1")); in TEST()
168 EXPECT_EQ(IPAddress(FE80_1), IPAddress::forString("fe80::1")); in TEST()
169 EXPECT_EQ(IPAddress(FE80_1, 22), IPAddress::forString("fe80::1%22")); in TEST()
171 EXPECT_EQ(IPAddress(FE80_1, 1), IPAddress::forString("fe80::1%lo")); in TEST()
388 EXPECT_TRUE(IPAddress::forString(expectation.ip, &ip)) in TEST()
392 EXPECT_TRUE(IPAddress::forString(expectation.ipTruncated, &ipTruncated)) in TEST()
426 {LT, IPPrefix(IPAddress(IPV4_ANY), 0), IPPrefix(IPAddress::forString("0.0.0.1"))}, in TEST()
427 {LT, IPPrefix(IPAddress(IPV4_ANY), 1), IPPrefix(IPAddress::forString("0.0.0.1"))}, in TEST()
428 {LT, IPPrefix(IPAddress(IPV4_ANY), 24), IPPrefix(IPAddress::forString("0.0.0.1"))}, in TEST()