1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-27 20:24:26 +01:00

Fix tests compilation warnings on Windows.

This commit is contained in:
Matias Fontanini
2015-05-16 11:08:52 -07:00
parent 325de4abca
commit d4e632f513
41 changed files with 163 additions and 162 deletions

View File

@@ -106,8 +106,8 @@ TEST_F(MatchesResponseTest, DHCP) {
EthernetII discover(dhcp_discover, sizeof(dhcp_discover));
UDP *udp = discover.find_pdu<UDP>();
const RawPDU *raw = discover.find_pdu<RawPDU>();
ASSERT_TRUE(udp);
ASSERT_TRUE(raw);
ASSERT_TRUE(udp != NULL);
ASSERT_TRUE(raw != NULL);
udp->inner_pdu(raw->to<DHCP>());
EXPECT_TRUE(discover.matches_response(dhcp_offer, sizeof(dhcp_offer)));
@@ -223,8 +223,8 @@ TEST_F(MatchesResponseTest, DHCPv6) {
EthernetII pkt(request, sizeof(request));
UDP *udp = pkt.find_pdu<UDP>();
const RawPDU *raw = pkt.find_pdu<RawPDU>();
ASSERT_TRUE(udp);
ASSERT_TRUE(raw);
ASSERT_TRUE(udp != NULL);
ASSERT_TRUE(raw != NULL);
udp->inner_pdu(raw->to<DHCPv6>());
EXPECT_TRUE(pkt.matches_response(reply, sizeof(reply)));