Rename IStreamingReporterPtr => IEventListenerPtr

This reflects the renaming of the reporter/listener base class.
This commit is contained in:
Martin Hořeňovský
2022-04-10 21:50:51 +02:00
parent 73d8fb5bca
commit 4e006a93ff
12 changed files with 23 additions and 23 deletions
@@ -37,7 +37,7 @@ namespace Catch {
ReporterRegistry::~ReporterRegistry() = default;
IStreamingReporterPtr ReporterRegistry::create( std::string const& name, ReporterConfig const& config ) const {
IEventListenerPtr ReporterRegistry::create( std::string const& name, ReporterConfig const& config ) const {
auto it = m_factories.find( name );
if( it == m_factories.end() )
return nullptr;
@@ -21,7 +21,7 @@ namespace Catch {
ReporterRegistry();
~ReporterRegistry() override; // = default, out of line to allow fwd decl
IStreamingReporterPtr create( std::string const& name, ReporterConfig const& config ) const override;
IEventListenerPtr create( std::string const& name, ReporterConfig const& config ) const override;
void registerReporter( std::string const& name, IReporterFactoryPtr factory );
void registerListener( Detail::unique_ptr<EventListenerFactory> factory );
+1 -1
View File
@@ -160,7 +160,7 @@ namespace Catch {
GeneratorTracker::~GeneratorTracker() = default;
}
RunContext::RunContext(IConfig const* _config, IStreamingReporterPtr&& reporter)
RunContext::RunContext(IConfig const* _config, IEventListenerPtr&& reporter)
: m_runInfo(_config->name()),
m_context(getCurrentMutableContext()),
m_config(_config),
+2 -2
View File
@@ -36,7 +36,7 @@ namespace Catch {
RunContext( RunContext const& ) = delete;
RunContext& operator =( RunContext const& ) = delete;
explicit RunContext( IConfig const* _config, IStreamingReporterPtr&& reporter );
explicit RunContext( IConfig const* _config, IEventListenerPtr&& reporter );
~RunContext() override;
@@ -130,7 +130,7 @@ namespace Catch {
IConfig const* m_config;
Totals m_totals;
IStreamingReporterPtr m_reporter;
IEventListenerPtr m_reporter;
std::vector<MessageInfo> m_messages;
std::vector<ScopedMessage> m_messageScopes; /* Keeps owners of so-called unscoped messages. */
AssertionInfo m_lastAssertionInfo;