BOOST_CHECK (cpl.main_picture_active_area().get() == dcp::Size(1440, 1080));
auto reels = cpl.reels ();
- BOOST_REQUIRE_EQUAL (reels.size(), 1);
+ BOOST_REQUIRE_EQUAL (reels.size(), 1U);
BOOST_REQUIRE (reels.front()->main_subtitle()->language());
BOOST_CHECK_EQUAL (reels.front()->main_subtitle()->language().get(), "de-DE");
auto asl = cpl.additional_subtitle_languages();
- BOOST_REQUIRE_EQUAL (asl.size(), 2);
+ BOOST_REQUIRE_EQUAL (asl.size(), 2U);
BOOST_CHECK_EQUAL (asl[0], "en-US");
BOOST_CHECK_EQUAL (asl[1], "fr-ZA");
auto lt = { dcp::LanguageTag("en-US"), dcp::LanguageTag("fr-ZA") };
cpl.set_additional_subtitle_languages (lt);
+ cpl.set_sign_language_video_language (dcp::LanguageTag("bzs"));
+
cpl.write_xml ("build/test/cpl_metadata_write_test1.xml", {});
check_xml (
dcp::file_to_string("test/ref/cpl_metadata_test1.xml"),
dcp::file_to_string("build/test/cpl_metadata_write_test1.xml"),
- vector<string>()
+ {"Id", "Hash"}
);
}
{
dcp::CPL cpl ("test/ref/cpl_metadata_test1.xml");
cpl.write_xml ("build/test/cpl_metadata_roundtrip_test1.xml", shared_ptr<dcp::CertificateChain>());
- vector<string> ignore;
- ignore.push_back ("Id");
check_xml (
dcp::file_to_string("test/ref/cpl_metadata_test1.xml"),
dcp::file_to_string("build/test/cpl_metadata_roundtrip_test1.xml"),
- ignore
+ {"Id"}
);
}
check_xml (
dcp::file_to_string("test/ref/cpl_metadata_test2.xml"),
dcp::file_to_string("build/test/cpl_metadata_write_test2.xml"),
- vector<string>()
+ {"Id", "Hash"}
);
}
BOOST_CHECK (cpl.main_picture_active_area().get() == dcp::Size(1440, 1080));
auto reels = cpl.reels ();
- BOOST_REQUIRE_EQUAL (reels.size(), 1);
+ BOOST_REQUIRE_EQUAL (reels.size(), 1U);
}