Stephen Hines | 87f3465 | 2014-02-14 18:00:16 -0800 | [diff] [blame] | 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 <mcld/${deployment}/${class_name}.h> |
| 10 | #include "${class_name}Test.h" |
| 11 | |
| 12 | using namespace mcld; |
| 13 | using namespace mcld::test; |
| 14 | |
| 15 | |
| 16 | // Constructor can do set-up work for all test here. |
| 17 | ${class_name}Test::${class_name}Test() |
| 18 | { |
| 19 | } |
| 20 | |
| 21 | // Destructor can do clean-up work that doesn't throw exceptions here. |
| 22 | ${class_name}Test::~${class_name}Test() |
| 23 | { |
| 24 | } |
| 25 | |
| 26 | // SetUp() will be called immediately before each test. |
| 27 | void ${class_name}Test::SetUp() |
| 28 | { |
| 29 | } |
| 30 | |
| 31 | // TearDown() will be called immediately after each test. |
| 32 | void ${class_name}Test::TearDown() |
| 33 | { |
| 34 | } |
| 35 | |
| 36 | //===----------------------------------------------------------------------===// |
| 37 | // Testcases |
| 38 | //===----------------------------------------------------------------------===// |
Stephen Hines | 551ae4e | 2014-04-24 14:41:24 -0700 | [diff] [blame] | 39 | /** |
Stephen Hines | 87f3465 | 2014-02-14 18:00:16 -0800 | [diff] [blame] | 40 | TEST_F( ${class_name}Test, name of the testcase for ${class_name} ) { |
| 41 | Write you exercise here |
| 42 | } |
| 43 | **/ |
| 44 | |