Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
base.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <iostream>
#include <websocketpp/transport/asio/base.hpp>
Include dependency graph for base.cpp:

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   transport_asio_base
 

Functions

 BOOST_AUTO_TEST_CASE (blank_error)
 
 BOOST_AUTO_TEST_CASE (asio_error)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   transport_asio_base

Definition at line 28 of file base.cpp.

Function Documentation

◆ 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.
Definition base.hpp:217
Here is the call graph for this function:

◆ 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}