diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-04 21:16:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-07 22:48:29 +0100 |
| commit | dd9be86db6cde0afa5da0d1d1ac43b42e05dca26 (patch) | |
| tree | e56a3f82fb9e1c8602f265bea0d0688d8a018644 /test/dcp_decoder_test.cc | |
| parent | 0d35820cf50d2789752b8776683b26d04642518d (diff) | |
std::shared_ptr
Diffstat (limited to 'test/dcp_decoder_test.cc')
| -rw-r--r-- | test/dcp_decoder_test.cc | 14 |
1 files changed, 7 insertions, 7 deletions
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> player (new Player(test)); - shared_ptr<DCPDecoder> decoder = boost::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder); + shared_ptr<DCPDecoder> decoder = std::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder); BOOST_REQUIRE (decoder); list<shared_ptr<dcp::Reel> > reels = decoder->reels(); ov_content->set_position (test, dcpomatic::DCPTime(96000)); - decoder = boost::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder); + decoder = std::dynamic_pointer_cast<DCPDecoder>(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<DCPDecoder>(player->_pieces.front()->decoder); + decoder = std::dynamic_pointer_cast<DCPDecoder>(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<Job>(new ExamineContentJob(test, vf_content))); BOOST_REQUIRE (!wait_for_jobs()); - decoder = boost::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder); + decoder = std::dynamic_pointer_cast<DCPDecoder>(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<DCPDecoder>(player->_pieces.front()->decoder); + decoder = std::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder); BOOST_REQUIRE (decoder); reels = decoder->reels(); encrypted_content->add_kdm (kdm); JobManager::instance()->add (shared_ptr<Job>(new ExamineContentJob(test, encrypted_content))); BOOST_REQUIRE (!wait_for_jobs()); - decoder = boost::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder); + decoder = std::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder); BOOST_REQUIRE (decoder); BOOST_REQUIRE (reels != decoder->reels()); } |
