Merge changes I7e467d31,Ia8633cab

* changes:
  Add test for projection parse failures.
  Add test for primary chromaticity parse failures.
This commit is contained in:
Tom Finegan 2017-04-28 22:42:03 +00:00 committed by Gerrit Code Review
commit a65b9e0287
3 changed files with 12 additions and 0 deletions

View File

@ -803,6 +803,18 @@ TEST_F(ParserTest, InvalidBlockGroupBlockEndsBlockGroup) {
segment_->GetFirst()->GetNext(block_entry, block_entry));
}
TEST_F(ParserTest, InvalidProjectionFloatOverflow) {
ASSERT_NO_FATAL_FAILURE(
CreateSegmentNoHeaderChecks("invalid/projection_float_overflow.webm"));
EXPECT_EQ(mkvparser::E_FILE_FORMAT_INVALID, segment_->Load());
}
TEST_F(ParserTest, InvalidPrimaryChromaticityParseFail) {
ASSERT_NO_FATAL_FAILURE(CreateSegmentNoHeaderChecks(
"invalid/primarychromaticity_fieldtoolarge.webm"));
EXPECT_EQ(mkvparser::E_FILE_FORMAT_INVALID, segment_->Load());
}
} // namespace test
int main(int argc, char* argv[]) {

Binary file not shown.

Binary file not shown.