PageRenderTime 41ms CodeModel.GetById 20ms app.highlight 4ms RepoModel.GetById 16ms app.codeStats 0ms

/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
 1#ifndef __STDOUT_LISTENER_H__
 2#define __STDOUT_LISTENER_H__
 3
 4#include "test.h"
 5
 6namespace Mordor {
 7namespace Test {
 8
 9class StdoutListener : public TestListener
10{
11public:
12    StdoutListener();
13
14    void testStarted(const std::string &suite,
15        const std::string &test);
16    void testComplete(const std::string &suite,
17        const std::string &test);
18    void testSkipped(const std::string &suite,
19        const std::string &test);
20    void testAsserted(const std::string &suite,
21        const std::string &test, const Assertion &message);
22    void testException(const std::string &suite,
23        const std::string &test);
24    void testsComplete();
25
26private:
27    size_t m_tests;
28    size_t m_success;
29    size_t m_skip;
30    std::vector<std::pair<std::string, std::string> > m_failures;
31};
32
33}}
34
35#endif