diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-07-15 03:36:59 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-15 18:03:57 +0200 |
| commit | 21415bdb69a99c4fc36cf4b5e5160a171bb1cad4 (patch) | |
| tree | 46265de6587585d292ac4c97267327af0c359c1c /test/no_use_video_test.cc | |
| parent | 6207d271effad4e691a5155ccdad083e03b010bc (diff) | |
Change Film::examine_and_add_content to take a vector of content.
Diffstat (limited to 'test/no_use_video_test.cc')
| -rw-r--r-- | test/no_use_video_test.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/no_use_video_test.cc b/test/no_use_video_test.cc index 441d64166..7ac02afc4 100644 --- a/test/no_use_video_test.cc +++ b/test/no_use_video_test.cc @@ -53,8 +53,7 @@ BOOST_AUTO_TEST_CASE (no_use_video_test1) auto film = new_test_film("no_use_video_test1"); auto A = content_factory("test/data/flat_red.png")[0]; auto B = content_factory("test/data/flat_green.png")[0]; - film->examine_and_add_content (A); - film->examine_and_add_content (B); + film->examine_and_add_content({A, B}); BOOST_REQUIRE (!wait_for_jobs()); A->set_position (film, dcpomatic::DCPTime()); @@ -100,8 +99,7 @@ BOOST_AUTO_TEST_CASE (no_use_video_test3) BOOST_REQUIRE (ov_a_pic); auto ov_a_snd = content_factory("test/data/sine_16_48_220_10.wav")[0]; BOOST_REQUIRE (ov_a_snd); - ov_a->examine_and_add_content (ov_a_pic); - ov_a->examine_and_add_content (ov_a_snd); + ov_a->examine_and_add_content({ov_a_pic, ov_a_snd}); BOOST_REQUIRE (!wait_for_jobs()); make_and_verify_dcp (ov_a); @@ -110,16 +108,14 @@ BOOST_AUTO_TEST_CASE (no_use_video_test3) BOOST_REQUIRE (ov_b_pic); auto ov_b_snd = content_factory("test/data/sine_16_48_880_10.wav")[0]; BOOST_REQUIRE (ov_b_snd); - ov_b->examine_and_add_content (ov_b_pic); - ov_b->examine_and_add_content (ov_b_snd); + ov_b->examine_and_add_content({ov_b_pic, ov_b_snd}); BOOST_REQUIRE (!wait_for_jobs()); make_and_verify_dcp (ov_b); auto vf = new_test_film("no_use_video_test3_vf"); auto A = make_shared<DCPContent>(ov_a->dir(ov_a->dcp_name())); auto B = make_shared<DCPContent>(ov_b->dir(ov_b->dcp_name())); - vf->examine_and_add_content (A); - vf->examine_and_add_content (B); + vf->examine_and_add_content({A, B}); BOOST_REQUIRE (!wait_for_jobs()); A->set_position (vf, dcpomatic::DCPTime()); |
