diff options
Diffstat (limited to 'test/smpte_load_font_test.cc')
| -rw-r--r-- | test/smpte_load_font_test.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/smpte_load_font_test.cc b/test/smpte_load_font_test.cc index a9cc327d..adcbb0aa 100644 --- a/test/smpte_load_font_test.cc +++ b/test/smpte_load_font_test.cc @@ -31,20 +31,28 @@ files in the program, then also delete it here. */ + #include "smpte_load_font_node.h" +#include "warnings.h" #include <libcxml/cxml.h> +LIBDCP_DISABLE_WARNINGS #include <libxml++/libxml++.h> +LIBDCP_ENABLE_WARNINGS #include <boost/test/unit_test.hpp> + +using std::make_shared; + + /** Test dcp::SMPTELoadFontNode */ BOOST_AUTO_TEST_CASE (smpte_load_font_test1) { xmlpp::Document doc; - xmlpp::Element* text = doc.create_root_node("Font"); + auto text = doc.create_root_node("Font"); text->set_attribute ("ID", "my-great-id"); text->add_child_text ("urn:uuid:my-great-urn"); - dcp::SMPTELoadFontNode lf (cxml::ConstNodePtr (new cxml::Node (text))); + dcp::SMPTELoadFontNode lf (make_shared<cxml::Node>(text)); BOOST_CHECK_EQUAL (lf.id, "my-great-id"); BOOST_CHECK_EQUAL (lf.urn, "my-great-urn"); |
