X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fremake_id_test.cc;h=8f8ab820b1bce51c6116b8c3602ac0cbaa3f703f;hb=4f09ec8b35c5e4c32d17b340c6840699c85f280a;hp=e7e9c67b2dc3758ef015ce870115637c4bcec7aa;hpb=d7ac100c0eb1b5efdcfbec59be870fd869252840;p=dcpomatic.git diff --git a/test/remake_id_test.cc b/test/remake_id_test.cc index e7e9c67b2..8f8ab820b 100644 --- a/test/remake_id_test.cc +++ b/test/remake_id_test.cc @@ -32,9 +32,9 @@ using std::string; using std::vector; -using boost::shared_ptr; +using std::shared_ptr; using boost::optional; -using boost::dynamic_pointer_cast; +using std::dynamic_pointer_cast; /** Check for bug #1126 whereby making a new DCP using the same video asset as an old one * corrupts the old one. @@ -43,7 +43,7 @@ BOOST_AUTO_TEST_CASE (remake_id_test1) { /* Make a DCP */ shared_ptr film = new_test_film2 ("remake_id_test1_1"); - shared_ptr content = content_factory(film, "test/data/flat_red.png").front(); + shared_ptr content = content_factory("test/data/flat_red.png").front(); film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs ()); film->make_dcp (); @@ -67,7 +67,7 @@ BOOST_AUTO_TEST_CASE (remake_id_test2) { /* Make a DCP */ shared_ptr film = new_test_film2 ("remake_id_test2_1"); - shared_ptr content = content_factory(film, "test/data/flat_red.png").front(); + shared_ptr content = content_factory("test/data/flat_red.png").front(); film->examine_and_add_content (content); film->set_encrypted (true); BOOST_REQUIRE (!wait_for_jobs ()); @@ -91,18 +91,18 @@ BOOST_AUTO_TEST_CASE (remake_id_test2) /* Make a DKDM */ dcp::EncryptedKDM kdm = film->make_kdm ( Config::instance()->decryption_chain()->leaf(), - vector(), + vector(), *cpl, - dcp::LocalTime ("2012-01-01T01:00:00+00:00"), - dcp::LocalTime ("2112-01-01T01:00:00+00:00"), - dcp::MODIFIED_TRANSITIONAL_1, + dcp::LocalTime ("2030-01-01T01:00:00+00:00"), + dcp::LocalTime ("2031-01-01T01:00:00+00:00"), + dcp::Formulation::MODIFIED_TRANSITIONAL_1, true, 0 ); /* Import the DCP into a new film */ shared_ptr film2 = new_test_film2("remake_id_test2_2"); - shared_ptr dcp_content(new DCPContent(film2, film->dir(film->dcp_name()))); + shared_ptr dcp_content(new DCPContent(film->dir(film->dcp_name()))); film2->examine_and_add_content(dcp_content); BOOST_REQUIRE(!wait_for_jobs()); dcp_content->add_kdm(kdm);