Remove Film dependency from Empty.
[dcpomatic.git] / test / empty_test.cc
index 326ae9530cb15d248d85f6866dace92a3c58902b..71397273942bbbe8312ec90bc1b4a42ffd0a8ff8 100644 (file)
@@ -52,7 +52,7 @@ BOOST_AUTO_TEST_CASE (empty_test1)
        contentB->video->set_length (1);
        contentB->set_position (DCPTime::from_frames (7, vfr));
 
-       Empty black (film, bind(&Content::video, _1));
+       Empty black (film->content(), film->length(), bind(&Content::video, _1));
        BOOST_REQUIRE_EQUAL (black._periods.size(), 2);
        BOOST_CHECK (black._periods.front().from == DCPTime());
        BOOST_CHECK (black._periods.front().to == DCPTime::from_frames(2, vfr));
@@ -84,7 +84,7 @@ BOOST_AUTO_TEST_CASE (empty_test2)
        contentB->video->set_length (1);
        contentB->set_position (DCPTime::from_frames (7, vfr));
 
-       Empty black (film, bind(&Content::video, _1));
+       Empty black (film->content(), film->length(), bind(&Content::video, _1));
        BOOST_REQUIRE_EQUAL (black._periods.size(), 1);
        BOOST_CHECK (black._periods.front().from == DCPTime::from_frames(3, vfr));
        BOOST_CHECK (black._periods.front().to == DCPTime::from_frames(7, vfr));