X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fsubtitle_charset_test.cc;h=67bde8927be39aded93288208a24f9552ad177a9;hb=5d937606cf96d163be98920fa5619114a28eec9d;hp=828411c9b5236d9fb1995980a45334328f0c80f7;hpb=65cc06076b46cbd27ccfcf7387894358e2c8ab1e;p=dcpomatic.git diff --git a/test/subtitle_charset_test.cc b/test/subtitle_charset_test.cc index 828411c9b..67bde8927 100644 --- a/test/subtitle_charset_test.cc +++ b/test/subtitle_charset_test.cc @@ -22,8 +22,8 @@ #include "lib/content.h" #include "lib/film.h" #include "lib/content_factory.h" -#include "lib/text_subtitle.h" -#include "lib/text_text_content.h" +#include "lib/string_text_file.h" +#include "lib/string_text_file_content.h" #include using boost::shared_ptr; @@ -33,7 +33,7 @@ using boost::dynamic_pointer_cast; BOOST_AUTO_TEST_CASE (subtitle_charset_test1) { shared_ptr film = new_test_film2 ("subtitle_charset_test1"); - shared_ptr content = content_factory (film, private_data / "PADDINGTON soustitresVFdef.srt").front (); + shared_ptr content = content_factory (TestPaths::private_data() / "PADDINGTON soustitresVFdef.srt").front(); film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs ()); } @@ -42,11 +42,11 @@ BOOST_AUTO_TEST_CASE (subtitle_charset_test1) BOOST_AUTO_TEST_CASE (subtitle_charset_test2) { shared_ptr film = new_test_film2 ("subtitle_charset_test2"); - shared_ptr content = content_factory (film, "test/data/osx.srt").front (); + shared_ptr content = content_factory ("test/data/osx.srt").front(); film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs ()); - shared_ptr ts = dynamic_pointer_cast (content); + shared_ptr ts = dynamic_pointer_cast (content); BOOST_REQUIRE (ts); /* Make sure we got the subtitle data from the file */ - BOOST_REQUIRE_EQUAL (content->full_length().get(), 6052032); + BOOST_REQUIRE_EQUAL (content->full_length(film).get(), 6052032); }