#include <boost/test/unit_test.hpp>
#include <iostream>
#include <string>
#include <websocketpp/message_buffer/alloc.hpp>
Go to the source code of this file.
◆ BOOST_TEST_MODULE
#define BOOST_TEST_MODULE message_buffer_alloc |
◆ BOOST_AUTO_TEST_CASE() [1/2]
BOOST_AUTO_TEST_CASE |
( |
basic_get_manager | | ) |
|
Definition at line 79 of file alloc.cpp.
79 {
81 message_type;
83 con_msg_man_type;
85 <con_msg_man_type> endpoint_manager_type;
86
87 endpoint_manager_type em;
90
91 BOOST_CHECK(msg);
93 BOOST_CHECK(msg->m_manager.lock() == manager);
94 BOOST_CHECK(msg->m_size == 512);
95}
con_msg_man_ptr get_manager() const
Get a pointer to a connection message manager.
◆ BOOST_AUTO_TEST_CASE() [2/2]
BOOST_AUTO_TEST_CASE |
( |
basic_get_message | | ) |
|
Definition at line 64 of file alloc.cpp.
64 {
66 message_type;
68 con_msg_man_type;
69
70 con_msg_man_type::ptr manager(new con_msg_man_type());
72
73 BOOST_CHECK(msg);
75 BOOST_CHECK(msg->m_manager.lock() == manager);
76 BOOST_CHECK(msg->m_size == 512);
77}