StaticResolverTest.h revision 22add6ff3426df1a85089fe6a6e1597ee3b6f300
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
15namespace mcld {
16
17class StaticResolver;
18class ResolveInfoFactory;
19class DiagnosticPrinter;
20
21} // namespace for mcld
22
23namespace mcldtest
24{
25
26/** \class StaticResolverTest
27 *  \brief The testcases for static resolver
28 *
29 *  \see StaticResolver
30 */
31class StaticResolverTest : public ::testing::Test
32{
33public:
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
46protected:
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