From: Carl Hetherington Date: Fri, 29 Apr 2022 10:30:03 +0000 (+0200) Subject: Fix some tests. X-Git-Tag: v2.16.10~15 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=99881b1bec17a7e619b3cbf3f51d4d43e7215561 Fix some tests. --- diff --git a/test/guess_crop_test.cc b/test/guess_crop_test.cc index c26fc5ee4..891ba4036 100644 --- a/test/guess_crop_test.cc +++ b/test/guess_crop_test.cc @@ -38,10 +38,7 @@ BOOST_AUTO_TEST_CASE (guess_crop_image_test1) auto content = content_factory(TestPaths::private_data() / "arrietty_724.tiff").front(); auto film = new_test_film2 ("guess_crop_image_test1", { content }); - BOOST_CHECK ( - guess_crop(film, content, 0.1, ContentTime::from_frames(content->video->length(), content->video_frame_rate().get())) - == Crop(0, 0, 11, 11) - ); + BOOST_CHECK (guess_crop(film, content, 0.1, {}) == Crop(0, 0, 11, 11)); } @@ -50,10 +47,7 @@ BOOST_AUTO_TEST_CASE (guess_crop_image_test2) auto content = content_factory(TestPaths::private_data() / "prophet_frame.tiff").front(); auto film = new_test_film2 ("guess_crop_image_test2", { content }); - BOOST_CHECK ( - guess_crop(film, content, 0.1, ContentTime::from_frames(content->video->length(), content->video_frame_rate().get())) - == Crop(0, 0, 22, 22) - ); + BOOST_CHECK (guess_crop(film, content, 0.1, {}) == Crop(0, 0, 22, 22)); } @@ -62,8 +56,5 @@ BOOST_AUTO_TEST_CASE (guess_crop_image_test3) auto content = content_factory(TestPaths::private_data() / "pillarbox.png").front(); auto film = new_test_film2 ("guess_crop_image_test3", { content }); - BOOST_CHECK ( - guess_crop(film, content, 0.1, ContentTime::from_frames(content->video->length(), content->video_frame_rate().get())) - == Crop(113, 262, 0, 0) - ); + BOOST_CHECK (guess_crop(film, content, 0.1, {}) == Crop(113, 262, 0, 0)); }