Definition at line 127 of file IPAddressTest.cpp.
void IPAddressTest::ExpectIsValid |
( |
const IPAddress & |
addr | ) |
|
|
inline |
Definition at line 128 of file IPAddressTest.cpp.
References AddressData::address, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, AddressData::parseAddress4(), AddressData::parseAddress6(), and AddressData::version.
134 EXPECT_EQ(0, memcmp(&v4addr,
addr.asV4().toByteArray().data(), 4));
139 EXPECT_EQ(0, memcmp(&v6addr,
addr.asV6().toByteArray().data(), 16));
static in6_addr parseAddress6(const std::string &src)
#define EXPECT_EQ(val1, val2)
static in_addr parseAddress4(const std::string &src)
#define EXPECT_TRUE(condition)
#define EXPECT_FALSE(condition)
ThreadPoolListHook * addr
The documentation for this struct was generated from the following file: