Basic HAlign / HPosition support.
[libdcp.git] / test / kdm_test.cc
index 7de62f5a2aac9290b68ae96ed0ea394c99dd4f15..c2d40b3baa5f9598cc3c92c987c93c338d924385 100644 (file)
@@ -21,6 +21,7 @@
 #include <libxml++/libxml++.h>
 #include "encrypted_kdm.h"
 #include "decrypted_kdm.h"
+#include "util.h"
 
 using std::list;
 using std::stringstream;
@@ -29,8 +30,10 @@ using boost::shared_ptr;
 BOOST_AUTO_TEST_CASE (kdm_test)
 {
        dcp::DecryptedKDM kdm (
-               dcp::EncryptedKDM ("test/data/kdm_TONEPLATES-SMPTE-ENC_.smpte-430-2.ROOT.NOT_FOR_PRODUCTION_20130706_20230702_CAR_OV_t1_8971c838.xml"),
-               "test/data/private.key"
+               dcp::EncryptedKDM (
+                       dcp::file_to_string ("test/data/kdm_TONEPLATES-SMPTE-ENC_.smpte-430-2.ROOT.NOT_FOR_PRODUCTION_20130706_20230702_CAR_OV_t1_8971c838.xml")
+                       ),
+               dcp::file_to_string ("test/data/private.key")
                );
 
        list<dcp::DecryptedKDMKey> keys = kdm.keys ();
@@ -50,7 +53,7 @@ BOOST_AUTO_TEST_CASE (kdm_test)
 BOOST_AUTO_TEST_CASE (kdm_passthrough_test)
 {
        dcp::EncryptedKDM kdm (
-               "test/data/kdm_TONEPLATES-SMPTE-ENC_.smpte-430-2.ROOT.NOT_FOR_PRODUCTION_20130706_20230702_CAR_OV_t1_8971c838.xml"
+               dcp::file_to_string ("test/data/kdm_TONEPLATES-SMPTE-ENC_.smpte-430-2.ROOT.NOT_FOR_PRODUCTION_20130706_20230702_CAR_OV_t1_8971c838.xml")
                );
 
        shared_ptr<xmlpp::DomParser> parser (new xmlpp::DomParser ());