• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===- InputTreeTest.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 INPUTTREE_TEST_H
10 #define INPUTTREE_TEST_H
11 
12 #include <gtest.h>
13 
14 namespace mcld
15 {
16 class InputTree;
17 class InputFactory;
18 class AttributeFactory;
19 
20 } // namespace for mcld
21 
22 namespace mcldtest
23 {
24 
25 /** \class InputTreeTest
26  *  \brief
27  *
28  *  \see InputTree
29  */
30 class InputTreeTest : public ::testing::Test
31 {
32 public:
33 	// Constructor can do set-up work for all test here.
34 	InputTreeTest();
35 
36 	// Destructor can do clean-up work that doesn't throw exceptions here.
37 	virtual ~InputTreeTest();
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::AttributeFactory *m_pAttr;
47 	mcld::InputFactory *m_pAlloc;
48 	mcld::InputTree* m_pTestee;
49 };
50 
51 } // namespace of mcldtest
52 
53 #endif
54 
55