diff options
| author | Martin Hořeňovský | 2022-03-06 15:37:16 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-03-06 16:28:21 +0100 |
| commit | 4dd5e2eeceaf5c65a7648373b44ef5e68490616b (patch) | |
| tree | 87e2f5d0ef961205d04e972df3c78d84be59a326 /src/catch2/interfaces | |
| parent | f9facc188142f545e34cb8b12e540eed18b30810 (diff) | |
| download | catch3-4dd5e2eeceaf5c65a7648373b44ef5e68490616b.tar.gz | |
Rename base reporter iface IStreamingReporter -> IEventListener
Diffstat (limited to 'src/catch2/interfaces')
4 files changed, 9 insertions, 9 deletions
diff --git a/src/catch2/interfaces/catch_interfaces_reporter.cpp b/src/catch2/interfaces/catch_interfaces_reporter.cpp index 5439254c..e5d3921f 100644 --- a/src/catch2/interfaces/catch_interfaces_reporter.cpp +++ b/src/catch2/interfaces/catch_interfaces_reporter.cpp @@ -78,6 +78,6 @@ namespace Catch { aborting( _aborting ) {} - IStreamingReporter::~IStreamingReporter() = default; + IEventListener::~IEventListener() = default; } // end namespace Catch diff --git a/src/catch2/interfaces/catch_interfaces_reporter.hpp b/src/catch2/interfaces/catch_interfaces_reporter.hpp index 432bc4e5..c05648b7 100644 --- a/src/catch2/interfaces/catch_interfaces_reporter.hpp +++ b/src/catch2/interfaces/catch_interfaces_reporter.hpp @@ -150,7 +150,7 @@ namespace Catch { }; //! The common base for all reporters and event listeners - struct IStreamingReporter { + class IEventListener { protected: //! Derived classes can set up their preferences here ReporterPreferences m_preferences; @@ -158,9 +158,9 @@ namespace Catch { IConfig const* m_config; public: - IStreamingReporter( IConfig const* config ): m_config( config ) {} + IEventListener( IConfig const* config ): m_config( config ) {} - virtual ~IStreamingReporter(); // = default; + virtual ~IEventListener(); // = default; // Implementing class must also provide the following static methods: // static std::string getDescription(); @@ -230,7 +230,7 @@ namespace Catch { virtual void listTags(std::vector<TagInfo> const& tags) = 0; }; - using IStreamingReporterPtr = Detail::unique_ptr<IStreamingReporter>; + using IStreamingReporterPtr = Detail::unique_ptr<IEventListener>; } // end namespace Catch diff --git a/src/catch2/interfaces/catch_interfaces_reporter_factory.hpp b/src/catch2/interfaces/catch_interfaces_reporter_factory.hpp index 5a40d1bd..eb107c20 100644 --- a/src/catch2/interfaces/catch_interfaces_reporter_factory.hpp +++ b/src/catch2/interfaces/catch_interfaces_reporter_factory.hpp @@ -15,8 +15,8 @@ namespace Catch { struct ReporterConfig; - struct IStreamingReporter; - using IStreamingReporterPtr = Detail::unique_ptr<IStreamingReporter>; + class IEventListener; + using IStreamingReporterPtr = Detail::unique_ptr<IEventListener>; struct IReporterFactory { diff --git a/src/catch2/interfaces/catch_interfaces_reporter_registry.hpp b/src/catch2/interfaces/catch_interfaces_reporter_registry.hpp index 582c39b4..904ffd03 100644 --- a/src/catch2/interfaces/catch_interfaces_reporter_registry.hpp +++ b/src/catch2/interfaces/catch_interfaces_reporter_registry.hpp @@ -19,8 +19,8 @@ namespace Catch { struct IConfig; - struct IStreamingReporter; - using IStreamingReporterPtr = Detail::unique_ptr<IStreamingReporter>; + class IEventListener; + using IStreamingReporterPtr = Detail::unique_ptr<IEventListener>; struct IReporterFactory; using IReporterFactoryPtr = Detail::unique_ptr<IReporterFactory>; struct ReporterConfig; |