Various fixes.
[libdcp.git] / test / read_dcp_test.cc
index 5e6827d14e3fa711ec4849b3ac418fb97ddd180c..a17b0a01dbcd138125c1aed77615bba99c2edd94 100644 (file)
 
 */
 
+#include <boost/test/unit_test.hpp>
+#include "dcp.h"
+#include "cpl.h"
+
+using std::list;
+using boost::shared_ptr;
+
 /* Read DCP that is in git and make sure that basic stuff is read in correctly */
 BOOST_AUTO_TEST_CASE (read_dcp)
 {
-       libdcp::DCP d ("test/ref/DCP/foo");
+       dcp::DCP d ("test/ref/DCP/foo");
        d.read ();
 
-       list<shared_ptr<libdcp::CPL> > cpls = d.cpls ();
+       list<shared_ptr<dcp::CPL> > cpls = d.cpls ();
        BOOST_CHECK_EQUAL (cpls.size(), 1);
 
-       BOOST_CHECK_EQUAL (cpls.front()->name(), "A Test DCP");
-       BOOST_CHECK_EQUAL (cpls.front()->content_kind(), libdcp::FEATURE);
-       BOOST_CHECK_EQUAL (cpls.front()->frames_per_second(), 24);
-       BOOST_CHECK_EQUAL (cpls.front()->length(), 24);
+       BOOST_CHECK_EQUAL (cpls.front()->annotation_text(), "A Test DCP");
+       BOOST_CHECK_EQUAL (cpls.front()->content_kind(), dcp::FEATURE);
 }