Searched refs:forString (Results 1 – 3 of 3) sorted by relevance
/system/netd/libnetdutils/ |
D | InternetAddressesTest.cpp | 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() [all …]
|
D | InternetAddresses.cpp | 58 bool IPAddress::forString(const std::string& repr, IPAddress* ip) { in forString() function in android::netdutils::IPAddress
|
/system/netd/libnetdutils/include/netdutils/ |
D | InternetAddresses.h | 116 static bool forString(const std::string& repr, IPAddress* ip); 117 static IPAddress forString(const std::string& repr) { in forString() function 119 if (!forString(repr, &ip)) return IPAddress(); in forString()
|