summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-12-13 23:49:48 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-17 20:13:22 +0100
commit9592b7f0e6cb6d9bc88afe11c64665c45b5bbeed (patch)
tree40d0886d22d3c25cbc987fd0cbe75fab0257ae40 /test
parentf423e80a1832644be0a4ccb5ea999be324cb344f (diff)
Bv2.1 7.2.1: Check total size of all timed text fonts is not larger than 10MB.
I'm not sure if this is what Bv2.1 means, but hopefully it's close enough.
Diffstat (limited to 'test')
-rw-r--r--test/verify_test.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/verify_test.cc b/test/verify_test.cc
index 74fd81e8..e468f286 100644
--- a/test/verify_test.cc
+++ b/test/verify_test.cc
@@ -1271,9 +1271,13 @@ verify_timed_text_asset_too_large (string name)
vector<boost::filesystem::path> dirs;
dirs.push_back (dir);
list<dcp::VerificationNote> notes = dcp::verify (dirs, &stage, &progress, xsd_test);
- BOOST_REQUIRE_EQUAL (notes.size(), 1U);
- BOOST_CHECK_EQUAL (notes.front().type(), dcp::VerificationNote::VERIFY_BV21_ERROR);
- BOOST_CHECK_EQUAL (notes.front().code(), dcp::VerificationNote::TIMED_TEXT_ASSET_TOO_LARGE_IN_BYTES);
+ BOOST_REQUIRE_EQUAL (notes.size(), 2U);
+ list<dcp::VerificationNote>::const_iterator i = notes.begin();
+ BOOST_CHECK_EQUAL (i->type(), dcp::VerificationNote::VERIFY_BV21_ERROR);
+ BOOST_CHECK_EQUAL (i->code(), dcp::VerificationNote::TIMED_TEXT_ASSET_TOO_LARGE_IN_BYTES);
+ ++i;
+ BOOST_CHECK_EQUAL (i->type(), dcp::VerificationNote::VERIFY_BV21_ERROR);
+ BOOST_CHECK_EQUAL (i->code(), dcp::VerificationNote::TIMED_TEXT_FONTS_TOO_LARGE_IN_BYTES);
}