implTest.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. using namespace mcld;
  12. using namespace mcld::test;
  13. // Constructor can do set-up work for all test here.
  14. ${class_name}Test::${class_name}Test()
  15. {
  16. }
  17. // Destructor can do clean-up work that doesn't throw exceptions here.
  18. ${class_name}Test::~${class_name}Test()
  19. {
  20. }
  21. // SetUp() will be called immediately before each test.
  22. void ${class_name}Test::SetUp()
  23. {
  24. }
  25. // TearDown() will be called immediately after each test.
  26. void ${class_name}Test::TearDown()
  27. {
  28. }
  29. //===----------------------------------------------------------------------===//
  30. // Testcases
  31. //===----------------------------------------------------------------------===//
  32. /**
  33. TEST_F( ${class_name}Test, name of the testcase for ${class_name} ) {
  34. Write you exercise here
  35. }
  36. **/