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