28#define BOOST_TEST_MODULE message_buffer_alloc
29#include <boost/test/unit_test.hpp>
36template <
template <
class>
class con_msg_manager>
38 typedef websocketpp::lib::shared_ptr<stub>
ptr;
53 return shared->recycle(
this);
70 con_msg_man_type::ptr manager(
new con_msg_man_type());
75 BOOST_CHECK(msg->m_manager.lock() == manager);
76 BOOST_CHECK(msg->m_size == 512);
85 <con_msg_man_type> endpoint_manager_type;
87 endpoint_manager_type em;
93 BOOST_CHECK(msg->m_manager.lock() == manager);
94 BOOST_CHECK(msg->m_size == 512);
BOOST_AUTO_TEST_CASE(basic_get_message)
con_msg_man_ptr get_manager() const
Get a pointer to a connection message manager.
stub(con_msg_man_ptr manager, websocketpp::frame::opcode::value op, size_t size=128)
con_msg_man_type::ptr con_msg_man_ptr
websocketpp::lib::shared_ptr< stub > ptr
con_msg_man_weak_ptr m_manager
websocketpp::frame::opcode::value m_opcode
con_msg_manager< stub > con_msg_man_type
con_msg_man_type::weak_ptr con_msg_man_weak_ptr