diff options
| author | Martin Hořeňovský | 2022-03-14 15:04:42 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-03-18 00:36:18 +0100 |
| commit | 4acc520f763f7a104d11d57afb8d3bab0bfa6ebc (patch) | |
| tree | 4bcbf287b1db41c6d8608905ca82471545517992 /tests/ExtraTests | |
| parent | 18c58667d780bfdc82d0e52d6ac6afc462e28f47 (diff) | |
| download | catch3-4acc520f763f7a104d11d57afb8d3bab0bfa6ebc.tar.gz | |
Event listeners no longer take reporter config in constructor
This also required splitting out Listener factory from
the reporter factory hierarchy. In return, the listener
factories only need to take in `IConfig const*`, which
opens up further refactorings down the road in the colour
selection and implementation.
Diffstat (limited to 'tests/ExtraTests')
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/ExtraTests/X24-ListenerStdoutCaptureInMultireporter.cpp b/tests/ExtraTests/X24-ListenerStdoutCaptureInMultireporter.cpp index 4c6148fd..60545851 100644 --- a/tests/ExtraTests/X24-ListenerStdoutCaptureInMultireporter.cpp +++ b/tests/ExtraTests/X24-ListenerStdoutCaptureInMultireporter.cpp @@ -25,7 +25,7 @@ namespace { class NonCapturingListener : public Catch::EventListenerBase { public: - NonCapturingListener( Catch::ReporterConfig const& config ): + NonCapturingListener( Catch::IConfig const* config ): EventListenerBase( config ) { m_preferences.shouldRedirectStdOut = false; std::cerr << "X24 - NonCapturingListener initialized.\n"; diff --git a/tests/ExtraTests/X25-ListenerCanAskForCapturedStdout.cpp b/tests/ExtraTests/X25-ListenerCanAskForCapturedStdout.cpp index b36a307a..a4a55ad7 100644 --- a/tests/ExtraTests/X25-ListenerCanAskForCapturedStdout.cpp +++ b/tests/ExtraTests/X25-ListenerCanAskForCapturedStdout.cpp @@ -25,7 +25,7 @@ namespace { class CapturingListener : public Catch::EventListenerBase { public: - CapturingListener( Catch::ReporterConfig const& config ): + CapturingListener( Catch::IConfig const* config ): EventListenerBase( config ) { m_preferences.shouldRedirectStdOut = true; std::cerr << "CapturingListener initialized\n"; diff --git a/tests/ExtraTests/X28-ListenersGetEventsBeforeReporters.cpp b/tests/ExtraTests/X28-ListenersGetEventsBeforeReporters.cpp index 37d14928..ce2d31eb 100644 --- a/tests/ExtraTests/X28-ListenersGetEventsBeforeReporters.cpp +++ b/tests/ExtraTests/X28-ListenersGetEventsBeforeReporters.cpp @@ -30,7 +30,7 @@ namespace { class TestListener : public Catch::EventListenerBase { public: - TestListener( Catch::ReporterConfig const& config ): + TestListener( Catch::IConfig const* config ): EventListenerBase( config ) { std::cout << "X28 - TestListener constructed.\n"; } |