diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-21 01:57:06 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-21 01:57:06 +0100 |
| commit | 76e3325a16cdf6d7220a61e2b5cfdb9c804cc32c (patch) | |
| tree | 8c1b5e5dc2cec265469a0d8018b6d7396b089432 /test/cpl_ratings_test.cc | |
| parent | 6c3db78c3d20ef064fa2a0ef38e65ca1ae69adb3 (diff) | |
Use enum class for the things in types.h
Diffstat (limited to 'test/cpl_ratings_test.cc')
| -rw-r--r-- | test/cpl_ratings_test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cpl_ratings_test.cc b/test/cpl_ratings_test.cc index b5bfd389..0135e6e0 100644 --- a/test/cpl_ratings_test.cc +++ b/test/cpl_ratings_test.cc @@ -42,7 +42,7 @@ using std::shared_ptr; 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")); @@ -52,7 +52,7 @@ BOOST_AUTO_TEST_CASE (cpl_ratings) 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, {}); vector<string> ignore; ignore.push_back ("Id"); @@ -96,6 +96,6 @@ BOOST_AUTO_TEST_CASE (cpl_ratings) ); dcp::CPL cpl2 ("build/test/cpl_ratings.xml"); - vector<dcp::Rating> ratings2 = cpl2.ratings (); + auto ratings2 = cpl2.ratings (); BOOST_TEST(ratings == ratings2); } |
