Split test compile up into individual files.
[dcpomatic.git] / test / play_test.cc
index 12f80a282c0e29c0a7254e5f1e2f39ddaf5bf85d..909813e2a980a6a06e040f332a451915a7ed4a45 100644 (file)
 
 */
 
-#include "player.h"
+#include <boost/test/unit_test.hpp>
+#include "lib/player.h"
+#include "lib/ratio.h"
+#include "lib/dcp_content_type.h"
+#include "test.h"
 
 /* This test needs stuff in Player that is only included in debug mode */
 #ifdef DCPOMATIC_DEBUG
 
+using std::cout;
 using boost::optional;
+using boost::shared_ptr;
 
 struct Video
 {
@@ -98,7 +104,7 @@ BOOST_AUTO_TEST_CASE (play_test)
        /* A is 16 frames long at 25 fps */
        BOOST_CHECK_EQUAL (B->start(), 16 * TIME_HZ / 25);
 
-       shared_ptr<Player> player = film->player ();
+       shared_ptr<Player> player = film->make_player ();
        PlayerWrapper wrap (player);
        /* Seek and audio don't get on at the moment */
        player->disable_audio ();