From 26f6ead44ff6bcb259c1755f91beb0a9e3eee988 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 20 Jul 2014 23:38:07 +0100 Subject: Allow loading of EncryptedKDMs from strings. --- test/kdm_test.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/kdm_test.cc') diff --git a/test/kdm_test.cc b/test/kdm_test.cc index 1fc76dba..c2d40b3b 100644 --- a/test/kdm_test.cc +++ b/test/kdm_test.cc @@ -30,7 +30,9 @@ 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"), + 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") ); @@ -51,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 parser (new xmlpp::DomParser ()); -- cgit v1.2.3