summaryrefslogtreecommitdiff
path: root/test/helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/helpers.h')
-rw-r--r--test/helpers.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/helpers.h b/test/helpers.h
index 59ae18d..87ef31d 100644
--- a/test/helpers.h
+++ b/test/helpers.h
@@ -3,8 +3,10 @@
#include <concepts>
#include <cstddef>
+#include <cstdio>
#include <ctime>
#include <iostream>
+#include <memory>
#include <optional>
inline constexpr std::byte operator""_b(const unsigned long long hex)
@@ -55,4 +57,15 @@ make_tm(int year, int mon, int day, int hr, int min, int sec)
return tm;
}
+struct MemStream {
+ MemStream();
+ virtual ~MemStream();
+
+ void flush();
+
+ char * out;
+ size_t len;
+ FILE * s;
+};
+
#endif