Split tests up.
[libdcp.git] / test / error_test.cc
index 380363b4a85690e9fbd6531374330fa6d6487ce1..6992acff0e87579277c9a28d86a808ab05e4f95c 100644 (file)
 
 */
 
+#include <boost/test/unit_test.hpp>
+#include "dcp.h"
+#include "picture_asset.h"
+#include "sound_asset.h"
+#include "util.h"
+#include "exceptions.h"
+
+using std::vector;
+using std::string;
+
 /* Check that an exception is thrown when trying to create MXFs from non-existant sources */
 BOOST_AUTO_TEST_CASE (error_test)
 {
@@ -29,12 +39,12 @@ BOOST_AUTO_TEST_CASE (error_test)
 
        /* 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), false),
+               new libdcp::MonoPictureAsset (p, "build/test/fred", "video.mxf", &d.Progress, 24, 24, 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),
+               new libdcp::SoundAsset (p, "build/test/fred", "audio.mxf", &d.Progress, 24, 24, false),
                libdcp::FileError
                );
 }