diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-12-18 14:23:50 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-12-18 14:23:50 +0100 |
| commit | 9ebbeae21efe950c4f18a9f959a8fe9f0be4e8f4 (patch) | |
| tree | 7dd03bf0d57ff95b94da08b2b095065ef4f923c1 /test | |
| parent | c6df41f00083b4c34d4993c981cdac97b76eeb95 (diff) | |
Move make_dcp() out of Film (#2132).
Diffstat (limited to 'test')
| -rw-r--r-- | test/interrupt_encoder_test.cc | 3 | ||||
| -rw-r--r-- | test/reels_test.cc | 25 | ||||
| -rw-r--r-- | test/test.cc | 3 | ||||
| -rw-r--r-- | test/threed_test.cc | 3 |
4 files changed, 19 insertions, 15 deletions
diff --git a/test/interrupt_encoder_test.cc b/test/interrupt_encoder_test.cc index 5b76e67d3..2e839336d 100644 --- a/test/interrupt_encoder_test.cc +++ b/test/interrupt_encoder_test.cc @@ -31,6 +31,7 @@ #include "lib/ffmpeg_content.h" #include "lib/film.h" #include "lib/job_manager.h" +#include "lib/make_dcp.h" #include "lib/ratio.h" #include "test.h" #include <boost/test/unit_test.hpp> @@ -54,7 +55,7 @@ BOOST_AUTO_TEST_CASE (interrupt_encoder_test) film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs()); - film->make_dcp (TranscodeJob::ChangedBehaviour::IGNORE); + make_dcp (film, TranscodeJob::ChangedBehaviour::IGNORE); dcpomatic_sleep_seconds (10); diff --git a/test/reels_test.cc b/test/reels_test.cc index db974d384..82123b3e1 100644 --- a/test/reels_test.cc +++ b/test/reels_test.cc @@ -25,27 +25,28 @@ */ -#include "lib/film.h" -#include "lib/ratio.h" +#include "lib/content_factory.h" +#include "lib/dcp_content.h" +#include "lib/dcp_content_type.h" #include "lib/ffmpeg_content.h" +#include "lib/film.h" #include "lib/image_content.h" -#include "lib/dcp_content_type.h" -#include "lib/dcp_content.h" -#include "lib/video_content.h" +#include "lib/make_dcp.h" +#include "lib/ratio.h" #include "lib/string_text_file_content.h" -#include "lib/content_factory.h" +#include "lib/video_content.h" #include "test.h" #include <boost/test/unit_test.hpp> #include <iostream> -using std::list; using std::cout; -using std::vector; -using std::string; -using std::shared_ptr; -using std::make_shared; using std::function; +using std::list; +using std::make_shared; +using std::shared_ptr; +using std::string; +using std::vector; using namespace dcpomatic; @@ -564,7 +565,7 @@ BOOST_AUTO_TEST_CASE (reels_should_not_be_short4) BOOST_CHECK (film->reels().front() == dcpomatic::DCPTimePeriod(dcpomatic::DCPTime(), dcpomatic::DCPTime::from_frames(263, 24))); film->write_metadata (); - film->make_dcp (TranscodeJob::ChangedBehaviour::IGNORE); + make_dcp (film, TranscodeJob::ChangedBehaviour::IGNORE); BOOST_REQUIRE (!wait_for_jobs()); vector<boost::filesystem::path> dirs = { film->dir(film->dcp_name(false)) }; diff --git a/test/test.cc b/test/test.cc index 7f8681790..ae1453a9d 100644 --- a/test/test.cc +++ b/test/test.cc @@ -38,6 +38,7 @@ #include "lib/job.h" #include "lib/job_manager.h" #include "lib/log_entry.h" +#include "lib/make_dcp.h" #include "lib/ratio.h" #include "lib/signal_manager.h" #include "lib/util.h" @@ -887,7 +888,7 @@ void make_and_verify_dcp (shared_ptr<Film> film, vector<dcp::VerificationNote::Code> ignore) { film->write_metadata (); - film->make_dcp (TranscodeJob::ChangedBehaviour::IGNORE); + make_dcp (film, TranscodeJob::ChangedBehaviour::IGNORE); BOOST_REQUIRE (!wait_for_jobs()); auto notes = dcp::verify ({film->dir(film->dcp_name())}, &stage, &progress, TestPaths::xsd()); bool ok = true; diff --git a/test/threed_test.cc b/test/threed_test.cc index bceb6700f..8523b5625 100644 --- a/test/threed_test.cc +++ b/test/threed_test.cc @@ -33,6 +33,7 @@ #include "lib/film.h" #include "lib/job.h" #include "lib/job_manager.h" +#include "lib/make_dcp.h" #include "lib/ratio.h" #include "lib/video_content.h" #include "test.h" @@ -186,7 +187,7 @@ BOOST_AUTO_TEST_CASE (threed_test7) c->video->set_length (24); film->set_three_d (true); - film->make_dcp (TranscodeJob::ChangedBehaviour::IGNORE); + make_dcp (film, TranscodeJob::ChangedBehaviour::IGNORE); film->write_metadata (); auto jm = JobManager::instance (); |
