1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-27 12:14:26 +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

@@ -62,7 +62,7 @@ TEST_F(MPLSTest, ConstructWholePacket) {
TEST_F(MPLSTest, ConstructorFromBuffer) {
MPLS mpls(mpls_layer, sizeof(mpls_layer));
EXPECT_EQ(100704, mpls.label());
EXPECT_EQ(100704U, mpls.label());
EXPECT_EQ(1, mpls.bottom_of_stack());
EXPECT_EQ(1, mpls.ttl());
}
@@ -100,7 +100,7 @@ TEST_F(MPLSTest, SetAllFields) {
mpls.ttl(0xde);
mpls.bottom_of_stack(1);
mpls.label(0xdead8);
EXPECT_EQ(0xdead8, mpls.label());
EXPECT_EQ(0xdead8U, mpls.label());
EXPECT_EQ(1, mpls.bottom_of_stack());
EXPECT_EQ(0xde, mpls.ttl());
}
@@ -108,7 +108,7 @@ TEST_F(MPLSTest, SetAllFields) {
TEST_F(MPLSTest, Label) {
MPLS mpls;
mpls.label(0xdead8);
EXPECT_EQ(0xdead8, mpls.label());
EXPECT_EQ(0xdead8U, mpls.label());
}
TEST_F(MPLSTest, BottomOfStack) {