diff options
author | chriseth <c@ethdev.com> | 2016-06-29 05:47:35 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-06-29 06:14:50 +0800 |
commit | 67d1e4783a760bf3c8f6f97e0fc53f0e1c24d2d8 (patch) | |
tree | 2ca0c0c7e40948ca0a687a6784a1245ca07e8b3b /test/TestHelper.h | |
parent | 05e5bdf780cba4d198066d6f26353fd25d8ff553 (diff) | |
download | dexon-solidity-67d1e4783a760bf3c8f6f97e0fc53f0e1c24d2d8.tar.gz dexon-solidity-67d1e4783a760bf3c8f6f97e0fc53f0e1c24d2d8.tar.zst dexon-solidity-67d1e4783a760bf3c8f6f97e0fc53f0e1c24d2d8.zip |
Rename IPCSocket and removed unused code in TestHelper.
Diffstat (limited to 'test/TestHelper.h')
-rw-r--r-- | test/TestHelper.h | 27 |
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; - }; -}; - } } |