1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-28 12:44:25 +01:00

Use C++11 mode by default

This commit is contained in:
Matias Fontanini
2016-02-17 21:04:28 -08:00
parent 9ef6f7a612
commit 0e5d7d7ae0
14 changed files with 122 additions and 69 deletions

View File

@@ -64,7 +64,7 @@ TEST_F(ICMPExtensionTest, ExtensionStructureFromBuffer) {
EXPECT_EQ(0, structure.reserved());
EXPECT_EQ(0xc55f, structure.checksum());
const ICMPExtensionsStructure::extensions_type& extensions = structure.extensions();
EXPECT_EQ(1, extensions.size());
EXPECT_EQ(1UL, extensions.size());
const ICMPExtension& ext = *extensions.begin();
const uint8_t payload[] = { 24, 150, 1, 1 };
@@ -107,7 +107,7 @@ TEST_F(ICMPExtensionTest, MPLSExtension) {
PDU::serialization_type buffer = structure.serialize();
ICMPExtensionsStructure new_structure(&buffer[0], buffer.size());
ASSERT_EQ(1, new_structure.extensions().size());
ASSERT_EQ(1UL, new_structure.extensions().size());
MPLS mpls2(*new_structure.extensions().begin());
EXPECT_EQ(mpls1.label(), mpls2.label());
EXPECT_EQ(mpls1.bottom_of_stack(), mpls2.bottom_of_stack());