From bdb5c897087d3588f456c020b3633cbd694003da Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 8 Aug 2021 16:14:50 +0100 Subject: Tests, fixes, improvements to WritePqCopyStream --- test/helpers.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/helpers.h') 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 #include +#include #include #include +#include #include 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 -- cgit v1.2.3