summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-04-14 16:06:10 +0200
committerCarl Hetherington <cth@carlh.net>2024-04-15 10:59:34 +0200
commit45e3e3879e550b026b53a2bf0b5ae94a6b039db5 (patch)
treebefb566692a91a7eec92b4b2eff8aa58af3d73f4 /test
parentc1175b5ce81a6bad56e3f372c0f72cc55595f8f2 (diff)
Add some helper functions.
Diffstat (limited to 'test')
-rw-r--r--test/verify_test.cc17
1 files changed, 17 insertions, 0 deletions
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<const dcp::CPL> cpl)
+{
+ return dcp::VerificationNote(dcp::VerificationNote::Type::OK, code).set_cpl_id(cpl->id());
+}
+
+
+void
+add(vector<dcp::VerificationNote>& notes, vector<dcp::VerificationNote> const& add)
+{
+ for (auto i: add) {
+ notes.push_back(i);
+ }
+}
+
+
BOOST_AUTO_TEST_CASE (verify_no_error)
{
stages.clear ();