summaryrefslogtreecommitdiff
path: root/test/helpers.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-08-22 13:09:25 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-08-22 13:09:25 +0100
commitde50cd15f12216760bb746ec8936fc1501113425 (patch)
tree5046e4d35693de2e83b12881bc7cd7cf1a05e2d0 /test/helpers.h
parentEnable numeric conversion warning and fix the fallout (diff)
downloadmygrate-de50cd15f12216760bb746ec8936fc1501113425.tar.bz2
mygrate-de50cd15f12216760bb746ec8936fc1501113425.tar.xz
mygrate-de50cd15f12216760bb746ec8936fc1501113425.zip
Add EventCounter class
Diffstat (limited to 'test/helpers.h')
-rw-r--r--test/helpers.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/helpers.h b/test/helpers.h
index 87ef31d..9596e12 100644
--- a/test/helpers.h
+++ b/test/helpers.h
@@ -5,6 +5,7 @@
#include <cstddef>
#include <cstdio>
#include <ctime>
+#include <eventCounter.h>
#include <iostream>
#include <memory>
#include <optional>
@@ -68,4 +69,9 @@ struct MemStream {
FILE * s;
};
+class EventCounterTarget : public MyGrate::EventCounter {
+public:
+ EventCounterTarget & add(mariadb_rpl_event, unsigned long);
+};
+
#endif