Home | History | Annotate | Download | only in unittests
      1 //===- headerTest.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_FRAGMENT_TEST_H
     10 #define MCLD_FRAGMENT_TEST_H
     11 
     12 #include <gtest.h>
     13 
     14 namespace mcld {
     15 class Fragment;
     16 
     17 }  // namespace for mcld
     18 
     19 namespace mcldtest {
     20 
     21 /** \class FragmentTest
     22  *  \brief Unit test for mcld::Fragment.
     23  *
     24  *  \see Fragment
     25  */
     26 class FragmentTest : public ::testing::Test {
     27  public:
     28   // Constructor can do set-up work for all test here.
     29   FragmentTest();
     30 
     31   // Destructor can do clean-up work that doesn't throw exceptions here.
     32   virtual ~FragmentTest();
     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 
     40  protected:
     41   mcld::Fragment* m_pTestee;
     42 };
     43 
     44 }  // namespace of mcldtest
     45 
     46 #endif
     47