diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-10-25 10:43:41 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-10-25 10:43:41 +0100 |
| commit | 9e7b4d64c4e9a9bcd0e08ede076162bb0ec666d1 (patch) | |
| tree | 15e8aefb0df247b28309d4a1f33a93772352bb0d /test/recover_test.cc | |
| parent | 107d88c10c11e204dba3a5ca1591d9966f4542cd (diff) | |
pot/merge.
Diffstat (limited to 'test/recover_test.cc')
| -rw-r--r-- | test/recover_test.cc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/recover_test.cc b/test/recover_test.cc index 98d52ef76..dfd3f790f 100644 --- a/test/recover_test.cc +++ b/test/recover_test.cc @@ -78,6 +78,39 @@ BOOST_AUTO_TEST_CASE (recover_test_2d) BOOST_CHECK (A->equals (B, eq, boost::bind (¬e, _1, _2))); } +BOOST_AUTO_TEST_CASE (recover_test_2d_encrypted) +{ + shared_ptr<Film> film = new_test_film ("recover_test_2d_encrypted"); + film->set_dcp_content_type (DCPContentType::from_isdcf_name ("FTR")); + film->set_container (Ratio::from_id ("185")); + film->set_name ("recover_test"); + film->set_encrypted (true); + + shared_ptr<FFmpegContent> content (new FFmpegContent (film, "test/data/count300bd24.m2ts")); + film->examine_and_add_content (content); + wait_for_jobs (); + + film->make_dcp (); + wait_for_jobs (); + + boost::filesystem::path const video = "build/test/recover_test_2d_encrypted/video/185_2K_9284c41c42044ef9b4c14482730cdffe_24_100000000_P_S_0_1200000.mxf"; + boost::filesystem::copy_file ( + video, + "build/test/recover_test_2d_encrypted/original.mxf" + ); + + boost::filesystem::resize_file (video, 2 * 1024 * 1024); + + film->make_dcp (); + wait_for_jobs (); + + shared_ptr<dcp::MonoPictureAsset> A (new dcp::MonoPictureAsset ("build/test/recover_test_2d_encrypted/original.mxf")); + shared_ptr<dcp::MonoPictureAsset> B (new dcp::MonoPictureAsset (video)); + + dcp::EqualityOptions eq; + BOOST_CHECK (A->equals (B, eq, boost::bind (¬e, _1, _2))); +} + BOOST_AUTO_TEST_CASE (recover_test_3d) { shared_ptr<Film> film = new_test_film ("recover_test_3d"); |
