BOOST_AUTO_TEST_CASE (cpl_ratings)
{
- dcp::CPL cpl ("annotation", dcp::FEATURE);
+ dcp::CPL cpl ("annotation", dcp::ContentKind::FEATURE);
vector<dcp::Rating> ratings;
ratings.push_back (dcp::Rating("http://www.mpaa.org/2003-ratings", "PG-13"));
shared_ptr<dcp::Reel> reel(new dcp::Reel());
cpl.add (reel);
- cpl.write_xml ("build/test/cpl_ratings.xml", dcp::SMPTE, std::shared_ptr<dcp::CertificateChain>());
+ cpl.write_xml ("build/test/cpl_ratings.xml", dcp::Standard::SMPTE, {});
- list<string> ignore;
+ vector<string> ignore;
ignore.push_back ("Id");
ignore.push_back ("Issuer");
ignore.push_back ("Creator");
);
dcp::CPL cpl2 ("build/test/cpl_ratings.xml");
- vector<dcp::Rating> ratings2 = cpl2.ratings ();
+ auto ratings2 = cpl2.ratings ();
BOOST_TEST(ratings == ratings2);
}