1//===- UniqueGCFactoryBaseTest.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 UNIQUE_GCFACTORYBASE_TEST_H
10#define UNIQUE_GCFACTORYBASE_TEST_H
11
12#include <mcld/Support/UniqueGCFactory.h>
13#include <mcld/LinkerConfig.h>
14#include <mcld/LD/DiagnosticPrinter.h>
15#include <gtest.h>
16
17namespace mcldtest
18{
19
20/** \class UniqueGCFactoryBaseTest
21 *  - check the unique of key.
22 *  - make sure the key associates with the same storage of value.
23 *  - check if all functions in the GCFactoryBase are available.
24 */
25class UniqueGCFactoryBaseTest : public ::testing::Test
26{
27public:
28  // Constructor can do set-up work for all test here.
29  UniqueGCFactoryBaseTest();
30
31  // Destructor can do clean-up work that doesn't throw exceptions here.
32  virtual ~UniqueGCFactoryBaseTest();
33
34  // SetUp() will be called immediately before each test.
35  virtual void SetUp();
36
37  // TearDown() will be called immediately after each test.
38  virtual void TearDown();
39
40private:
41  mcld::LinkerConfig* m_pConfig;
42};
43
44} // namespace of mcldtest
45
46#endif
47
48