#include <boost/test/unit_test.hpp>
#include <iostream>
#include <cstring>
#include <string>
#include <websocketpp/common/memory.hpp>
#include <websocketpp/error.hpp>
#include <websocketpp/transport/iostream/connection.hpp>
#include <websocketpp/concurrency/basic.hpp>
#include <websocketpp/logger/basic.hpp>
Go to the source code of this file.
Classes | |
struct | config |
struct | stub_con |
Macros | |
#define | BOOST_TEST_MODULE transport_iostream_connection |
Typedefs | |
typedef websocketpp::transport::iostream::connection< config > | iostream_con |
Functions | |
BOOST_AUTO_TEST_CASE (const_methods) | |
BOOST_AUTO_TEST_CASE (write_before_output_method_set) | |
BOOST_AUTO_TEST_CASE (async_write_ostream) | |
websocketpp::lib::error_code | write_handler (std::string &o, websocketpp::connection_hdl, char const *buf, size_t len) |
websocketpp::lib::error_code | vector_write_handler (std::string &o, websocketpp::connection_hdl, std::vector< websocketpp::transport::buffer > const &bufs) |
websocketpp::lib::error_code | write_handler_error (websocketpp::connection_hdl, char const *, size_t) |
BOOST_AUTO_TEST_CASE (async_write_handler) | |
BOOST_AUTO_TEST_CASE (async_write_handler_error) | |
BOOST_AUTO_TEST_CASE (async_write_vector_0_ostream) | |
BOOST_AUTO_TEST_CASE (async_write_vector_0_write_handler) | |
BOOST_AUTO_TEST_CASE (async_write_vector_1_ostream) | |
BOOST_AUTO_TEST_CASE (async_write_vector_1_write_handler) | |
BOOST_AUTO_TEST_CASE (async_write_vector_2_ostream) | |
BOOST_AUTO_TEST_CASE (async_write_vector_2_write_handler) | |
BOOST_AUTO_TEST_CASE (async_write_vector_2_vector_write_handler) | |
BOOST_AUTO_TEST_CASE (async_read_at_least_too_much) | |
BOOST_AUTO_TEST_CASE (async_read_at_least_double_read) | |
BOOST_AUTO_TEST_CASE (async_read_at_least) | |
BOOST_AUTO_TEST_CASE (async_read_at_least2) | |
void | timer_callback_stub (websocketpp::lib::error_code const &) |
BOOST_AUTO_TEST_CASE (set_timer) | |
BOOST_AUTO_TEST_CASE (async_read_at_least_read_some) | |
BOOST_AUTO_TEST_CASE (async_read_at_least_read_some_indef) | |
BOOST_AUTO_TEST_CASE (async_read_at_least_read_all) | |
BOOST_AUTO_TEST_CASE (eof_flag) | |
BOOST_AUTO_TEST_CASE (fatal_error_flag) | |
BOOST_AUTO_TEST_CASE (shutdown) | |
websocketpp::lib::error_code | sd_handler (websocketpp::connection_hdl) |
BOOST_AUTO_TEST_CASE (shutdown_handler) | |
BOOST_AUTO_TEST_CASE (clear_handler) | |
BOOST_AUTO_TEST_CASE (shared_pointer_memory_cleanup) | |
Variables | |
websocketpp::lib::shared_ptr< config::alog_type > | alogger = websocketpp::lib::make_shared<config::alog_type>() |
websocketpp::lib::shared_ptr< config::elog_type > | elogger = websocketpp::lib::make_shared<config::elog_type>() |
#define BOOST_TEST_MODULE transport_iostream_connection |
Definition at line 28 of file connection.cpp.
Definition at line 52 of file connection.cpp.
BOOST_AUTO_TEST_CASE | ( | const_methods | ) |
Definition at line 170 of file connection.cpp.
BOOST_AUTO_TEST_CASE | ( | write_before_output_method_set | ) |
Definition at line 177 of file connection.cpp.
References alogger, bufs, elogger, websocketpp::error::make_error_code(), and websocketpp::transport::iostream::error::output_stream_required.
BOOST_AUTO_TEST_CASE | ( | async_write_ostream | ) |
Definition at line 188 of file connection.cpp.
websocketpp::lib::error_code write_handler | ( | std::string & | o, |
websocketpp::connection_hdl | , | ||
char const * | buf, | ||
size_t | len | ||
) |
Definition at line 201 of file connection.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
websocketpp::lib::error_code vector_write_handler | ( | std::string & | o, |
websocketpp::connection_hdl | , | ||
std::vector< websocketpp::transport::buffer > const & | bufs | ||
) |
Definition at line 206 of file connection.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
websocketpp::lib::error_code write_handler_error | ( | websocketpp::connection_hdl | , |
char const * | , | ||
size_t | |||
) |
Definition at line 215 of file connection.cpp.
References websocketpp::transport::error::general, and websocketpp::error::make_error_code().
Referenced by BOOST_AUTO_TEST_CASE().
BOOST_AUTO_TEST_CASE | ( | async_write_handler | ) |
Definition at line 219 of file connection.cpp.
References alogger, elogger, and write_handler().
BOOST_AUTO_TEST_CASE | ( | async_write_handler_error | ) |
Definition at line 235 of file connection.cpp.
References alogger, elogger, websocketpp::transport::error::general, websocketpp::error::make_error_code(), and write_handler_error().
BOOST_AUTO_TEST_CASE | ( | async_write_vector_0_ostream | ) |
Definition at line 243 of file connection.cpp.
BOOST_AUTO_TEST_CASE | ( | async_write_vector_0_write_handler | ) |
Definition at line 257 of file connection.cpp.
References alogger, bufs, elogger, and write_handler().
BOOST_AUTO_TEST_CASE | ( | async_write_vector_1_ostream | ) |
Definition at line 278 of file connection.cpp.
BOOST_AUTO_TEST_CASE | ( | async_write_vector_1_write_handler | ) |
Definition at line 296 of file connection.cpp.
References alogger, bufs, elogger, and write_handler().
BOOST_AUTO_TEST_CASE | ( | async_write_vector_2_ostream | ) |
Definition at line 320 of file connection.cpp.
BOOST_AUTO_TEST_CASE | ( | async_write_vector_2_write_handler | ) |
Definition at line 340 of file connection.cpp.
References alogger, bufs, elogger, and write_handler().
BOOST_AUTO_TEST_CASE | ( | async_write_vector_2_vector_write_handler | ) |
Definition at line 366 of file connection.cpp.
References alogger, bufs, elogger, and vector_write_handler().
BOOST_AUTO_TEST_CASE | ( | async_read_at_least_too_much | ) |
Definition at line 391 of file connection.cpp.
References alogger, elogger, websocketpp::transport::iostream::error::invalid_num_bytes, and websocketpp::error::make_error_code().
BOOST_AUTO_TEST_CASE | ( | async_read_at_least_double_read | ) |
Definition at line 400 of file connection.cpp.
References alogger, websocketpp::transport::iostream::error::double_read, elogger, and websocketpp::error::make_error_code().
BOOST_AUTO_TEST_CASE | ( | async_read_at_least | ) |
Definition at line 410 of file connection.cpp.
References alogger, elogger, websocketpp::error::make_error_code(), and websocketpp::error::test.
BOOST_AUTO_TEST_CASE | ( | async_read_at_least2 | ) |
Definition at line 446 of file connection.cpp.
References alogger, elogger, websocketpp::error::make_error_code(), and websocketpp::error::test.
void timer_callback_stub | ( | websocketpp::lib::error_code const & | ) |
Definition at line 470 of file connection.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
BOOST_AUTO_TEST_CASE | ( | set_timer | ) |
Definition at line 472 of file connection.cpp.
References alogger, elogger, and timer_callback_stub().
BOOST_AUTO_TEST_CASE | ( | async_read_at_least_read_some | ) |
Definition at line 480 of file connection.cpp.
References alogger, elogger, websocketpp::error::make_error_code(), and websocketpp::error::test.
BOOST_AUTO_TEST_CASE | ( | async_read_at_least_read_some_indef | ) |
Definition at line 504 of file connection.cpp.
References alogger, elogger, websocketpp::error::make_error_code(), and websocketpp::error::test.
BOOST_AUTO_TEST_CASE | ( | async_read_at_least_read_all | ) |
Definition at line 529 of file connection.cpp.
References alogger, elogger, websocketpp::error::make_error_code(), and websocketpp::error::test.
BOOST_AUTO_TEST_CASE | ( | eof_flag | ) |
Definition at line 545 of file connection.cpp.
References alogger, elogger, websocketpp::transport::error::eof, websocketpp::error::make_error_code(), and websocketpp::error::test.
BOOST_AUTO_TEST_CASE | ( | fatal_error_flag | ) |
Definition at line 554 of file connection.cpp.
References alogger, elogger, websocketpp::error::make_error_code(), websocketpp::transport::error::pass_through, and websocketpp::error::test.
BOOST_AUTO_TEST_CASE | ( | shutdown | ) |
Definition at line 563 of file connection.cpp.
References alogger, elogger, websocketpp::error::make_error_code(), and websocketpp::error::test.
websocketpp::lib::error_code sd_handler | ( | websocketpp::connection_hdl | ) |
Definition at line 570 of file connection.cpp.
References websocketpp::transport::error::general, and websocketpp::error::make_error_code().
Referenced by BOOST_AUTO_TEST_CASE().
BOOST_AUTO_TEST_CASE | ( | shutdown_handler | ) |
Definition at line 574 of file connection.cpp.
References alogger, elogger, websocketpp::transport::error::general, websocketpp::error::make_error_code(), sd_handler(), and websocketpp::error::test.
BOOST_AUTO_TEST_CASE | ( | clear_handler | ) |
Definition at line 583 of file connection.cpp.
References alogger, elogger, websocketpp::error::make_error_code(), sd_handler(), and websocketpp::error::test.
BOOST_AUTO_TEST_CASE | ( | shared_pointer_memory_cleanup | ) |
Definition at line 593 of file connection.cpp.
References alogger, elogger, websocketpp::transport::error::eof, websocketpp::error::make_error_code(), and websocketpp::error::test.
websocketpp::lib::shared_ptr<config::alog_type> alogger = websocketpp::lib::make_shared<config::alog_type>() |
Definition at line 167 of file connection.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
websocketpp::lib::shared_ptr<config::elog_type> elogger = websocketpp::lib::make_shared<config::elog_type>() |
Definition at line 168 of file connection.cpp.
Referenced by BOOST_AUTO_TEST_CASE().