summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-12-18 14:49:57 +0000
committerCarl Hetherington <cth@carlh.net>2013-12-18 14:49:57 +0000
commitc226f90a2c113b8bbc270f29e6aa035ae1229d57 (patch)
tree34609bf4e6f220185de5ec3e1ce381f8e41016bb /test
parent060a980527bc0b39e12494fec3c0baaab4c9d086 (diff)
Repeat frames rather than using black for missing frames when we're inside some content.
Diffstat (limited to 'test')
-rw-r--r--test/test.cc6
-rw-r--r--test/test.h2
-rw-r--r--test/wscript1
3 files changed, 5 insertions, 4 deletions
diff --git a/test/test.cc b/test/test.cc
index 92ce95656..df2cb1c4b 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -95,10 +95,10 @@ new_test_film (string name)
}
static void
-check_file (string ref, string check)
+check_file (boost::filesystem::path ref, boost::filesystem::path check)
{
uintmax_t N = boost::filesystem::file_size (ref);
- BOOST_CHECK_EQUAL (N, boost::filesystem::file_size(check));
+ BOOST_CHECK_EQUAL (N, boost::filesystem::file_size (check));
FILE* ref_file = fopen (ref.c_str(), "rb");
BOOST_CHECK (ref_file);
FILE* check_file = fopen (check.c_str(), "rb");
@@ -135,7 +135,7 @@ note (libdcp::NoteType t, string n)
}
void
-check_dcp (string ref, string check)
+check_dcp (boost::filesystem::path ref, boost::filesystem::path check)
{
libdcp::DCP ref_dcp (ref);
ref_dcp.read ();
diff --git a/test/test.h b/test/test.h
index e49dfc276..c58296665 100644
--- a/test/test.h
+++ b/test/test.h
@@ -23,6 +23,6 @@ class Film;
extern void wait_for_jobs ();
extern boost::shared_ptr<Film> new_test_film (std::string);
-extern void check_dcp (std::string, std::string);
+extern void check_dcp (boost::filesystem::path, boost::filesystem::path);
extern void check_xml (boost::filesystem::path, boost::filesystem::path, std::list<std::string>);
extern boost::filesystem::path test_film_dir (std::string);
diff --git a/test/wscript b/test/wscript
index df9aa88d3..1a924ba0d 100644
--- a/test/wscript
+++ b/test/wscript
@@ -36,6 +36,7 @@ def build(bld):
pixel_formats_test.cc
play_test.cc
ratio_test.cc
+ repeat_frame_test.cc
resampler_test.cc
scaling_test.cc
silence_padding_test.cc