Fix rebase onto 1.0.
[libdcp.git] / test / write_subtitle_test.cc
index a017547bae3187e6e57f59b0b2bd3c2a5c56e4e0..b02a6e59648e61d9bfb41cab05edb6adbe4ebbbc 100644 (file)
@@ -17,7 +17,7 @@
 
 */
 
-#include "interop_subtitle_content.h"
+#include "interop_subtitle_asset.h"
 #include "subtitle_string.h"
 #include "test.h"
 #include <boost/test/unit_test.hpp>
@@ -29,7 +29,7 @@ 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::InteropSubtitleContent c ("Test", "EN");
+       dcp::InteropSubtitleAsset c ("Test", "EN");
 
        c.add (
                dcp::SubtitleString (
@@ -40,8 +40,10 @@ BOOST_AUTO_TEST_CASE (write_subtitle_test)
                        1.0,
                        dcp::Time (0, 4,  9, 22, 24),
                        dcp::Time (0, 4, 11, 22, 24),
+                       0,
+                       dcp::HALIGN_CENTER,
                        0.8,
-                       dcp::TOP,
+                       dcp::VALIGN_TOP,
                        "Hello world",
                        dcp::NONE,
                        dcp::Colour (0, 0, 0),
@@ -59,8 +61,10 @@ BOOST_AUTO_TEST_CASE (write_subtitle_test)
                        1.0,
                        dcp::Time (5, 41,  0, 21, 24),
                        dcp::Time (6, 12, 15, 21, 24),
+                       0,
+                       dcp::HALIGN_CENTER,
                        0.4,
-                       dcp::BOTTOM,
+                       dcp::VALIGN_BOTTOM,
                        "What's going on",
                        dcp::BORDER,
                        dcp::Colour (1, 2, 3),