Ref does not need to be a template since it's always used for Asset.
[libdcp.git] / test / write_subtitle_test.cc
index 958fc981653b1cd613f9a459a2e429383e21683c..8b50b0e3f0660fa7494ce8625956043a53aaf709 100644 (file)
@@ -29,8 +29,10 @@ using boost::shared_ptr;
 /* Write some subtitle content as Interop XML and check that it is right */
 BOOST_AUTO_TEST_CASE (write_subtitle_test)
 {
-       dcp::InteropSubtitleAsset c ("Test", "EN");
+       dcp::InteropSubtitleAsset c;
        c.set_reel_number ("1");
+       c.set_language ("EN");
+       c.set_movie_title ("Test");
 
        c.add (
                dcp::SubtitleString (
@@ -73,7 +75,7 @@ BOOST_AUTO_TEST_CASE (write_subtitle_test)
                        dcp::Time (5, 6, 7, 8, 24)
                        )
                );
-       
+
        c._id = "a6c58cff-3e1e-4b38-acec-a42224475ef6";
 
        check_xml (
@@ -89,7 +91,7 @@ BOOST_AUTO_TEST_CASE (write_subtitle_test)
                "    </Subtitle>\n"
                "  </Font>\n"
                "  <Font Italic=\"yes\" Color=\"FF800040\" Size=\"91\" Effect=\"border\" EffectColor=\"FF010203\" Script=\"normal\" Underlined=\"no\" Weight=\"normal\">\n"
-               "    <Subtitle SpotNumber=\"2\" TimeIn=\"05:41:00:219\" TimeOut=\"06:12:15:219\" FadeUpTime=\"930790\" FadeDownTime=\"4591830\">\n"
+               "    <Subtitle SpotNumber=\"2\" TimeIn=\"05:41:00:218\" TimeOut=\"06:12:15:218\" FadeUpTime=\"930792\" FadeDownTime=\"4591834\">\n"
                "      <Text VAlign=\"bottom\" VPosition=\"40\">What's going on</Text>\n"
                "    </Subtitle>\n"
                "  </Font>\n"
@@ -97,4 +99,3 @@ BOOST_AUTO_TEST_CASE (write_subtitle_test)
                list<string> ()
                );
 }
-