blob: 14ba2e0e91466a27e2767aaabbc081bcc32eb721 [file] [log] [blame]
Shih-wei Liao5460a1f2012-03-16 22:41:16 -07001//===- 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
Stephen Hines37b74a32014-11-26 18:48:20 -080012#include "mcld/Support/UniqueGCFactory.h"
13#include "mcld/LinkerConfig.h"
14#include "mcld/LD/DiagnosticPrinter.h"
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070015#include <gtest.h>
16
Stephen Hines37b74a32014-11-26 18:48:20 -080017namespace mcldtest {
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070018
19/** \class UniqueGCFactoryBaseTest
20 * - check the unique of key.
21 * - make sure the key associates with the same storage of value.
22 * - check if all functions in the GCFactoryBase are available.
23 */
Stephen Hines37b74a32014-11-26 18:48:20 -080024class UniqueGCFactoryBaseTest : public ::testing::Test {
25 public:
Shih-wei Liao22add6f2012-12-15 17:21:00 -080026 // Constructor can do set-up work for all test here.
27 UniqueGCFactoryBaseTest();
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070028
Shih-wei Liao22add6f2012-12-15 17:21:00 -080029 // Destructor can do clean-up work that doesn't throw exceptions here.
30 virtual ~UniqueGCFactoryBaseTest();
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070031
Shih-wei Liao22add6f2012-12-15 17:21:00 -080032 // SetUp() will be called immediately before each test.
33 virtual void SetUp();
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070034
Shih-wei Liao22add6f2012-12-15 17:21:00 -080035 // TearDown() will be called immediately after each test.
36 virtual void TearDown();
Zonr Changaffc1502012-07-16 14:28:23 +080037
Stephen Hines37b74a32014-11-26 18:48:20 -080038 private:
Shih-wei Liao22add6f2012-12-15 17:21:00 -080039 mcld::LinkerConfig* m_pConfig;
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070040};
41
Stephen Hines37b74a32014-11-26 18:48:20 -080042} // namespace of mcldtest
Shih-wei Liao5460a1f2012-03-16 22:41:16 -070043
44#endif