small refactor in test_Connection.hpp

master
Denes Matetelki 12 years ago
parent c28aec806b
commit f16d9f5eef

@ -18,42 +18,16 @@ private:
TRACE; TRACE;
} }
~DummyConnection() virtual ~DummyConnection()
{ {
TRACE; TRACE;
} }
Connection* clone(const int) Connection* clone(const int) { return 0; }
{ bool bind() { return true; }
TRACE; bool send(const void*, const size_t) { return true; }
return 0; bool receive() { return true; }
} int getSocket() const { 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;
}
}; // DummyConnection }; // DummyConnection
@ -62,6 +36,8 @@ public:
void testConnection() void testConnection()
{ {
TEST_HEADER;
DummyConnection c("localhost", "1234"); DummyConnection c("localhost", "1234");
TS_ASSERT_EQUALS (c.getHost() , std::string("localhost") ); TS_ASSERT_EQUALS (c.getHost() , std::string("localhost") );

Loading…
Cancel
Save