diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-12-29 01:47:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-12-29 01:47:32 +0100 |
| commit | ce73eaf7875a9a3326afcd839ad85eb95879c160 (patch) | |
| tree | c4cff45a7bada9aebf48b6e51c5dffe086045e20 /test/recover_test.cc | |
| parent | 0f772d68ef7fb32002538ce9ca7c9764d0d7135b (diff) | |
Cleanup: test tidying.
Diffstat (limited to 'test/recover_test.cc')
| -rw-r--r-- | test/recover_test.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/recover_test.cc b/test/recover_test.cc index b36dad05a..0288da188 100644 --- a/test/recover_test.cc +++ b/test/recover_test.cc @@ -40,7 +40,6 @@ using std::cout; using std::make_shared; -using std::shared_ptr; using std::string; #if BOOST_VERSION >= 106100 using namespace boost::placeholders; @@ -58,13 +57,13 @@ note (dcp::NoteType t, string n) BOOST_AUTO_TEST_CASE (recover_test_2d) { - shared_ptr<Film> film = new_test_film ("recover_test_2d"); + auto film = new_test_film("recover_test_2d"); film->set_interop (false); film->set_dcp_content_type (DCPContentType::from_isdcf_name ("FTR")); film->set_container (Ratio::from_id ("185")); film->set_name ("recover_test"); - shared_ptr<FFmpegContent> content (new FFmpegContent("test/data/count300bd24.m2ts")); + auto content = make_shared<FFmpegContent>("test/data/count300bd24.m2ts"); film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs()); @@ -85,8 +84,8 @@ BOOST_AUTO_TEST_CASE (recover_test_2d) make_and_verify_dcp (film, { dcp::VerificationNote::Code::MISSING_FFEC_IN_FEATURE, dcp::VerificationNote::Code::MISSING_FFMC_IN_FEATURE }); - shared_ptr<dcp::MonoPictureAsset> A (new dcp::MonoPictureAsset ("build/test/recover_test_2d/original.mxf")); - shared_ptr<dcp::MonoPictureAsset> B (new dcp::MonoPictureAsset (video)); + auto A = make_shared<dcp::MonoPictureAsset>("build/test/recover_test_2d/original.mxf"); + auto B = make_shared<dcp::MonoPictureAsset>(video); dcp::EqualityOptions eq; BOOST_CHECK (A->equals (B, eq, boost::bind (¬e, _1, _2))); |
