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