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

Go to the source code of this file.

Classes

struct  dummy_con< base >
 

Macros

#define BOOST_TEST_MODULE   transport_asio_base
 

Functions

 BOOST_AUTO_TEST_CASE (translated_ec_none)
 
 BOOST_AUTO_TEST_CASE (translated_ec_tls)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   transport_asio_base

Definition at line 28 of file security.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( translated_ec_none )

Definition at line 45 of file security.cpp.

45 {
47
48 // If the current configuration settings result in the library error type and the asio
49 // error type being the same, then the code should pass through natively. Otherwise
50 // we should get a generic pass through error.
51 if(websocketpp::lib::is_same<websocketpp::lib::error_code,websocketpp::lib::asio::error_code>::value) {
52 BOOST_CHECK_EQUAL( tscon.test(), websocketpp::lib::error_code() );
53 } else {
55 }
56}
lib::error_code make_error_code(error::value e)
@ pass_through
underlying transport pass through
websocketpp::lib::error_code test()
Definition security.cpp:40
Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( translated_ec_tls )

Definition at line 58 of file security.cpp.

58 {
60
61 // If the current configuration settings result in the library error type and the asio
62 // error type being the same, then the code should pass through natively. Otherwise
63 // we should get a generic pass through error.
64 if(websocketpp::lib::is_same<websocketpp::lib::error_code,websocketpp::lib::asio::error_code>::value) {
65 BOOST_CHECK_EQUAL( tscon.test(), websocketpp::lib::error_code() );
66 } else {
68 }
69}
Here is the call graph for this function: