#include <boost/test/unit_test.hpp>
#include <iostream>
#include <websocketpp/transport/asio/base.hpp>
Go to the source code of this file.
◆ BOOST_TEST_MODULE
#define BOOST_TEST_MODULE transport_asio_base |
◆ BOOST_AUTO_TEST_CASE() [1/2]
BOOST_AUTO_TEST_CASE |
( |
asio_error | | ) |
|
Definition at line 41 of file base.cpp.
41 {
44
45 websocketpp::lib::error_code ec = make_error_code(general);
46
47 BOOST_CHECK( ec == general );
48 BOOST_CHECK( ec.value() == 1 );
49}
lib::error_code make_error_code(error::value e)
Create an error code with the given value and the asio transport category.
◆ BOOST_AUTO_TEST_CASE() [2/2]
BOOST_AUTO_TEST_CASE |
( |
blank_error | | ) |
|
Definition at line 35 of file base.cpp.
35 {
36 websocketpp::lib::error_code ec;
37
38 BOOST_CHECK( !ec );
39}