webm_parser: Enable usage of werror.

Mass warning clean up. Mainly:
- Explicit casts of numeric literals to avoid signed/unsigned compare
  warnings.
- Commenting out of unused function arg names.

Change-Id: I0e70393a5743ae984035d43712c724d4ccd12f9d
This commit is contained in:
Tom Finegan
2016-08-08 14:47:42 -07:00
parent e1fe7627c8
commit d518128266
39 changed files with 346 additions and 324 deletions

View File

@@ -33,20 +33,20 @@ TEST_F(VarIntParserTest, EarlyEndOfFile) {
TEST_F(VarIntParserTest, ValidValue) {
SetReaderData({0x80});
ParseAndVerify();
EXPECT_EQ(0, parser_.value());
EXPECT_EQ(static_cast<std::uint64_t>(0), parser_.value());
EXPECT_EQ(1, parser_.encoded_length());
ResetParser();
SetReaderData({0x01, 0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC, 0xDE});
ParseAndVerify();
EXPECT_EQ(0x123456789ABCDE, parser_.value());
EXPECT_EQ(static_cast<std::uint64_t>(0x123456789ABCDE), parser_.value());
EXPECT_EQ(8, parser_.encoded_length());
}
TEST_F(VarIntParserTest, IncrementalParse) {
SetReaderData({0x11, 0x23, 0x45, 0x67});
IncrementalParseAndVerify();
EXPECT_EQ(0x01234567, parser_.value());
EXPECT_EQ(static_cast<std::uint64_t>(0x01234567), parser_.value());
EXPECT_EQ(4, parser_.encoded_length());
}