Allow specification of trusted devices by thumbprint rather than
[dcpomatic.git] / test / import_dcp_test.cc
index aa4049111c82229266fae87e64c2d7ba5e5ac84c..9bec4535484ecbfea578292535376508de2ed448 100644 (file)
 
 #include "test.h"
 #include "lib/film.h"
+#include "lib/screen.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/examine_content_job.h"
+#include "lib/job_manager.h"
 #include "lib/config.h"
 #include "lib/cross.h"
 #include <dcp/cpl.h>
 #include <boost/test/unit_test.hpp>
 
 using std::vector;
+using std::string;
 using boost::shared_ptr;
 
 /** Make an encrypted DCP, import it and make a new unencrypted DCP */
@@ -62,7 +66,7 @@ BOOST_AUTO_TEST_CASE (import_dcp_test)
 
        dcp::EncryptedKDM kdm = A->make_kdm (
                Config::instance()->decryption_chain()->leaf (),
-               vector<dcp::Certificate> (),
+               vector<string>(),
                A_dcp.cpls().front()->file().get(),
                dcp::LocalTime ("2014-07-21T00:00:00+00:00"),
                dcp::LocalTime ("2024-07-21T00:00:00+00:00"),
@@ -80,6 +84,7 @@ BOOST_AUTO_TEST_CASE (import_dcp_test)
        B->examine_and_add_content (d);
        BOOST_CHECK (!wait_for_jobs ());
        d->add_kdm (kdm);
+       JobManager::instance()->add (shared_ptr<Job> (new ExamineContentJob (B, d)));
        BOOST_CHECK (!wait_for_jobs ());
 
        B->make_dcp ();