diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-09-15 20:56:44 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-09-15 20:56:44 +0200 |
| commit | 1f34063b3adfde1d38198209519ebc9ceda2099e (patch) | |
| tree | 1a0c65970e89d0ab1814afaf589e69febdf672c0 /test/buffer.cc | |
| parent | 18a622f378b403788c67fc785d30f4609caa3fc7 (diff) | |
fixup! Fix issues in buffer
Diffstat (limited to 'test/buffer.cc')
| -rw-r--r-- | test/buffer.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/buffer.cc b/test/buffer.cc index 3bbfc95..e747fb7 100644 --- a/test/buffer.cc +++ b/test/buffer.cc @@ -2,7 +2,10 @@ #include "buffer.hh" +#include <cstdint> #include <cstring> +#include <memory> +#include <utility> namespace { @@ -13,7 +16,7 @@ enum class BufferType : uint8_t { class BufferTest : public testing::TestWithParam<BufferType> { protected: - std::unique_ptr<Buffer> make(size_t min_size, size_t max_size) { + static std::unique_ptr<Buffer> make(size_t min_size, size_t max_size) { switch (GetParam()) { case BufferType::Fixed: return Buffer::fixed(min_size); |
