diff options
| author | Martin Hořeňovský | 2022-04-10 21:50:30 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-04-10 21:50:51 +0200 |
| commit | 4e006a93ffbce660c73f3bcd503513bac03050e5 (patch) | |
| tree | c075282d1f4523feb12c84dc32c67a4e43c295d0 /src/catch2/internal | |
| parent | 73d8fb5bca1e428764a0c49c3efb9455d77f9d4d (diff) | |
| download | catch3-4e006a93ffbce660c73f3bcd503513bac03050e5.tar.gz | |
Rename IStreamingReporterPtr => IEventListenerPtr
This reflects the renaming of the reporter/listener base class.
Diffstat (limited to 'src/catch2/internal')
| -rw-r--r-- | src/catch2/internal/catch_reporter_registry.cpp | 2 | ||||
| -rw-r--r-- | src/catch2/internal/catch_reporter_registry.hpp | 2 | ||||
| -rw-r--r-- | src/catch2/internal/catch_run_context.cpp | 2 | ||||
| -rw-r--r-- | src/catch2/internal/catch_run_context.hpp | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/catch2/internal/catch_reporter_registry.cpp b/src/catch2/internal/catch_reporter_registry.cpp index 7ac3a606..56982e27 100644 --- a/src/catch2/internal/catch_reporter_registry.cpp +++ b/src/catch2/internal/catch_reporter_registry.cpp @@ -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; diff --git a/src/catch2/internal/catch_reporter_registry.hpp b/src/catch2/internal/catch_reporter_registry.hpp index aaa99ba0..3466bfd8 100644 --- a/src/catch2/internal/catch_reporter_registry.hpp +++ b/src/catch2/internal/catch_reporter_registry.hpp @@ -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 ); diff --git a/src/catch2/internal/catch_run_context.cpp b/src/catch2/internal/catch_run_context.cpp index 144bdb3c..6a32cdc1 100644 --- a/src/catch2/internal/catch_run_context.cpp +++ b/src/catch2/internal/catch_run_context.cpp @@ -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), diff --git a/src/catch2/internal/catch_run_context.hpp b/src/catch2/internal/catch_run_context.hpp index e0b64a04..4441a097 100644 --- a/src/catch2/internal/catch_run_context.hpp +++ b/src/catch2/internal/catch_run_context.hpp @@ -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; |