summaryrefslogtreecommitdiff
path: root/test/remake_id_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-07-09 20:41:10 +0200
committerCarl Hetherington <cth@carlh.net>2022-07-11 12:22:11 +0200
commitb1e22dff981fb86ae04b12bb5a064e61030793a8 (patch)
treeffb112f6e3f3311d8669f6a89628bf5f0bc40f2e /test/remake_id_test.cc
parent736d6bf3242a0ba3841cb765e97cf9fee3540460 (diff)
Use a vector rather than a list when returning from content_factory().
Diffstat (limited to 'test/remake_id_test.cc')
-rw-r--r--test/remake_id_test.cc10
1 files changed, 5 insertions, 5 deletions
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<DCPContent>(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<ExamineContentJob>(film2, dcp_content));
BOOST_REQUIRE(!wait_for_jobs());