headerTest.h 949 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #include <gtest.h>
  12. namespace mcld {
  13. class ${class_name};
  14. namespace test {
  15. class ${class_name}Test : public ::testing::Test
  16. {
  17. public:
  18. // Constructor can do set-up work for all test here.
  19. ${class_name}Test();
  20. // Destructor can do clean-up work that doesn't throw exceptions here.
  21. virtual ~${class_name}Test();
  22. // SetUp() will be called immediately before each test.
  23. virtual void SetUp();
  24. // TearDown() will be called immediately after each test.
  25. virtual void TearDown();
  26. };
  27. } // namespace of test
  28. } // namespace of mcld
  29. #endif