Make pause/resume work properly in the batch converter.
[dcpomatic.git] / test / vf_kdm_test.cc
index 5248ee798d7bb328001650fcf0811f85048f8510..e52b11e674abaa91d3e9d512cecedffa470a01b3 100644 (file)
 
 
 #include "test.h"
-#include "lib/film.h"
-#include "lib/dcp_subtitle_content.h"
-#include "lib/ratio.h"
-#include "lib/dcp_content_type.h"
-#include "lib/dcp_content.h"
-#include "lib/ffmpeg_content.h"
 #include "lib/config.h"
+#include "lib/constants.h"
 #include "lib/cross.h"
+#include "lib/dcp_content.h"
+#include "lib/dcp_content_type.h"
+#include "lib/dcp_subtitle_content.h"
+#include "lib/ffmpeg_content.h"
+#include "lib/film.h"
+#include "lib/ratio.h"
 #include "lib/screen.h"
 #include <dcp/cpl.h>
 #include <boost/test/unit_test.hpp>
@@ -66,7 +67,7 @@ BOOST_AUTO_TEST_CASE (vf_kdm_test)
        dcp::DCP A_dcp ("build/test/vf_kdm_test_ov/" + A->dcp_name());
        A_dcp.read ();
 
-       Config::instance()->set_decryption_chain (make_shared<dcp::CertificateChain>(openssl_path()));
+       Config::instance()->set_decryption_chain (make_shared<dcp::CertificateChain>(openssl_path(), CERTIFICATE_VALIDITY_PERIOD));
 
        auto A_kdm = A->make_kdm (
                Config::instance()->decryption_chain()->leaf(),