diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-08-25 12:17:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-08-25 12:17:48 +0100 |
| commit | f976e8ac94dfc6130797c5d98a0399321dce43e7 (patch) | |
| tree | 82d310884c373efc3ef81862e89ffa15cb255392 /test | |
| parent | c74cdcf36955c77dc43d4e7a1d064d0bfcb631c7 (diff) | |
Untested interop DCP/KDM support.
Diffstat (limited to 'test')
| -rw-r--r-- | test/dcp_test.cc | 2 | ||||
| -rw-r--r-- | test/error_test.cc | 11 | ||||
| -rw-r--r-- | test/recovery_test.cc | 4 |
3 files changed, 13 insertions, 4 deletions
diff --git a/test/dcp_test.cc b/test/dcp_test.cc index 9699eeb2..970ca9dd 100644 --- a/test/dcp_test.cc +++ b/test/dcp_test.cc @@ -47,6 +47,7 @@ BOOST_AUTO_TEST_CASE (dcp_test) 24, false, libdcp::Size (32, 32), + false, mxf_meta )); @@ -59,6 +60,7 @@ BOOST_AUTO_TEST_CASE (dcp_test) 24, 2, false, + false, mxf_meta )); diff --git a/test/error_test.cc b/test/error_test.cc index a2a5716c..380363b4 100644 --- a/test/error_test.cc +++ b/test/error_test.cc @@ -28,6 +28,13 @@ BOOST_AUTO_TEST_CASE (error_test) p.push_back ("frobozz"); /* Trying to create video/audio MXFs using a non-existant file should throw an exception */ - BOOST_CHECK_THROW (new libdcp::MonoPictureAsset (p, "build/test/fred", "video.mxf", &d.Progress, 24, 24, false, libdcp::Size (32, 32)), libdcp::FileError); - BOOST_CHECK_THROW (new libdcp::SoundAsset (p, "build/test/fred", "audio.mxf", &d.Progress, 24, 24, false), libdcp::FileError); + BOOST_CHECK_THROW ( + new libdcp::MonoPictureAsset (p, "build/test/fred", "video.mxf", &d.Progress, 24, 24, false, libdcp::Size (32, 32), false), + libdcp::FileError + ); + + BOOST_CHECK_THROW ( + new libdcp::SoundAsset (p, "build/test/fred", "audio.mxf", &d.Progress, 24, 24, false, false), + libdcp::FileError + ); } diff --git a/test/recovery_test.cc b/test/recovery_test.cc index df9a839c..d8ffea6a 100644 --- a/test/recovery_test.cc +++ b/test/recovery_test.cc @@ -42,7 +42,7 @@ BOOST_AUTO_TEST_CASE (recovery) boost::filesystem::remove_all ("build/test/baz"); boost::filesystem::create_directories ("build/test/baz"); shared_ptr<libdcp::MonoPictureAsset> mp (new libdcp::MonoPictureAsset ("build/test/baz", "video1.mxf", 24, libdcp::Size (32, 32))); - shared_ptr<libdcp::PictureAssetWriter> writer = mp->start_write (false); + shared_ptr<libdcp::PictureAssetWriter> writer = mp->start_write (false, false); int written_size = 0; for (int i = 0; i < 24; ++i) { @@ -70,7 +70,7 @@ BOOST_AUTO_TEST_CASE (recovery) #endif mp.reset (new libdcp::MonoPictureAsset ("build/test/baz", "video2.mxf", 24, libdcp::Size (32, 32))); - writer = mp->start_write (true); + writer = mp->start_write (true, false); writer->write (data, size); |
