X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fj2k_bandwidth_test.cc;h=832f48c3f8cd6ac28a21068edc650d651a9db228;hb=5b4b0381872a81821f216fb407c73710c77b5d7a;hp=40309df87b5aa6709c374ddf4a4d1c542973a847;hpb=6cc7359c1af897f334dab5ba455707ce0c59af9d;p=dcpomatic.git diff --git a/test/j2k_bandwidth_test.cc b/test/j2k_bandwidth_test.cc index 40309df87..832f48c3f 100644 --- a/test/j2k_bandwidth_test.cc +++ b/test/j2k_bandwidth_test.cc @@ -18,7 +18,7 @@ */ -/** @file test/j2k_bandwidth_test.cc +/** @file test/bandwidth_test.cc * @brief Test whether we output whatever J2K bandwidth is requested. * @ingroup specific */ @@ -40,12 +40,12 @@ check (int target_bits_per_second) { int const duration = 10; - string const name = "j2k_bandwidth_test_" + dcp::raw_convert (target_bits_per_second); + string const name = "bandwidth_test_" + dcp::raw_convert (target_bits_per_second); shared_ptr film = new_test_film (name); film->set_name (name); film->set_dcp_content_type (DCPContentType::from_isdcf_name ("FTR")); film->set_j2k_bandwidth (target_bits_per_second); - shared_ptr content (new ImageContent(private_data / "prophet_frame.tiff")); + shared_ptr content (new ImageContent(TestPaths::private_data() / "prophet_frame.tiff")); film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs()); content->video->set_length (24 * duration); @@ -63,7 +63,7 @@ check (int target_bits_per_second) BOOST_CHECK ((actual_bits_per_second / target_bits_per_second) < 1.15); } -BOOST_AUTO_TEST_CASE (j2k_bandwidth_test) +BOOST_AUTO_TEST_CASE (bandwidth_test) { check (50000000); check (100000000);