1 //===- MCRegionFragment.h - unittest for MCRegionFragment -----------------===// 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 10 #ifndef MCREGIONFRAGMENT_TEST_H 11 #define MCREGIONFRAGMENT_TEST_H 12 13 #include <gtest.h> 14 15 namespace mcld { 16 class MCRegionFragment; 17 18 } // namespace for mcld 19 20 namespace mcldtest { 21 22 /** \class MCRegionFragmentTest 23 * \brief The testcase of MCRegionFragment. 24 * 25 * \see MCRegionFragment 26 */ 27 class MCRegionFragmentTest : public ::testing::Test { 28 public: 29 // Constructor can do set-up work for all test here. 30 MCRegionFragmentTest(); 31 32 // Destructor can do clean-up work that doesn't throw exceptions here. 33 virtual ~MCRegionFragmentTest(); 34 35 // SetUp() will be called immediately before each test. 36 virtual void SetUp(); 37 38 // TearDown() will be called immediately after each test. 39 virtual void TearDown(); 40 41 protected: 42 mcld::MCRegionFragment* m_pTestee; 43 }; 44 45 } // namespace of mcldtest 46 47 #endif 48