Home | History | Annotate | Download | only in unittests
      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 {
     17 class MCRegionFragment;
     18 
     19 } // namespace for mcld
     20 
     21 namespace mcldtest
     22 {
     23 
     24 /** \class MCRegionFragmentTest
     25  *  \brief The testcase of MCRegionFragment.
     26  *
     27  *  \see MCRegionFragment
     28  */
     29 class MCRegionFragmentTest : public ::testing::Test
     30 {
     31 public:
     32 	// Constructor can do set-up work for all test here.
     33 	MCRegionFragmentTest();
     34 
     35 	// Destructor can do clean-up work that doesn't throw exceptions here.
     36 	virtual ~MCRegionFragmentTest();
     37 
     38 	// SetUp() will be called immediately before each test.
     39 	virtual void SetUp();
     40 
     41 	// TearDown() will be called immediately after each test.
     42 	virtual void TearDown();
     43 
     44 protected:
     45 	mcld::MCRegionFragment* m_pTestee;
     46 };
     47 
     48 } // namespace of mcldtest
     49 
     50 #endif
     51 
     52