diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-08-19 18:52:45 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-09-20 19:29:45 +0200 |
| commit | fffdfdd50c6ad582b221c05be10dbfc186990c88 (patch) | |
| tree | 8c424f4f6d178e62f949d1fd94af091eb7928d11 /test/write_subtitle_test.cc | |
| parent | 3f806092b5d0f60fe4c7e40399cf1f7ec0e535ec (diff) | |
Remove XMLMetadata use from tests.
Diffstat (limited to 'test/write_subtitle_test.cc')
| -rw-r--r-- | test/write_subtitle_test.cc | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/test/write_subtitle_test.cc b/test/write_subtitle_test.cc index da2ec35c..808df31b 100644 --- a/test/write_subtitle_test.cc +++ b/test/write_subtitle_test.cc @@ -361,23 +361,22 @@ BOOST_AUTO_TEST_CASE (write_interop_subtitle_test3) shared_ptr<dcp::Reel> reel (new dcp::Reel()); reel->add(shared_ptr<dcp::ReelSubtitleAsset>(new dcp::ReelSubtitleAsset(c, dcp::Fraction(24, 1), 6046, 0))); - dcp::XMLMetadata xml_meta; - xml_meta.issue_date = "2018-09-02T04:45:18+00:00"; - xml_meta.issuer = "libdcp"; - xml_meta.creator = "libdcp"; - xml_meta.annotation_text = "Created by libdcp"; + string const issue_date = "2018-09-02T04:45:18+00:00"; + string const issuer = "libdcp"; + string const creator = "libdcp"; + string const annotation_text = "Created by libdcp"; shared_ptr<dcp::CPL> cpl (new dcp::CPL ("My film", dcp::FEATURE)); cpl->add (reel); - cpl->set_issuer (xml_meta.issuer); - cpl->set_creator (xml_meta.creator); - cpl->set_issue_date (xml_meta.issue_date); - cpl->set_annotation_text (xml_meta.annotation_text); + cpl->set_issuer (issuer); + cpl->set_creator (creator); + cpl->set_issue_date (issue_date); + cpl->set_annotation_text (annotation_text); cpl->set_content_version_label_text ("foo"); dcp::DCP dcp ("build/test/write_interop_subtitle_test3"); dcp.add (cpl); - dcp.write_xml (dcp::INTEROP, xml_meta.issuer, xml_meta.creator, xml_meta.issue_date, xml_meta.annotation_text); + dcp.write_xml (dcp::INTEROP, issuer, creator, issue_date, annotation_text); check_xml ( dcp::file_to_string("test/ref/write_interop_subtitle_test3/subs.xml"), |
