blob: 0f4b26febdb56c8befcfcc3a11e24f8503f64589 [file] [log] [blame]
Shih-wei Liao5460a1f2012-03-16 22:41:16 -07001//===- 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
Stephen Hines37b74a32014-11-26 18:48:20 -080016namespace mcld {
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070017class BinTree;
18
Stephen Hines37b74a32014-11-26 18:48:20 -080019} // namespace for mcld
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070020
Stephen Hines37b74a32014-11-26 18:48:20 -080021namespace mcldtest {
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070022
23/** \class BinTreeTest
Stephen Hines37b74a32014-11-26 18:48:20 -080024 * \brief Make sure the interface of BinTree , such as insert , traversal ,
25 *etc..
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070026 *
Stephen Hines551ae4e2014-04-24 14:41:24 -070027 * \see BinTree
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070028 */
Stephen Hines37b74a32014-11-26 18:48:20 -080029class BinTreeTest : public ::testing::Test {
30 public:
31 // Constructor can do set-up work for all test here.
32 BinTreeTest();
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070033
Stephen Hines37b74a32014-11-26 18:48:20 -080034 // Destructor can do clean-up work that doesn't throw exceptions here.
35 virtual ~BinTreeTest();
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070036
Stephen Hines37b74a32014-11-26 18:48:20 -080037 // SetUp() will be called immediately before each test.
38 virtual void SetUp();
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070039
Stephen Hines37b74a32014-11-26 18:48:20 -080040 // TearDown() will be called immediately after each test.
41 virtual void TearDown();
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070042
Stephen Hines37b74a32014-11-26 18:48:20 -080043 protected:
44 mcld::BinaryTree<int>* m_pTestee;
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070045};
46
Stephen Hines37b74a32014-11-26 18:48:20 -080047} // namespace of mcldtest
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070048
49#endif