X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fremake_id_test.cc;h=d2cd54d88a2c875b4016851fea618ac5b142dad8;hb=182b9d2e2feb6545592868606aaf0f0146095481;hp=c4953f98044ca1f1174994dbfa1e0a675e28e844;hpb=ea63ad9560757e56505551db3bf2e1c31be5c76c;p=dcpomatic.git diff --git a/test/remake_id_test.cc b/test/remake_id_test.cc index c4953f980..d2cd54d88 100644 --- a/test/remake_id_test.cc +++ b/test/remake_id_test.cc @@ -46,8 +46,8 @@ using boost::optional; BOOST_AUTO_TEST_CASE (remake_id_test1) { /* Make a DCP */ - auto content = content_factory("test/data/flat_red.png").front(); - auto film = new_test_film2 ("remake_id_test1_1", {content}); + auto content = content_factory("test/data/flat_red.png"); + auto film = new_test_film2 ("remake_id_test1_1", content); make_and_verify_dcp (film); /* Copy the video file */ @@ -67,8 +67,8 @@ BOOST_AUTO_TEST_CASE (remake_id_test1) BOOST_AUTO_TEST_CASE (remake_id_test2) { /* Make a DCP */ - auto content = content_factory("test/data/flat_red.png").front(); - auto film = new_test_film2 ("remake_id_test2_1", {content}); + auto content = content_factory("test/data/flat_red.png"); + auto film = new_test_film2 ("remake_id_test2_1", content); film->set_encrypted (true); make_and_verify_dcp (film); @@ -99,7 +99,7 @@ BOOST_AUTO_TEST_CASE (remake_id_test2) /* Import the DCP into a new film */ auto dcp_content = make_shared(film->dir(film->dcp_name())); - auto film2 = new_test_film2("remake_id_test2_2", {dcp_content}); + auto film2 = new_test_film2("remake_id_test2_2", { dcp_content }); dcp_content->add_kdm(kdm); JobManager::instance()->add(make_shared(film2, dcp_content)); BOOST_REQUIRE(!wait_for_jobs());