/mordor/test/compoundlistener.h

http://github.com/mozy/mordor · C Header · 35 lines · 27 code · 8 blank · 0 comment · 0 complexity · 20e776817172b4d1d21f5076f43de697 MD5 · raw file

  1. #ifndef __MORDOR_TEST_COMPOUND_LISTENER_H__
  2. #define __MORDOR_TEST_COMPOUND_LISTENER_H__
  3. #include <boost/shared_ptr.hpp>
  4. #include <vector>
  5. #include "test.h"
  6. namespace Mordor {
  7. namespace Test {
  8. class CompoundListener : public TestListener
  9. {
  10. public:
  11. void addListener(boost::shared_ptr<TestListener> listener);
  12. void testStarted(const std::string &suite,
  13. const std::string &test);
  14. void testComplete(const std::string &suite,
  15. const std::string &test);
  16. void testSkipped(const std::string &suite,
  17. const std::string &tests);
  18. void testAsserted(const std::string &suite,
  19. const std::string &test, const Assertion &message);
  20. void testException(const std::string &suite,
  21. const std::string &test);
  22. void testsComplete();
  23. private:
  24. std::vector<boost::shared_ptr<TestListener> > m_listeners;
  25. };
  26. }}
  27. #endif