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