comparison UnitTestsSources/RestApiTests.cpp @ 1492:9f66a12eb8fc

fix warnings for gcc 5
author jodogne
date Tue, 04 Aug 2015 14:47:35 +0200
parents f967bdf8534e
children b5eb5210af91
comparison
equal deleted inserted replaced
1491:e460341872dc 1492:9f66a12eb8fc
76 } 76 }
77 77
78 TEST(RestApi, ChunkedBuffer) 78 TEST(RestApi, ChunkedBuffer)
79 { 79 {
80 ChunkedBuffer b; 80 ChunkedBuffer b;
81 ASSERT_EQ(0, b.GetNumBytes()); 81 ASSERT_EQ(0u, b.GetNumBytes());
82 82
83 b.AddChunk("hello", 5); 83 b.AddChunk("hello", 5);
84 ASSERT_EQ(5, b.GetNumBytes()); 84 ASSERT_EQ(5u, b.GetNumBytes());
85 85
86 b.AddChunk("world", 5); 86 b.AddChunk("world", 5);
87 ASSERT_EQ(10, b.GetNumBytes()); 87 ASSERT_EQ(10u, b.GetNumBytes());
88 88
89 std::string s; 89 std::string s;
90 b.Flatten(s); 90 b.Flatten(s);
91 ASSERT_EQ("helloworld", s); 91 ASSERT_EQ("helloworld", s);
92 } 92 }