Rename SubRip -> TextSubtitle.
[dcpomatic.git] / test / xml_subtitle_test.cc
index 561b1021fc6013462f1268364b3f0bac7ecf0bb2..554591b9213b20be703b9050003ef20f8087dcb7 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2014 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
  */
 
 #include <boost/test/unit_test.hpp>
-#include "lib/subrip_content.h"
+#include "lib/text_subtitle_content.h"
 #include "lib/film.h"
 #include "lib/ratio.h"
 #include "lib/dcp_content_type.h"
 #include "test.h"
+#include <iostream>
 
 using std::cout;
 using boost::shared_ptr;
@@ -38,13 +39,14 @@ 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");
-       film->set_burn_subtitles (false);
-       shared_ptr<SubRipContent> content (new SubRipContent (film, "test/data/subrip2.srt"));
+       shared_ptr<TextSubtitleContent> content (new TextSubtitleContent (film, "test/data/subrip2.srt"));
        content->set_use_subtitles (true);
+       content->set_burn_subtitles (false);
        film->examine_and_add_content (content);
        wait_for_jobs ();
        film->make_dcp ();
        wait_for_jobs ();
 
+       /* Should be blank video with MXF subtitles */
        check_dcp ("test/data/xml_subtitle_test", film->dir (film->dcp_name ()));
 }