diff --git a/extras/tests/Helpers/Allocators.hpp b/extras/tests/Helpers/Allocators.hpp index 5df98ed4..6877eaf1 100644 --- a/extras/tests/Helpers/Allocators.hpp +++ b/extras/tests/Helpers/Allocators.hpp @@ -10,6 +10,8 @@ #include +namespace { + struct FailingAllocator : ArduinoJson::Allocator { static FailingAllocator* instance() { static FailingAllocator allocator; @@ -260,6 +262,7 @@ class TimebombAllocator : public ArduinoJson::Allocator { size_t countdown_ = 0; Allocator* upstream_; }; +} // namespace inline size_t sizeofPoolList(size_t n = ARDUINOJSON_INITIAL_POOL_COUNT) { return sizeof(ArduinoJson::detail::VariantPool) * n;