diff options
Diffstat (limited to 'test/test_common.hpp')
-rw-r--r-- | test/test_common.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_common.hpp b/test/test_common.hpp index 5f6828f..3be26f0 100644 --- a/test/test_common.hpp +++ b/test/test_common.hpp @@ -58,16 +58,22 @@ static_assert(sizeof(FOUR_BYTE) == 4 + 1); // NOLINTEND(cppcoreguidelines-macro-usage) +// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) struct MockFudAlloc { + virtual ~MockFudAlloc() = default; virtual std::byte* operator()(size_t size); }; +// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) extern MockFudAlloc globalDefaultMockAlloc; +// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) struct MockFudDealloc { + virtual ~MockFudDealloc() = default; virtual void operator()(std::byte* pointer); }; +// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) extern MockFudDealloc globalDefaultMockDealloc; struct MockFudAllocator { @@ -78,6 +84,7 @@ struct MockFudAllocator { MockFudDealloc* m_deallocator{&globalDefaultMockDealloc}; }; +// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) extern MockFudAllocator globalMockFudAlloc; class String; |