| //===- LinearAllocatorTest.h ----------------------------------------------===// |
| // This file is distributed under the University of Illinois Open Source |
| // License. See LICENSE.TXT for details. |
| //===----------------------------------------------------------------------===// |
| #ifndef LINEAR_ALLOCATOR_TEST_H |
| #define LINEAR_ALLOCATOR_TEST_H |
| #include "mcld/Support/Allocators.h" |
| /** \class LinearAllocatorTest |
| * \brief The testcase for LinearAllocator |
| class LinearAllocatorTest : public ::testing::Test { |
| Data() : one(1), two(2), three(3), four(4) {} |
| // Constructor can do set-up work for all test here. |
| // Destructor can do clean-up work that doesn't throw exceptions here. |
| virtual ~LinearAllocatorTest(); |
| // SetUp() will be called immediately before each test. |
| // TearDown() will be called immediately after each test. |
| enum TemplateArgsType { CHUNK_SIZE = 32 }; |
| typedef mcld::LinearAllocator<Data, CHUNK_SIZE> Alloc; |
| } // namespace of mcldtest |