From f16d9f5eefd695d0a3fcabbb8050544dc0aa2ea5 Mon Sep 17 00:00:00 2001 From: Denes Matetelki Date: Fri, 5 Jul 2013 20:11:44 +0200 Subject: [PATCH] small refactor in test_Connection.hpp --- test/test_Connection.hpp | 40 ++++++++-------------------------------- 1 file changed, 8 insertions(+), 32 deletions(-) diff --git a/test/test_Connection.hpp b/test/test_Connection.hpp index 3bebbef..e5211a1 100644 --- a/test/test_Connection.hpp +++ b/test/test_Connection.hpp @@ -18,42 +18,16 @@ private: TRACE; } - ~DummyConnection() + virtual ~DummyConnection() { TRACE; } - Connection* clone(const int) - { - TRACE; - return 0; - } - - - bool bind() - { - TRACE; - return true; - } - - - bool send(const void*, const size_t) - { - TRACE; - return true; - } - - bool receive() - { - TRACE; - return true; - } - - int getSocket() const - { - TRACE; - return 0; - } + Connection* clone(const int) { return 0; } + bool bind() { return true; } + bool send(const void*, const size_t) { return true; } + bool receive() { return true; } + int getSocket() const { return 0; } }; // DummyConnection @@ -62,6 +36,8 @@ public: void testConnection() { + TEST_HEADER; + DummyConnection c("localhost", "1234"); TS_ASSERT_EQUALS (c.getHost() , std::string("localhost") );