Comment fixes.
[dcpomatic.git] / test / ffmpeg_dcp_test.cc
index 946bccbb8c96652db136487e7605c60c46831215..88b1e94af063de1ef394bd85afcebc39c69ee918 100644 (file)
 
 */
 
+#include <boost/test/unit_test.hpp>
+#include <boost/filesystem.hpp>
+#include "lib/film.h"
+#include "lib/ffmpeg_content.h"
+#include "lib/ratio.h"
+#include "lib/dcp_content_type.h"
+#include "test.h"
+
+using boost::shared_ptr;
+
 /** @file test/ffmpeg_dcp_test.cc
  *  @brief Test scaling and black-padding of images from a still-image source.
  */
@@ -26,7 +36,7 @@ BOOST_AUTO_TEST_CASE (ffmpeg_dcp_test)
        shared_ptr<Film> film = new_test_film ("ffmpeg_dcp_test");
        film->set_name ("test_film2");
        shared_ptr<FFmpegContent> c (new FFmpegContent (film, "test/data/test.mp4"));
-       c->set_ratio (Ratio::from_id ("185"));
+       c->set_scale (VideoContentScale (Ratio::from_id ("185")));
        film->examine_and_add_content (c);
 
        wait_for_jobs ();
@@ -45,10 +55,10 @@ BOOST_AUTO_TEST_CASE (ffmpeg_have_dcp_test)
        boost::filesystem::path p = test_film_dir ("ffmpeg_dcp_test");
        shared_ptr<Film> f (new Film (p.string ()));
        f->read_metadata ();
-       BOOST_CHECK (f->have_dcp());
+       BOOST_CHECK (!f->dcps().empty());
 
        p /= f->dcp_name();
-       p /= f->dcp_video_mxf_filename();
+       p /= f->video_mxf_filename();
        boost::filesystem::remove (p);
-       BOOST_CHECK (!f->have_dcp ());
+       BOOST_CHECK (f->dcps().empty());
 }