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/LinkerConfig.h> 14 15 namespace mcld { 16 17 class StaticResolver; 18 class ResolveInfoFactory; 19 class DiagnosticPrinter; 20 21 } // namespace for mcld 22 23 namespace mcldtest 24 { 25 26 /** \class StaticResolverTest 27 * \brief The testcases for static resolver 28 * 29 * \see StaticResolver 30 */ 31 class StaticResolverTest : public ::testing::Test 32 { 33 public: 34 // Constructor can do set-up work for all test here. 35 StaticResolverTest(); 36 37 // Destructor can do clean-up work that doesn't throw exceptions here. 38 virtual ~StaticResolverTest(); 39 40 // SetUp() will be called immediately before each test. 41 virtual void SetUp(); 42 43 // TearDown() will be called immediately after each test. 44 virtual void TearDown(); 45 46 protected: 47 mcld::StaticResolver* m_pResolver; 48 mcld::LinkerConfig* m_pConfig; 49 mcld::DiagnosticPrinter* m_pPrinter; 50 }; 51 52 } // namespace of mcldtest 53 54 #endif 55 56