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 {
     18 class BinTree;
     19 
     20 } // namespace for mcld
     21 
     22 namespace mcldtest
     23 {
     24 
     25 /** \class BinTreeTest
     26  *  \brief Make sure the interface of BinTree , such as insert , traversal , etc..
     27  *
     28  *  \see BinTree
     29  */
     30 class BinTreeTest : public ::testing::Test
     31 {
     32 public:
     33 	// Constructor can do set-up work for all test here.
     34 	BinTreeTest();
     35 
     36 	// Destructor can do clean-up work that doesn't throw exceptions here.
     37 	virtual ~BinTreeTest();
     38 
     39 	// SetUp() will be called immediately before each test.
     40 	virtual void SetUp();
     41 
     42 	// TearDown() will be called immediately after each test.
     43 	virtual void TearDown();
     44 
     45 protected:
     46 	mcld::BinaryTree<int>* m_pTestee;
     47 };
     48 
     49 } // namespace of mcldtest
     50 
     51 #endif
     52 
     53