Merge branch '1.0' into 1.0-seek
[dcpomatic.git] / test / ffmpeg_dcp_test.cc
index 946bccbb8c96652db136487e7605c60c46831215..c79acd3dfb30deda09577736875a2d1d23c6cb67 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.
  */
@@ -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());
 }