PageRenderTime 150ms CodeModel.GetById 60ms app.highlight 13ms RepoModel.GetById 73ms app.codeStats 0ms

/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
 4#include <boost/shared_ptr.hpp>
 5#include <vector>
 6
 7#include "test.h"
 8
 9namespace Mordor {
10namespace Test {
11
12class CompoundListener : public TestListener
13{
14public:
15    void addListener(boost::shared_ptr<TestListener> listener);
16
17    void testStarted(const std::string &suite,
18        const std::string &test);
19    void testComplete(const std::string &suite,
20        const std::string &test);
21    void testSkipped(const std::string &suite,
22        const std::string &tests);
23    void testAsserted(const std::string &suite,
24        const std::string &test, const Assertion &message);
25    void testException(const std::string &suite,
26        const std::string &test);
27    void testsComplete();
28
29private:
30    std::vector<boost::shared_ptr<TestListener> > m_listeners;
31};
32
33}}
34
35#endif