summaryrefslogtreecommitdiff
path: root/test/pulldown_detect_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-12-29 01:47:32 +0100
committerCarl Hetherington <cth@carlh.net>2022-12-29 01:47:32 +0100
commitce73eaf7875a9a3326afcd839ad85eb95879c160 (patch)
treec4cff45a7bada9aebf48b6e51c5dffe086045e20 /test/pulldown_detect_test.cc
parent0f772d68ef7fb32002538ce9ca7c9764d0d7135b (diff)
Cleanup: test tidying.
Diffstat (limited to 'test/pulldown_detect_test.cc')
-rw-r--r--test/pulldown_detect_test.cc16
1 files changed, 6 insertions, 10 deletions
diff --git a/test/pulldown_detect_test.cc b/test/pulldown_detect_test.cc
index 047f84b69..432bdf26f 100644
--- a/test/pulldown_detect_test.cc
+++ b/test/pulldown_detect_test.cc
@@ -19,23 +19,19 @@
*/
-#include "test.h"
#include "lib/content.h"
#include "lib/content_factory.h"
#include "lib/film.h"
+#include "test.h"
#include <boost/test/unit_test.hpp>
-using std::shared_ptr;
-
-
BOOST_AUTO_TEST_CASE (pulldown_detect_test1)
{
- shared_ptr<Film> film = new_test_film2 ("pulldown_detect_test1");
- shared_ptr<Content> content = content_factory(TestPaths::private_data() / "greatbrain.mkv")[0];
- film->examine_and_add_content (content);
- BOOST_REQUIRE (!wait_for_jobs());
- BOOST_REQUIRE (static_cast<bool>(content->video_frame_rate()));
- BOOST_CHECK_CLOSE (content->video_frame_rate().get(), 23.976, 0.1);
+ auto content = content_factory(TestPaths::private_data() / "greatbrain.mkv");
+ auto film = new_test_film2("pulldown_detect_test1", content);
+
+ BOOST_REQUIRE(static_cast<bool>(content[0]->video_frame_rate()));
+ BOOST_CHECK_CLOSE(content[0]->video_frame_rate().get(), 23.976, 0.1);
}