7 #ifndef IGLOO_TESTLISTENER_AGGREGATOR_H 8 #define IGLOO_TESTLISTENER_AGGREGATOR_H 16 listeners_.push_back(listener);
19 void TestRunStarting()
21 for(TestListeners::const_iterator it = listeners_.begin(); it != listeners_.end(); it++)
23 (*it)->TestRunStarting();
29 for(TestListeners::const_iterator it = listeners_.begin(); it != listeners_.end(); it++)
31 (*it)->TestRunEnded(results);
37 for(TestListeners::const_iterator it = listeners_.begin(); it != listeners_.end(); it++)
39 (*it)->ContextRunStarting(context);
45 for(TestListeners::const_iterator it = listeners_.begin(); it != listeners_.end(); it++)
47 (*it)->ContextRunEnded(context);
51 void SpecRunStarting(
const ContextBase& context,
const std::string& specName)
53 for(TestListeners::const_iterator it = listeners_.begin(); it != listeners_.end(); it++)
55 (*it)->SpecRunStarting(context, specName);
59 void SpecSucceeded(
const ContextBase& context,
const std::string& specName)
61 for(TestListeners::const_iterator it = listeners_.begin(); it != listeners_.end(); it++)
63 (*it)->SpecSucceeded(context, specName);
67 void SpecFailed(
const ContextBase& context,
const std::string& specName)
69 for(TestListeners::const_iterator it = listeners_.begin(); it != listeners_.end(); it++)
71 (*it)->SpecFailed(context, specName);
76 typedef std::list<TestListener*> TestListeners;
77 TestListeners listeners_;
Definition: testlistener.h:14
Definition: testlisteneraggregator.h:11
Definition: contextbase.h:15
Definition: testresults.h:12