summaryrefslogtreecommitdiff
path: root/test/dcp_decoder_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-07-15 03:36:59 +0200
committerCarl Hetherington <cth@carlh.net>2025-07-15 18:03:57 +0200
commit21415bdb69a99c4fc36cf4b5e5160a171bb1cad4 (patch)
tree46265de6587585d292ac4c97267327af0c359c1c /test/dcp_decoder_test.cc
parent6207d271effad4e691a5155ccdad083e03b010bc (diff)
Change Film::examine_and_add_content to take a vector of content.
Diffstat (limited to 'test/dcp_decoder_test.cc')
-rw-r--r--test/dcp_decoder_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/dcp_decoder_test.cc b/test/dcp_decoder_test.cc
index 5e31856eb..cf9950aae 100644
--- a/test/dcp_decoder_test.cc
+++ b/test/dcp_decoder_test.cc
@@ -62,7 +62,7 @@ BOOST_AUTO_TEST_CASE (check_reuse_old_data_test)
make_and_verify_dcp(vf, {dcp::VerificationNote::Code::EXTERNAL_ASSET}, false);
auto encrypted = new_test_film("check_reuse_old_data_decrypted");
- encrypted->examine_and_add_content (content_factory("test/data/flat_red.png")[0]);
+ encrypted->examine_and_add_content(content_factory("test/data/flat_red.png"));
BOOST_REQUIRE (!wait_for_jobs());
encrypted->set_encrypted (true);
make_and_verify_dcp (encrypted);
@@ -81,7 +81,7 @@ BOOST_AUTO_TEST_CASE (check_reuse_old_data_test)
*/
auto test = new_test_film("check_reuse_old_data_test1");
ov_content = make_shared<DCPContent>(ov->dir(ov->dcp_name(false)));
- test->examine_and_add_content (ov_content);
+ test->examine_and_add_content({ov_content});
BOOST_REQUIRE (!wait_for_jobs());
auto player = make_shared<Player>(test, Image::Alignment::COMPACT, false);
@@ -99,7 +99,7 @@ BOOST_AUTO_TEST_CASE (check_reuse_old_data_test)
*/
test = new_test_film("check_reuse_old_data_test2");
auto vf_content = make_shared<DCPContent>(vf->dir(vf->dcp_name(false)));
- test->examine_and_add_content (vf_content);
+ test->examine_and_add_content({vf_content});
BOOST_REQUIRE (!wait_for_jobs());
player = make_shared<Player>(test, Image::Alignment::COMPACT, false);
@@ -117,7 +117,7 @@ BOOST_AUTO_TEST_CASE (check_reuse_old_data_test)
/* Add a KDM to an encrypted DCP and check that the _reels did not get reused */
test = new_test_film("check_reuse_old_data_test3");
auto encrypted_content = make_shared<DCPContent>(encrypted->dir(encrypted->dcp_name(false)));
- test->examine_and_add_content (encrypted_content);
+ test->examine_and_add_content({encrypted_content});
BOOST_REQUIRE (!wait_for_jobs());
player = make_shared<Player>(test, Image::Alignment::COMPACT, false);