Home | History | Annotate | Download | only in unittests
      1 //===- BinTreeTest.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 BINTREE_TEST_H
     10 #define BINTREE_TEST_H
     11 
     12 #include "mcld/ADT/BinTree.h"
     13 
     14 #include <gtest.h>
     15 
     16 namespace mcld {
     17 class BinTree;
     18 
     19 }  // namespace for mcld
     20 
     21 namespace mcldtest {
     22 
     23 /** \class BinTreeTest
     24  *  \brief Make sure the interface of BinTree , such as insert , traversal ,
     25  *etc..
     26  *
     27  *  \see BinTree
     28  */
     29 class BinTreeTest : public ::testing::Test {
     30  public:
     31   // Constructor can do set-up work for all test here.
     32   BinTreeTest();
     33 
     34   // Destructor can do clean-up work that doesn't throw exceptions here.
     35   virtual ~BinTreeTest();
     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::BinaryTree<int>* m_pTestee;
     45 };
     46 
     47 }  // namespace of mcldtest
     48 
     49 #endif
     50