X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Frequired_disk_space_test.cc;h=db659c2c9ff0d411697bbff5511250bdd741d323;hb=refs%2Fheads%2F2540-dkdm-folders;hp=5510864d9b94576e78b66b3b3a53a893a574a837;hpb=8fedaaa75c4586a4cc7ffb393bd71d1fdb091dc8;p=dcpomatic.git diff --git a/test/required_disk_space_test.cc b/test/required_disk_space_test.cc index 5510864d9..db659c2c9 100644 --- a/test/required_disk_space_test.cc +++ b/test/required_disk_space_test.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2016 Carl Hetherington + Copyright (C) 2016-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,20 +18,23 @@ */ + /** @file test/required_disk_space_test.cc * @brief Check Film::required_disk_space * @ingroup selfcontained */ + #include "lib/content_factory.h" #include "lib/dcp_content.h" #include "lib/film.h" #include "test.h" #include -using std::make_shared; -using std::shared_ptr; + using std::dynamic_pointer_cast; +using std::make_shared; + void check_within_n (int64_t a, int64_t b, int64_t n) { @@ -45,7 +48,7 @@ BOOST_AUTO_TEST_CASE (required_disk_space_test) film->set_j2k_bandwidth (100000000); film->set_audio_channels (6); film->set_reel_type (ReelType::BY_VIDEO_CONTENT); - auto content_a = content_factory("test/data/flat_blue.png").front(); + auto content_a = content_factory("test/data/flat_blue.png")[0]; BOOST_REQUIRE (content_a); film->examine_and_add_content (content_a); auto content_b = make_shared("test/data/burnt_subtitle_test_dcp");