summaryrefslogtreecommitdiff
path: root/test/combine_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-12-26 00:29:45 +0100
committerCarl Hetherington <cth@carlh.net>2024-04-15 10:59:34 +0200
commit482a757103731501b22836b8c669d572ae3ab769 (patch)
tree4e90bd17d7bd76ebb77c4bcb7d99e6f543fe57ed /test/combine_test.cc
parent45e3e3879e550b026b53a2bf0b5ae94a6b039db5 (diff)
Add OK note when all or nothing is encrypted.
Diffstat (limited to 'test/combine_test.cc')
-rw-r--r--test/combine_test.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/combine_test.cc b/test/combine_test.cc
index eb43d8a3..a5f6a57f 100644
--- a/test/combine_test.cc
+++ b/test/combine_test.cc
@@ -90,7 +90,9 @@ check_no_errors (boost::filesystem::path path)
auto notes = dcp::verify(directories, {}, &stage, &progress, {}, xsd_test).notes;
vector<dcp::VerificationNote> filtered_notes;
std::copy_if (notes.begin(), notes.end(), std::back_inserter(filtered_notes), [](dcp::VerificationNote const& i) {
- return i.code() != dcp::VerificationNote::Code::INVALID_STANDARD && i.code() != dcp::VerificationNote::Code::INVALID_SUBTITLE_DURATION;
+ return i.type() != dcp::VerificationNote::Type::OK &&
+ i.code() != dcp::VerificationNote::Code::INVALID_STANDARD &&
+ i.code() != dcp::VerificationNote::Code::INVALID_SUBTITLE_DURATION;
});
dump_notes (filtered_notes);
BOOST_CHECK (filtered_notes.empty());
@@ -478,7 +480,9 @@ BOOST_AUTO_TEST_CASE(combine_multi_reel_subtitles)
auto notes = dcp::verify({out}, {}, &stage, &progress, {}, xsd_test).notes;
vector<dcp::VerificationNote> filtered_notes;
std::copy_if(notes.begin(), notes.end(), std::back_inserter(filtered_notes), [](dcp::VerificationNote const& i) {
- return i.code() != dcp::VerificationNote::Code::INVALID_STANDARD && i.code() != dcp::VerificationNote::Code::MISMATCHED_PKL_ANNOTATION_TEXT_WITH_CPL;
+ return i.type() != dcp::VerificationNote::Type::OK &&
+ i.code() != dcp::VerificationNote::Code::INVALID_STANDARD &&
+ i.code() != dcp::VerificationNote::Code::MISMATCHED_PKL_ANNOTATION_TEXT_WITH_CPL;
});
dump_notes(filtered_notes);
BOOST_CHECK(filtered_notes.empty());