mirror of
https://github.com/mfontanini/libtins
synced 2026-01-26 20:01:35 +01:00
Modified some protocols' internal type names.
This commit is contained in:
@@ -21,7 +21,7 @@ public:
|
||||
static const IPv4Address addr;
|
||||
|
||||
void test_equals(const DHCP &dhcp1, const DHCP &dhcp2);
|
||||
void test_option(const DHCP &dhcp, DHCP::Options opt, uint32_t len = 0, uint8_t *value = 0);
|
||||
void test_option(const DHCP &dhcp, DHCP::OptionTypes opt, uint32_t len = 0, uint8_t *value = 0);
|
||||
};
|
||||
|
||||
const BootP::chaddr_type DHCPTest::chaddr("16:ab:54:12:fa:ca:56:7f:1b:65:11:fa:da:ab:19:18");
|
||||
@@ -167,8 +167,8 @@ TEST_F(DHCPTest, File) {
|
||||
EXPECT_TRUE(memcmp(dhcp.file(), file, 128) == 0);
|
||||
}
|
||||
|
||||
void DHCPTest::test_option(const DHCP &dhcp, DHCP::Options opt, uint32_t len, uint8_t *value) {
|
||||
const DHCP::dhcp_option *option = dhcp.search_option(opt);
|
||||
void DHCPTest::test_option(const DHCP &dhcp, DHCP::OptionTypes opt, uint32_t len, uint8_t *value) {
|
||||
const DHCP::option *option = dhcp.search_option(opt);
|
||||
ASSERT_TRUE(option != 0);
|
||||
EXPECT_EQ(option->option(), opt);
|
||||
ASSERT_EQ(option->data_size(), len);
|
||||
|
||||
Reference in New Issue
Block a user