#include <boost/test/unit_test.hpp>
#include <iostream>
#include <string>
#include <websocketpp/processors/hybi07.hpp>
#include <websocketpp/http/request.hpp>
#include <websocketpp/http/response.hpp>
#include <websocketpp/message_buffer/message.hpp>
#include <websocketpp/message_buffer/alloc.hpp>
#include <websocketpp/extensions/permessage_deflate/disabled.hpp>
#include <websocketpp/random/none.hpp>
Go to the source code of this file.
Classes | |
struct | stub_config |
struct | stub_config::permessage_deflate_config |
Extension specific config. More... | |
Macros | |
#define | BOOST_TEST_MODULE hybi_07_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) | |
#define BOOST_TEST_MODULE hybi_07_processor |
Definition at line 28 of file hybi07.cpp.
BOOST_AUTO_TEST_CASE | ( | exact_match | ) |
Definition at line 69 of file hybi07.cpp.
References websocketpp::processor::hybi13< config >::get_uri(), websocketpp::processor::hybi07< config >::get_version(), websocketpp::processor::get_websocket_version(), websocketpp::processor::is_websocket_handshake(), websocketpp::processor::hybi13< config >::process_handshake(), websocketpp::uri_default_port, and websocketpp::processor::hybi13< config >::validate_handshake().
BOOST_AUTO_TEST_CASE | ( | non_get_method | ) |
Definition at line 103 of file hybi07.cpp.
References websocketpp::processor::hybi07< config >::get_version(), websocketpp::processor::get_websocket_version(), websocketpp::processor::error::invalid_http_method, websocketpp::processor::is_websocket_handshake(), and websocketpp::processor::hybi13< config >::validate_handshake().
BOOST_AUTO_TEST_CASE | ( | old_http_version | ) |
Definition at line 121 of file hybi07.cpp.
References websocketpp::processor::hybi07< config >::get_version(), websocketpp::processor::get_websocket_version(), websocketpp::processor::error::invalid_http_version, websocketpp::processor::is_websocket_handshake(), and websocketpp::processor::hybi13< config >::validate_handshake().
BOOST_AUTO_TEST_CASE | ( | missing_handshake_key1 | ) |
Definition at line 139 of file hybi07.cpp.
References websocketpp::processor::hybi07< config >::get_version(), websocketpp::processor::get_websocket_version(), websocketpp::processor::is_websocket_handshake(), websocketpp::processor::error::missing_required_header, and websocketpp::processor::hybi13< config >::validate_handshake().
BOOST_AUTO_TEST_CASE | ( | missing_handshake_key2 | ) |
Definition at line 157 of file hybi07.cpp.
References websocketpp::processor::hybi07< config >::get_version(), websocketpp::processor::get_websocket_version(), websocketpp::processor::is_websocket_handshake(), websocketpp::processor::error::missing_required_header, and websocketpp::processor::hybi13< config >::validate_handshake().
BOOST_AUTO_TEST_CASE | ( | bad_host | ) |
Definition at line 175 of file hybi07.cpp.
References websocketpp::processor::hybi13< config >::get_uri(), websocketpp::processor::hybi07< config >::get_version(), websocketpp::processor::get_websocket_version(), websocketpp::processor::is_websocket_handshake(), and websocketpp::processor::hybi13< config >::validate_handshake().