X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fsubtitle_charset_test.cc;h=9247aec4a828150410694c0f1d57ecdd55861b67;hb=5f3a88d3ab1e9c1a13d7e61fc37a0c4cef8df9a5;hp=9c61b83f4d12973356112505b9b03eee929db67e;hpb=df17bbd25da69fc38eb2dcd8b4a2531cf0bab0bc;p=dcpomatic.git diff --git a/test/subtitle_charset_test.cc b/test/subtitle_charset_test.cc index 9c61b83f4..9247aec4a 100644 --- a/test/subtitle_charset_test.cc +++ b/test/subtitle_charset_test.cc @@ -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); 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); }