#include <boost/test/unit_test.hpp>
#include <iostream>
#include <string>
#include <websocketpp/processors/hybi00.hpp>
#include <websocketpp/http/request.hpp>
#include <websocketpp/http/response.hpp>
Go to the source code of this file.
Macros | |
#define | BOOST_TEST_MODULE hybi_00_processor |
Functions | |
BOOST_AUTO_TEST_CASE (exact_match) | |
BOOST_AUTO_TEST_CASE (non_get_method) | |
BOOST_AUTO_TEST_CASE (old_http_version) | |
BOOST_AUTO_TEST_CASE (missing_handshake_key1) | |
BOOST_AUTO_TEST_CASE (missing_handshake_key2) | |
BOOST_AUTO_TEST_CASE (bad_host) | |
BOOST_AUTO_TEST_CASE | ( | exact_match | ) |
Definition at line 39 of file pool.cpp.
References websocketpp::http::parser::request::consume(), websocketpp::http::parser::parser::get_header(), websocketpp::processor::hybi00< config >::get_uri(), websocketpp::processor::hybi00< config >::get_version(), websocketpp::processor::get_websocket_version(), websocketpp::processor::is_websocket_handshake(), websocketpp::processor::hybi00< config >::process_handshake(), websocketpp::http::parser::parser::replace_header(), and websocketpp::processor::hybi00< config >::validate_handshake().
BOOST_AUTO_TEST_CASE | ( | non_get_method | ) |
Definition at line 78 of file pool.cpp.
References websocketpp::http::parser::request::consume(), websocketpp::processor::hybi00< config >::get_version(), websocketpp::processor::get_websocket_version(), websocketpp::processor::is_websocket_handshake(), websocketpp::http::parser::parser::replace_header(), and websocketpp::processor::hybi00< config >::validate_handshake().
BOOST_AUTO_TEST_CASE | ( | old_http_version | ) |
Definition at line 92 of file pool.cpp.
References websocketpp::http::parser::request::consume(), websocketpp::processor::hybi00< config >::get_version(), websocketpp::processor::get_websocket_version(), websocketpp::processor::is_websocket_handshake(), websocketpp::http::parser::parser::replace_header(), and websocketpp::processor::hybi00< config >::validate_handshake().
BOOST_AUTO_TEST_CASE | ( | missing_handshake_key1 | ) |
Definition at line 106 of file pool.cpp.
References websocketpp::http::parser::request::consume(), websocketpp::processor::hybi00< config >::get_version(), websocketpp::processor::get_websocket_version(), websocketpp::processor::is_websocket_handshake(), websocketpp::http::parser::parser::replace_header(), and websocketpp::processor::hybi00< config >::validate_handshake().
BOOST_AUTO_TEST_CASE | ( | missing_handshake_key2 | ) |
Definition at line 120 of file pool.cpp.
References websocketpp::http::parser::request::consume(), websocketpp::processor::hybi00< config >::get_version(), websocketpp::processor::get_websocket_version(), websocketpp::processor::is_websocket_handshake(), websocketpp::http::parser::parser::replace_header(), and websocketpp::processor::hybi00< config >::validate_handshake().
BOOST_AUTO_TEST_CASE | ( | bad_host | ) |
Definition at line 134 of file pool.cpp.
References websocketpp::http::parser::request::consume(), websocketpp::processor::hybi00< config >::get_uri(), websocketpp::processor::hybi00< config >::get_version(), websocketpp::processor::get_websocket_version(), websocketpp::processor::is_websocket_handshake(), websocketpp::http::parser::parser::replace_header(), and websocketpp::processor::hybi00< config >::validate_handshake().