diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-08 16:14:50 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-08 16:15:07 +0100 |
commit | bdb5c897087d3588f456c020b3633cbd694003da (patch) | |
tree | ef09420dad64a438e097645850b8596eebe28a97 /test/helpers.h | |
parent | Simplify some bits with concepts (diff) | |
download | mygrate-bdb5c897087d3588f456c020b3633cbd694003da.tar.bz2 mygrate-bdb5c897087d3588f456c020b3633cbd694003da.tar.xz mygrate-bdb5c897087d3588f456c020b3633cbd694003da.zip |
Tests, fixes, improvements to WritePqCopyStream
Diffstat (limited to 'test/helpers.h')
-rw-r--r-- | test/helpers.h | 13 |
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 |