#include <boost/test/unit_test.hpp>
#include <iostream>
#include <string>
#include <websocketpp/message_buffer/message.hpp>
Go to the source code of this file.
◆ BOOST_TEST_MODULE
#define BOOST_TEST_MODULE message |
◆ BOOST_AUTO_TEST_CASE() [1/2]
BOOST_AUTO_TEST_CASE |
( |
basic_size_check | | ) |
|
Definition at line 51 of file message.cpp.
51 {
54
55 stub_type::ptr
s(
new stub_type());
57
58 BOOST_CHECK(msg->get_payload().capacity() >= 500);
59}
Represents a buffer for a single WebSocket message.
◆ BOOST_AUTO_TEST_CASE() [2/2]
BOOST_AUTO_TEST_CASE |
( |
recycle | | ) |
|
Definition at line 61 of file message.cpp.
61 {
64
65 stub_type::ptr
s(
new stub_type());
67
68 BOOST_CHECK(
s->recycled ==
false);
69 BOOST_CHECK(msg->recycle() == false);
70 BOOST_CHECK(
s->recycled ==
true);
71}