#include <boost/test/unit_test.hpp>
#include <iostream>
#include <websocketpp/random/random_device.hpp>
#include <websocketpp/config/core.hpp>
#include <websocketpp/client.hpp>
#include <websocketpp/http/request.hpp>
Go to the source code of this file.
Classes | |
struct | stub_config |
Macros | |
#define | BOOST_TEST_MODULE client |
Typedefs | |
typedef websocketpp::client< stub_config > | client |
typedef client::connection_ptr | connection_ptr |
Functions | |
BOOST_AUTO_TEST_CASE (invalid_uri) | |
BOOST_AUTO_TEST_CASE (unsecure_endpoint) | |
BOOST_AUTO_TEST_CASE (get_connection) | |
BOOST_AUTO_TEST_CASE (connect_con) | |
BOOST_AUTO_TEST_CASE (select_subprotocol) | |
BOOST_AUTO_TEST_CASE (add_subprotocols_invalid) | |
BOOST_AUTO_TEST_CASE (add_subprotocols) | |
#define BOOST_TEST_MODULE client |
Definition at line 28 of file client.cpp.
typedef websocketpp::client<stub_config> client |
Definition at line 64 of file client.cpp.
typedef client::connection_ptr connection_ptr |
Definition at line 65 of file client.cpp.
BOOST_AUTO_TEST_CASE | ( | invalid_uri | ) |
Definition at line 67 of file client.cpp.
References websocketpp::client< config >::get_connection(), websocketpp::error::invalid_uri, and websocketpp::error::make_error_code().
BOOST_AUTO_TEST_CASE | ( | unsecure_endpoint | ) |
Definition at line 76 of file client.cpp.
References websocketpp::error::endpoint_not_secure, websocketpp::client< config >::get_connection(), and websocketpp::error::make_error_code().
BOOST_AUTO_TEST_CASE | ( | get_connection | ) |
Definition at line 85 of file client.cpp.
References websocketpp::client< config >::get_connection().
BOOST_AUTO_TEST_CASE | ( | connect_con | ) |
Definition at line 98 of file client.cpp.
References websocketpp::client< config >::connect(), websocketpp::http::parser::request::consume(), websocketpp::client< config >::get_connection(), websocketpp::http::parser::parser::get_header(), websocketpp::http::parser::request::get_method(), websocketpp::http::parser::request::get_uri(), websocketpp::http::parser::parser::get_version(), and websocketpp::http::parser::request::ready().
BOOST_AUTO_TEST_CASE | ( | select_subprotocol | ) |
Definition at line 137 of file client.cpp.
References websocketpp::client< config >::get_connection(), websocketpp::error::make_error_code(), and websocketpp::error::server_only.
BOOST_AUTO_TEST_CASE | ( | add_subprotocols_invalid | ) |
Definition at line 151 of file client.cpp.
References websocketpp::client< config >::get_connection(), websocketpp::error::invalid_subprotocol, and websocketpp::error::make_error_code().
BOOST_AUTO_TEST_CASE | ( | add_subprotocols | ) |