1//===- headerTest.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 STATICRESOLVER_TEST_H 10#define STATICRESOLVER_TEST_H 11 12#include <gtest.h> 13#include <mcld/MC/MCLDInfo.h> 14 15namespace mcld 16{ 17class StaticResolver; 18class ResolveInfoFactory; 19 20} // namespace for mcld 21 22namespace mcldtest 23{ 24 25/** \class StaticResolverTest 26 * \brief The testcases for static resolver 27 * 28 * \see StaticResolver 29 */ 30class StaticResolverTest : public ::testing::Test 31{ 32public: 33 // Constructor can do set-up work for all test here. 34 StaticResolverTest(); 35 36 // Destructor can do clean-up work that doesn't throw exceptions here. 37 virtual ~StaticResolverTest(); 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::StaticResolver* m_pResolver; 47 mcld::ResolveInfoFactory* m_pFactory; 48 mcld::MCLDInfo* m_pLDInfo; 49 mcld::DiagnosticLineInfo* m_pLineInfo; 50 mcld::DiagnosticPrinter* m_pPrinter; 51}; 52 53} // namespace of mcldtest 54 55#endif 56 57