X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fxml_subtitle_test.cc;fp=test%2Fxml_subtitle_test.cc;h=678f2b8d097cc08c5cb4688759521ae3c6621523;hb=a8a0dfd1b21de6c0facf965ab119833ff6f790bf;hp=408d46b62c3b7269a7b56c35ef585c79108d5638;hpb=e669b562937786bf5b771c927cc03a4074b01be8;p=dcpomatic.git diff --git a/test/xml_subtitle_test.cc b/test/xml_subtitle_test.cc index 408d46b62..678f2b8d0 100644 --- a/test/xml_subtitle_test.cc +++ b/test/xml_subtitle_test.cc @@ -22,19 +22,17 @@ * @brief Test creation of XML DCP subtitles. */ +#include #include "lib/text_subtitle_content.h" #include "lib/film.h" #include "lib/ratio.h" #include "lib/dcp_content_type.h" #include "lib/subtitle_content.h" #include "test.h" -#include -#include #include using std::cout; using boost::shared_ptr; -using boost::make_shared; /** Build a small DCP with no picture and a single subtitle overlaid onto it */ BOOST_AUTO_TEST_CASE (xml_subtitle_test) @@ -43,7 +41,7 @@ BOOST_AUTO_TEST_CASE (xml_subtitle_test) film->set_container (Ratio::from_id ("185")); film->set_dcp_content_type (DCPContentType::from_isdcf_name ("TLR")); film->set_name ("frobozz"); - shared_ptr content = make_shared (film, "test/data/subrip2.srt"); + shared_ptr content (new TextSubtitleContent (film, "test/data/subrip2.srt")); content->subtitle->set_use (true); content->subtitle->set_burn (false); film->examine_and_add_content (content); @@ -64,7 +62,7 @@ BOOST_AUTO_TEST_CASE (xml_subtitle_test2) film->set_name ("frobozz"); film->set_interop (true); film->set_sequence (false); - shared_ptr content = make_shared (film, "test/data/subrip2.srt"); + shared_ptr content (new TextSubtitleContent (film, "test/data/subrip2.srt")); content->subtitle->set_use (true); content->subtitle->set_burn (false); film->examine_and_add_content (content);