Searched refs:address_string (Results 1 – 9 of 9) sorted by relevance
198 bool IPAddress::SetAddressFromString(const string& address_string) { in SetAddressFromString() argument206 if (inet_pton(family_, address_string.c_str(), address.GetData()) <= 0) { in SetAddressFromString()213 bool IPAddress::SetAddressAndPrefixFromString(const string& address_string) { in SetAddressAndPrefixFromString() argument215 address_string, "/", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); in SetAddressAndPrefixFromString()217 LOG(ERROR) << "Cannot split address " << address_string; in SetAddressAndPrefixFromString()238 bool IPAddress::IntoString(string* address_string) const { in IntoString()245 *address_string = address_buf; in IntoString()
110 bool SetAddressFromString(const std::string& address_string);112 bool SetAddressAndPrefixFromString(const std::string& address_string);120 bool IntoString(std::string* address_string) const;
63 string address_string; in TestAddress() local64 EXPECT_TRUE(good_addr.IntoString(&address_string)); in TestAddress()65 EXPECT_EQ(good_string, address_string); in TestAddress()87 EXPECT_FALSE(bad_addr.IntoString(&address_string)); in TestAddress()107 EXPECT_TRUE(from_sockaddr.IntoString(&address_string)); in TestAddress()108 EXPECT_EQ(good_string, address_string); in TestAddress()
40 IPAddress StringToIPv4Address(const string& address_string) { in StringToIPv4Address() argument42 EXPECT_TRUE(ip_address.SetAddressFromString(address_string)); in StringToIPv4Address()
60 IPAddress StringToIPv4Address(const string& address_string) { in StringToIPv4Address() argument62 EXPECT_TRUE(ip_address.SetAddressFromString(address_string)); in StringToIPv4Address()66 IPAddress StringToIPv6Address(const string& address_string) { in StringToIPv6Address() argument68 EXPECT_TRUE(ip_address.SetAddressFromString(address_string)); in StringToIPv6Address()
76 IPAddress StringToIPv4Address(const string& address_string) { in StringToIPv4Address() argument78 EXPECT_TRUE(ip_address.SetAddressFromString(address_string)); in StringToIPv4Address()82 IPAddress StringToIPv6Address(const string& address_string) { in StringToIPv6Address() argument84 EXPECT_TRUE(ip_address.SetAddressFromString(address_string)); in StringToIPv6Address()
194 IPAddress StringToIPv4Address(const string& address_string) { in StringToIPv4Address() argument196 EXPECT_TRUE(ip_address.SetAddressFromString(address_string)); in StringToIPv4Address()
351 const std::string& address_string);
1956 const string& address_string) { in MakeHardwareAddressFromString() argument1958 base::RemoveChars(address_string, ":", &address_nosep); in MakeHardwareAddressFromString()