|
proxygen
|
#include <folly/MacAddress.h>#include <folly/Format.h>#include <folly/IPAddressV6.h>#include <folly/portability/GTest.h>Go to the source code of this file.
Functions | |
| void | testMAC (const std::string &str, uint64_t expectedHBO) |
| TEST (MacAddress, parse) | |
| void | testFromBinary (const char *str, uint64_t expectedHBO) |
| TEST (MacAddress, fromBinary) | |
| TEST (MacAddress, toString) | |
| TEST (MacAddress, attributes) | |
| TEST (MacAddress, createMulticast) | |
| void | testCmp (const char *str1, const char *str2) |
| TEST (MacAddress, ordering) | |
| TEST (MacAddress, hash) | |
| TEST | ( | MacAddress | , |
| parse | |||
| ) |
Definition at line 54 of file MacAddressTest.cpp.
References EXPECT_THROW, and testMAC().
| TEST | ( | MacAddress | , |
| fromBinary | |||
| ) |
Definition at line 83 of file MacAddressTest.cpp.
References folly::empty(), EXPECT_THROW, and testFromBinary().
| TEST | ( | MacAddress | , |
| toString | |||
| ) |
Definition at line 96 of file MacAddressTest.cpp.
References EXPECT_EQ, and fizz::toString().
| TEST | ( | MacAddress | , |
| attributes | |||
| ) |
Definition at line 104 of file MacAddressTest.cpp.
References EXPECT_FALSE, and EXPECT_TRUE.
| TEST | ( | MacAddress | , |
| createMulticast | |||
| ) |
Definition at line 133 of file MacAddressTest.cpp.
References EXPECT_EQ.
| TEST | ( | MacAddress | , |
| ordering | |||
| ) |
| TEST | ( | MacAddress | , |
| hash | |||
| ) |
Definition at line 171 of file MacAddressTest.cpp.
References EXPECT_EQ, and EXPECT_NE.
| void testCmp | ( | const char * | str1, |
| const char * | str2 | ||
| ) |
Definition at line 142 of file MacAddressTest.cpp.
References folly::copy(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, SCOPED_TRACE, and folly::sformat().
Referenced by TEST().
| void testFromBinary | ( | const char * | str, |
| uint64_t | expectedHBO | ||
| ) |
Definition at line 76 of file MacAddressTest.cpp.
References EXPECT_EQ, and SCOPED_TRACE.
Referenced by TEST().
| void testMAC | ( | const std::string & | str, |
| uint64_t | expectedHBO | ||
| ) |
Definition at line 26 of file MacAddressTest.cpp.
References addr, folly::Endian::big(), folly::MacAddress::bytes(), EXPECT_EQ, SCOPED_TRACE, folly::MacAddress::u64HBO(), folly::MacAddress::u64NBO(), uint64_t, and uint8_t.
Referenced by TEST().