From dd9be86db6cde0afa5da0d1d1ac43b42e05dca26 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 4 Jan 2021 21:16:53 +0100 Subject: std::shared_ptr --- test/dcp_decoder_test.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/dcp_decoder_test.cc') diff --git a/test/dcp_decoder_test.cc b/test/dcp_decoder_test.cc index 231a99da2..0cd972249 100644 --- a/test/dcp_decoder_test.cc +++ b/test/dcp_decoder_test.cc @@ -39,7 +39,7 @@ using std::list; using std::string; using std::vector; -using boost::shared_ptr; +using std::shared_ptr; /* Check that DCPDecoder reuses old data when it should */ BOOST_AUTO_TEST_CASE (check_reuse_old_data_test) @@ -91,12 +91,12 @@ BOOST_AUTO_TEST_CASE (check_reuse_old_data_test) BOOST_REQUIRE (!wait_for_jobs()); shared_ptr player (new Player(test)); - shared_ptr decoder = boost::dynamic_pointer_cast(player->_pieces.front()->decoder); + shared_ptr decoder = std::dynamic_pointer_cast(player->_pieces.front()->decoder); BOOST_REQUIRE (decoder); list > reels = decoder->reels(); ov_content->set_position (test, dcpomatic::DCPTime(96000)); - decoder = boost::dynamic_pointer_cast(player->_pieces.front()->decoder); + decoder = std::dynamic_pointer_cast(player->_pieces.front()->decoder); BOOST_REQUIRE (decoder); BOOST_REQUIRE (reels == decoder->reels()); @@ -109,14 +109,14 @@ BOOST_AUTO_TEST_CASE (check_reuse_old_data_test) BOOST_REQUIRE (!wait_for_jobs()); player.reset (new Player(test)); - decoder = boost::dynamic_pointer_cast(player->_pieces.front()->decoder); + decoder = std::dynamic_pointer_cast(player->_pieces.front()->decoder); BOOST_REQUIRE (decoder); reels = decoder->reels(); vf_content->add_ov (ov->dir(ov->dcp_name(false))); JobManager::instance()->add (shared_ptr(new ExamineContentJob(test, vf_content))); BOOST_REQUIRE (!wait_for_jobs()); - decoder = boost::dynamic_pointer_cast(player->_pieces.front()->decoder); + decoder = std::dynamic_pointer_cast(player->_pieces.front()->decoder); BOOST_REQUIRE (decoder); BOOST_REQUIRE (reels != decoder->reels()); @@ -127,14 +127,14 @@ BOOST_AUTO_TEST_CASE (check_reuse_old_data_test) BOOST_REQUIRE (!wait_for_jobs()); player.reset (new Player(test)); - decoder = boost::dynamic_pointer_cast(player->_pieces.front()->decoder); + decoder = std::dynamic_pointer_cast(player->_pieces.front()->decoder); BOOST_REQUIRE (decoder); reels = decoder->reels(); encrypted_content->add_kdm (kdm); JobManager::instance()->add (shared_ptr(new ExamineContentJob(test, encrypted_content))); BOOST_REQUIRE (!wait_for_jobs()); - decoder = boost::dynamic_pointer_cast(player->_pieces.front()->decoder); + decoder = std::dynamic_pointer_cast(player->_pieces.front()->decoder); BOOST_REQUIRE (decoder); BOOST_REQUIRE (reels != decoder->reels()); } -- cgit v1.2.3