diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-09-25 20:41:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-09-25 20:41:45 +0100 |
| commit | f76647abae551840a43bb8f07189051ec20bab6d (patch) | |
| tree | 12d67e33c71516480cb71381bc426dfe18513821 /test/error_test.cc | |
| parent | e8530ea06f0b0883e5e19dd18beed70732ac5d3c (diff) | |
Switch away from the many-constructor-arguments approach to a hopefully simpler API.
Diffstat (limited to 'test/error_test.cc')
| -rw-r--r-- | test/error_test.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/test/error_test.cc b/test/error_test.cc index a0f6a0f3..f01fbdd0 100644 --- a/test/error_test.cc +++ b/test/error_test.cc @@ -38,13 +38,10 @@ 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, libdcp::Size (32, 32), false), - libdcp::FileError - ); + libdcp::MonoPictureAsset pa ("build/test/fred", "video.mxf"); + BOOST_CHECK_THROW (pa.create (p), libdcp::FileError); - BOOST_CHECK_THROW ( - new libdcp::SoundAsset (p, "build/test/fred", "audio.mxf", &d.Progress, 24, 24, false), - libdcp::FileError - ); + libdcp::SoundAsset sa ("build/test/fred", "audio.mxf"); + sa.set_channels (1); + BOOST_CHECK_THROW (sa.create (p), libdcp::FileError); } |
