28#define BOOST_TEST_MODULE message
29#include <boost/test/unit_test.hpp>
36template <
typename message>
38 typedef websocketpp::lib::weak_ptr<stub>
weak_ptr;
39 typedef websocketpp::lib::shared_ptr<stub>
ptr;
55 stub_type::ptr
s(
new stub_type());
58 BOOST_CHECK(msg->get_payload().capacity() >= 500);
65 stub_type::ptr
s(
new stub_type());
68 BOOST_CHECK(
s->recycled ==
false);
69 BOOST_CHECK(msg->recycle() ==
false);
70 BOOST_CHECK(
s->recycled ==
true);
Represents a buffer for a single WebSocket message.
BOOST_AUTO_TEST_CASE(basic_size_check)
websocketpp::lib::shared_ptr< stub > ptr
websocketpp::lib::weak_ptr< stub > weak_ptr