summaryrefslogtreecommitdiff
path: root/test/subtitle_charset_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-11-21 01:59:04 +0000
committerCarl Hetherington <cth@carlh.net>2018-11-21 01:59:04 +0000
commit254b3044d72de6b033d7c584f5abd2b9aa70aad5 (patch)
tree8a5c83c1b2dea690672663dedb2f3aa50f4473dc /test/subtitle_charset_test.cc
parentc31b9542c58ae1cbfae7ec3ba4911359fd010ba2 (diff)
Take Film pointer out of Content.
Diffstat (limited to 'test/subtitle_charset_test.cc')
-rw-r--r--test/subtitle_charset_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/subtitle_charset_test.cc b/test/subtitle_charset_test.cc
index 9c61b83f4..29dabe4bb 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> film = new_test_film2 ("subtitle_charset_test1");
- shared_ptr<Content> content = content_factory (film, private_data / "PADDINGTON soustitresVFdef.srt").front ();
+ shared_ptr<Content> content = content_factory (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> film = new_test_film2 ("subtitle_charset_test2");
- shared_ptr<Content> content = content_factory (film, "test/data/osx.srt").front ();
+ shared_ptr<Content> content = content_factory ("test/data/osx.srt").front();
film->examine_and_add_content (content);
BOOST_REQUIRE (!wait_for_jobs ());
shared_ptr<StringTextFileContent> ts = dynamic_pointer_cast<StringTextFileContent> (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);
}