X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=test%2Ffilm_metadata_test.cc;h=854d3e6eae376be76164468f01d03703d4987d35;hp=d61f5f0d186e86b2cd10dcaac951f95fc77097b4;hb=54af50c3b8e9082f9751e809d63540c51197a4a1;hpb=5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f diff --git a/test/film_metadata_test.cc b/test/film_metadata_test.cc index d61f5f0d1..854d3e6ea 100644 --- a/test/film_metadata_test.cc +++ b/test/film_metadata_test.cc @@ -20,21 +20,20 @@ /** @file test/film_metadata_test.cc * @brief Test some basic reading/writing of film metadata. + * @ingroup specific */ +#include +#include +#include #include "lib/film.h" #include "lib/dcp_content_type.h" #include "lib/ratio.h" #include "test.h" -#include -#include -#include -#include using std::string; using std::list; using boost::shared_ptr; -using boost::make_shared; BOOST_AUTO_TEST_CASE (film_metadata_test) { @@ -46,20 +45,22 @@ BOOST_AUTO_TEST_CASE (film_metadata_test) BOOST_CHECK (film->dcp_content_type() == 0); film->set_name ("fred"); - film->set_dcp_content_type (DCPContentType::from_pretty_name ("Short")); + film->set_dcp_content_type (DCPContentType::from_isdcf_name ("SHR")); film->set_container (Ratio::from_id ("185")); film->set_j2k_bandwidth (200000000); + film->set_interop (false); film->write_metadata (); list ignore; ignore.push_back ("Key"); + ignore.push_back ("ContextID"); check_xml ("test/data/metadata.xml.ref", dir.string() + "/metadata.xml", ignore); - shared_ptr g = make_shared (dir); + shared_ptr g (new Film (dir)); g->read_metadata (); BOOST_CHECK_EQUAL (g->name(), "fred"); - BOOST_CHECK_EQUAL (g->dcp_content_type(), DCPContentType::from_pretty_name ("Short")); + BOOST_CHECK_EQUAL (g->dcp_content_type(), DCPContentType::from_isdcf_name ("SHR")); BOOST_CHECK_EQUAL (g->container(), Ratio::from_id ("185")); g->write_metadata ();