Fix build.
[dcpomatic.git] / test / file_group_test.cc
index 025d6be02d49a9c02d67f5a82dff579381d705ac..14c01a9763d32d00963bddf94b2e4b83dddd286e 100644 (file)
@@ -21,9 +21,6 @@
 #include <cstdio>
 #include <boost/test/unit_test.hpp>
 #include <boost/filesystem.hpp>
-extern "C" {
-#include <libavformat/avio.h>
-}
 #include "lib/file_group.h"
 
 using std::vector;
@@ -65,8 +62,7 @@ BOOST_AUTO_TEST_CASE (file_group_test)
                base += length[i];
        }
 
-       FileGroup fg;
-       fg.set_paths (name);
+       FileGroup fg (name);
        uint8_t test[65536];
 
        int pos = 0;
@@ -107,7 +103,4 @@ BOOST_AUTO_TEST_CASE (file_group_test)
        BOOST_CHECK_EQUAL (fg.seek (1077, SEEK_END), total_length - 1077);
        BOOST_CHECK_EQUAL (fg.read (test, 256), 256);
        BOOST_CHECK_EQUAL (memcmp (data + total_length - 1077, test, 256), 0);
-
-       /* AVSEEK_SIZE */
-       BOOST_CHECK_EQUAL (fg.seek (-1, AVSEEK_SIZE), total_length);
 }