refactoring test/test_Message.hpp

master
Denes Matetelki 12 years ago
parent ef2a90f17f
commit 6bc4ddc488

@ -5,9 +5,6 @@
#include "Message.hpp" #include "Message.hpp"
#include "Connection.hpp" #include "Connection.hpp"
class TestMessage : public CxxTest::TestSuite
{
private:
class SimpleMessage : public Message class SimpleMessage : public Message
{ {
@ -40,6 +37,8 @@ private:
if (m_connection != 0) if (m_connection != 0)
m_connection->send(m_buffer.c_str(), m_buffer.length()); m_connection->send(m_buffer.c_str(), m_buffer.length());
m_buffer.clear();
} }
Message* clone() Message* clone()
@ -65,6 +64,10 @@ private:
}; // SimpleMessage }; // SimpleMessage
class TestMessage : public CxxTest::TestSuite
{
private:
class DummyConnection : public Connection class DummyConnection : public Connection
{ {
public: public:

Loading…
Cancel
Save