/mordor/test/stdoutlistener.h
http://github.com/mozy/mordor · C Header · 35 lines · 28 code · 7 blank · 0 comment · 0 complexity · e855fd5659ab2b0d12a7293d8a5c83a9 MD5 · raw file
- #ifndef __STDOUT_LISTENER_H__
- #define __STDOUT_LISTENER_H__
- #include "test.h"
- namespace Mordor {
- namespace Test {
- class StdoutListener : public TestListener
- {
- public:
- StdoutListener();
- void testStarted(const std::string &suite,
- const std::string &test);
- void testComplete(const std::string &suite,
- const std::string &test);
- void testSkipped(const std::string &suite,
- const std::string &test);
- void testAsserted(const std::string &suite,
- const std::string &test, const Assertion &message);
- void testException(const std::string &suite,
- const std::string &test);
- void testsComplete();
- private:
- size_t m_tests;
- size_t m_success;
- size_t m_skip;
- std::vector<std::pair<std::string, std::string> > m_failures;
- };
- }}
- #endif