diff options
Diffstat (limited to 'test/test.cc')
| -rw-r--r-- | test/test.cc | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/test/test.cc b/test/test.cc index 19e8f978a..cbd12e1ee 100644 --- a/test/test.cc +++ b/test/test.cc @@ -458,7 +458,7 @@ check_file (boost::filesystem::path ref, boost::filesystem::path check) static void note (dcp::NoteType t, string n) { - if (t == dcp::DCP_ERROR) { + if (t == dcp::NoteType::ERROR) { cerr << n << "\n"; } } @@ -790,3 +790,24 @@ LogSwitcher::~LogSwitcher () dcpomatic_log = _old; } +std::ostream& +dcp::operator<< (std::ostream& s, dcp::Size i) +{ + s << i.width << "x" << i.height; + return s; +} + +std::ostream& +dcp::operator<< (std::ostream& s, Standard t) +{ + switch (t) { + case Standard::INTEROP: + s << "interop"; + break; + case Standard::SMPTE: + s << "smpte"; + break; + } + return s; +} + |
