runner.h 631 B

123456789101112131415161718192021222324252627
  1. /* uTest Copyright (C) 2011 Data Differential, http://datadifferential.com/
  2. *
  3. * Use and distribution licensed under the BSD license. See
  4. * the COPYING file in the parent directory for full text.
  5. */
  6. #pragma once
  7. namespace libtest {
  8. /**
  9. Structure which houses the actual callers for the test cases contained in
  10. the collections.
  11. */
  12. class Runner {
  13. public:
  14. virtual test_return_t run(test_callback_fn* func, void *object);
  15. virtual test_return_t pre(test_callback_fn* func, void *object);
  16. virtual test_return_t post(test_callback_fn* func, void *object);
  17. Runner();
  18. virtual ~Runner() { }
  19. };
  20. } // namespace Runner