aboutsummaryrefslogtreecommitdiffstats
path: root/test/TestHelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/TestHelper.h')
-rw-r--r--test/TestHelper.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/test/TestHelper.h b/test/TestHelper.h
index 96678007..2d08d62c 100644
--- a/test/TestHelper.h
+++ b/test/TestHelper.h
@@ -102,32 +102,5 @@ namespace test
} \
while (0)
-/// Allows observing test execution process.
-/// This class also provides methods for registering and notifying the listener
-class Listener
-{
-public:
- virtual ~Listener() = default;
-
- virtual void suiteStarted(std::string const&) {}
- virtual void testStarted(std::string const& _name) = 0;
- virtual void testFinished() = 0;
-
- static void registerListener(Listener& _listener);
- static void notifySuiteStarted(std::string const& _name);
- static void notifyTestStarted(std::string const& _name);
- static void notifyTestFinished();
-
- /// Test started/finished notification RAII helper
- class ExecTimeGuard
- {
- public:
- ExecTimeGuard(std::string const& _testName) { notifyTestStarted(_testName); }
- ~ExecTimeGuard() { notifyTestFinished(); }
- ExecTimeGuard(ExecTimeGuard const&) = delete;
- ExecTimeGuard& operator=(ExecTimeGuard) = delete;
- };
-};
-
}
}