X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fimage_proxy_test.cc;h=750b77561ad823fc8986831df8c75f56b6d417f5;hb=c7917ecfce3200d807091cb64241e54066822cbf;hp=0999d4b1064a164e4a1c82623a00336ecede2e3a;hpb=e64a1a9aae0200d14feed49a4c6cf537bf5708a4;p=dcpomatic.git diff --git a/test/image_proxy_test.cc b/test/image_proxy_test.cc index 0999d4b10..750b77561 100644 --- a/test/image_proxy_test.cc +++ b/test/image_proxy_test.cc @@ -21,15 +21,15 @@ #include "lib/ffmpeg_image_proxy.h" #include "lib/j2k_image_proxy.h" -#include +#include "test.h" #include -using boost::shared_ptr; +using std::shared_ptr; -static const char data_file0[] = "test/data/player_seek_test_0.png"; -static const char data_file1[] = "test/data/player_seek_test_1.png"; +static const boost::filesystem::path data_file0 = TestPaths::private_data() / "player_seek_test_0.png"; +static const boost::filesystem::path data_file1 = TestPaths::private_data() / "player_seek_test_1.png"; BOOST_AUTO_TEST_CASE (j2k_image_proxy_same_test) @@ -53,14 +53,14 @@ BOOST_AUTO_TEST_CASE (j2k_image_proxy_same_test) BOOST_AUTO_TEST_CASE (ffmpeg_image_proxy_same_test) { { - shared_ptr proxy1(new FFmpegImageProxy(data_file0, VIDEO_RANGE_FULL)); - shared_ptr proxy2(new FFmpegImageProxy(data_file0, VIDEO_RANGE_FULL)); + shared_ptr proxy1(new FFmpegImageProxy(data_file0, VideoRange::FULL)); + shared_ptr proxy2(new FFmpegImageProxy(data_file0, VideoRange::FULL)); BOOST_CHECK (proxy1->same(proxy2)); } { - shared_ptr proxy1(new FFmpegImageProxy(data_file0, VIDEO_RANGE_FULL)); - shared_ptr proxy2(new FFmpegImageProxy(data_file1, VIDEO_RANGE_FULL)); + shared_ptr proxy1(new FFmpegImageProxy(data_file0, VideoRange::FULL)); + shared_ptr proxy2(new FFmpegImageProxy(data_file1, VideoRange::FULL)); BOOST_CHECK (!proxy1->same(proxy2)); } }