summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-09-15 20:56:44 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-09-15 20:56:44 +0200
commit1f34063b3adfde1d38198209519ebc9ceda2099e (patch)
tree1a0c65970e89d0ab1814afaf589e69febdf672c0
parent18a622f378b403788c67fc785d30f4609caa3fc7 (diff)
fixup! Fix issues in buffer
-rw-r--r--test/buffer.cc5
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);