Home | History | Annotate | Download | only in unittests
      1 //===- SymbolTableTest.h --------------------------------------------------===//
      2 //
      3 //                     The MCLinker Project
      4 //
      5 // This file is distributed under the University of Illinois Open Source
      6 // License. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 #ifndef LD_SYMBOLTABLE_TEST_H
     10 #define LD_SYMBOLTABLE_TEST_H
     11 #include "mcld/LD/StringTable.h"
     12 #include <gtest.h>
     13 
     14 namespace mcld
     15 {
     16   template <template <class> class, class>
     17   class SymbolTable;
     18 } // namespace for mcld
     19 
     20 namespace mcldtest
     21 {
     22 
     23 /** \class SymbolTableTest
     24  *  \brief
     25  *
     26  *  \see SymbolTable
     27  */
     28 class SymbolTableTest : public ::testing::Test
     29 {
     30 public:
     31   // Constructor can do set-up work for all test here.
     32   SymbolTableTest();
     33 
     34   // Destructor can do clean-up work that doesn't throw exceptions here.
     35   virtual ~SymbolTableTest();
     36 
     37   // SetUp() will be called immediately before each test.
     38   virtual void SetUp();
     39 
     40   // TearDown() will be called immediately after each test.
     41   virtual void TearDown();
     42 
     43 protected:
     44   mcld::SymbolTable<>* m_pTestee;
     45   mcld::StringTable m_StrTable;
     46 };
     47 
     48 } // namespace of mcldtest
     49 
     50 #endif
     51