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