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 14namespace mcld 15{ 16class InputTree; 17class InputFactory; 18class AttributeFactory; 19 20} // namespace for mcld 21 22namespace mcldtest 23{ 24 25/** \class InputTreeTest 26 * \brief 27 * 28 * \see InputTree 29 */ 30class InputTreeTest : public ::testing::Test 31{ 32public: 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 45protected: 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