From 751379da4be48f9b911a91cf17686330dd999d0c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 5 Dec 2023 01:59:44 +0100 Subject: Account for split branch in libdcp. --- test/subtitle_reel_test.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'test/subtitle_reel_test.cc') diff --git a/test/subtitle_reel_test.cc b/test/subtitle_reel_test.cc index d7eb90d25..0f9abe782 100644 --- a/test/subtitle_reel_test.cc +++ b/test/subtitle_reel_test.cc @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include #include #include @@ -78,25 +78,25 @@ BOOST_AUTO_TEST_CASE (subtitle_reel_test) auto i = reels.begin (); BOOST_REQUIRE ((*i)->main_subtitle()); BOOST_REQUIRE ((*i)->main_subtitle()->asset()); - auto A = std::dynamic_pointer_cast((*i)->main_subtitle()->asset()); + auto A = std::dynamic_pointer_cast((*i)->main_subtitle()->asset()); BOOST_REQUIRE (A); ++i; BOOST_REQUIRE ((*i)->main_subtitle()); BOOST_REQUIRE ((*i)->main_subtitle()->asset()); - auto B = std::dynamic_pointer_cast((*i)->main_subtitle()->asset()); + auto B = std::dynamic_pointer_cast((*i)->main_subtitle()->asset()); BOOST_REQUIRE (B); - BOOST_REQUIRE_EQUAL (A->subtitles().size(), 1U); - BOOST_REQUIRE_EQUAL (B->subtitles().size(), 1U); + BOOST_REQUIRE_EQUAL(A->texts().size(), 1U); + BOOST_REQUIRE_EQUAL(B->texts().size(), 1U); /* These times should be the same as they are should be offset from the start of the reel */ - BOOST_CHECK (A->subtitles().front()->in() == B->subtitles().front()->in()); + BOOST_CHECK(A->texts().front()->in() == B->texts().front()->in()); } /** Check that with a SMPTE DCP if we have subtitles in one reel, all reels have a - * SubtitleAsset (even if it's empty); SMPTE Bv2.1 section 8.3.1. + * TextAsset (even if it's empty); SMPTE Bv2.1 section 8.3.1. */ BOOST_AUTO_TEST_CASE (subtitle_in_all_reels_test) { @@ -224,7 +224,7 @@ BOOST_AUTO_TEST_CASE (subtitles_split_at_reel_boundaries) BOOST_REQUIRE (reel_sub); auto sub = reel_sub->asset(); BOOST_REQUIRE (sub); - BOOST_CHECK_EQUAL (sub->subtitles().size(), 1U); + BOOST_CHECK_EQUAL(sub->texts().size(), 1U); } } -- cgit v1.2.3