Home | History | Annotate | Download | only in templates
      1 //===- implTest.cpp -------------------------------------------------------===//
      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 #include <${class_name}.h>
     10 #include "${class_name}Test.h"
     11 
     12 using namespace mcld;
     13 using namespace mcldtest;
     14 
     15 
     16 // Constructor can do set-up work for all test here.
     17 ${class_name}Test::${class_name}Test()
     18 {
     19 	// create testee. modify it if need
     20 	m_pTestee = new ${class_name}();
     21 }
     22 
     23 // Destructor can do clean-up work that doesn't throw exceptions here.
     24 ${class_name}Test::~${class_name}Test()
     25 {
     26 	delete m_pTestee;
     27 }
     28 
     29 // SetUp() will be called immediately before each test.
     30 void ${class_name}Test::SetUp()
     31 {
     32 }
     33 
     34 // TearDown() will be called immediately after each test.
     35 void ${class_name}Test::TearDown()
     36 {
     37 }
     38 
     39 //==========================================================================//
     40 // Testcases
     41 //
     42 
     43 /**
     44 TEST_F( ${class_name}Test, name of  the testcase for ${class_name} ) {
     45 	Write you exercise here
     46 }
     47 **/
     48 
     49