From 45e3e3879e550b026b53a2bf0b5ae94a6b039db5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 14 Apr 2024 16:06:10 +0200 Subject: Add some helper functions. --- test/verify_test.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test/verify_test.cc') diff --git a/test/verify_test.cc b/test/verify_test.cc index 1106aea3..dd1600c5 100644 --- a/test/verify_test.cc +++ b/test/verify_test.cc @@ -353,6 +353,23 @@ private: }; +static +dcp::VerificationNote +ok(dcp::VerificationNote::Code code, shared_ptr cpl) +{ + return dcp::VerificationNote(dcp::VerificationNote::Type::OK, code).set_cpl_id(cpl->id()); +} + + +void +add(vector& notes, vector const& add) +{ + for (auto i: add) { + notes.push_back(i); + } +} + + BOOST_AUTO_TEST_CASE (verify_no_error) { stages.clear (); -- cgit v1.2.3