Home | History | Annotate | Download | only in unittests
      1 //===- PathTest.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 PATH_TEST_H
     10 #define PATH_TEST_H
     11 
     12 #include "mcld/Support/Path.h"
     13 #include <gtest.h>
     14 
     15 namespace mcldtest
     16 {
     17 
     18 /** \class PathTest
     19  *  \brief a testcase for mcld::Path and its non-member funtions.
     20  *
     21  *  \see Path
     22  */
     23 class PathTest : public ::testing::Test
     24 {
     25 public:
     26 	// Constructor can do set-up work for all test here.
     27 	PathTest();
     28 
     29 	// Destructor can do clean-up work that doesn't throw exceptions here.
     30 	virtual ~PathTest();
     31 
     32 	// SetUp() will be called immediately before each test.
     33 	virtual void SetUp();
     34 
     35 	// TearDown() will be called immediately after each test.
     36 	virtual void TearDown();
     37 
     38 protected:
     39 	mcld::sys::fs::Path* m_pTestee;
     40 };
     41 
     42 } // namespace of mcldtest
     43 
     44 #endif
     45 
     46