summaryrefslogtreecommitdiff
path: root/test/verify_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-12-06 10:47:04 +0100
committerCarl Hetherington <cth@carlh.net>2019-12-22 01:21:00 +0100
commit30dfa051113792305f9704d5a76ffaf57c21063d (patch)
tree4a4055b40bfb64ebf5b7509ef81a104db4a52e46 /test/verify_test.cc
parent9cb23adda9ebe6a76992b68db78ccb638348dac1 (diff)
Use VerificationNote for non-fatal errors in DCP::read.
Diffstat (limited to 'test/verify_test.cc')
-rw-r--r--test/verify_test.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/test/verify_test.cc b/test/verify_test.cc
index 98f37635..9b028729 100644
--- a/test/verify_test.cc
+++ b/test/verify_test.cc
@@ -233,9 +233,7 @@ BOOST_AUTO_TEST_CASE (verify_test6)
BOOST_REQUIRE_EQUAL (notes.size(), 1);
BOOST_CHECK_EQUAL (notes.front().type(), dcp::VerificationNote::VERIFY_ERROR);
- BOOST_CHECK_EQUAL (notes.front().code(), dcp::VerificationNote::GENERAL_READ);
- BOOST_REQUIRE (static_cast<bool>(notes.front().note()));
- BOOST_REQUIRE_EQUAL (notes.front().note().get(), "Missing asset video.mxf");
+ BOOST_CHECK_EQUAL (notes.front().code(), dcp::VerificationNote::Code::MISSING_ASSET);
}
/* Empty asset filename in ASSETMAP */
@@ -253,9 +251,7 @@ BOOST_AUTO_TEST_CASE (verify_test7)
list<dcp::VerificationNote> notes = dcp::verify (directories, &stage, &progress);
BOOST_REQUIRE_EQUAL (notes.size(), 1);
- BOOST_CHECK_EQUAL (notes.front().type(), dcp::VerificationNote::VERIFY_ERROR);
- BOOST_CHECK_EQUAL (notes.front().code(), dcp::VerificationNote::GENERAL_READ);
- BOOST_REQUIRE (static_cast<bool>(notes.front().note()));
- BOOST_REQUIRE_EQUAL (notes.front().note().get(), "Asset map path is empty for asset 1fab8bb0-cfaf-4225-ad6d-01768bc10470");
+ BOOST_CHECK_EQUAL (notes.front().type(), dcp::VerificationNote::VERIFY_WARNING);
+ BOOST_CHECK_EQUAL (notes.front().code(), dcp::VerificationNote::Code::EMPTY_ASSET_PATH);
}