1//===- ReadStageTest.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 MCLD_UNITTEST_READSTAGE_TEST_H
10#define MCLD_UNITTEST_READSTAGE_TEST_H
11
12#include <gtest.h>
13#include "Linker/TestLinker.h"
14
15namespace mcld {
16namespace test {
17
18class ReadStageTest : public ::testing::Test
19{
20public:
21  // Constructor can do set-up work for all test here.
22  ReadStageTest();
23
24  // Destructor can do clean-up work that doesn't throw exceptions here.
25  virtual ~ReadStageTest();
26
27  // SetUp() will be called immediately before each test.
28  virtual void SetUp();
29
30  // TearDown() will be called immediately after each test.
31  virtual void TearDown();
32
33  void dumpInput(const mcld::Input &pInput, mcld::FileHandle &pFile, size_t pIdent);
34
35  void dumpOutput(const mcld::Output &pOutput, mcld::FileHandle &pFile, size_t pIdent);
36protected:
37  TestLinker* m_pLinker;
38};
39
40} // end of namespace test
41} // end of namespace mcld
42
43#endif
44
45