#include <boost/test/unit_test.hpp>
#include <iostream>
#include <string>
#include <websocketpp/close.hpp>
#include <websocketpp/utilities.hpp>
Go to the source code of this file.
Macros | |
#define | BOOST_TEST_MODULE close |
Functions | |
BOOST_AUTO_TEST_CASE (reserved_values) | |
BOOST_AUTO_TEST_CASE (invalid_values) | |
BOOST_AUTO_TEST_CASE (value_extraction) | |
BOOST_AUTO_TEST_CASE (extract_empty) | |
BOOST_AUTO_TEST_CASE (extract_short) | |
BOOST_AUTO_TEST_CASE (extract_reason) | |
BOOST_AUTO_TEST_CASE | ( | reserved_values | ) |
Definition at line 39 of file close.cpp.
References websocketpp::close::status::reserved().
BOOST_AUTO_TEST_CASE | ( | invalid_values | ) |
Definition at line 48 of file close.cpp.
References websocketpp::close::status::invalid().
BOOST_AUTO_TEST_CASE | ( | value_extraction | ) |
Definition at line 60 of file close.cpp.
References websocketpp::close::extract_code(), websocketpp::error::invalid_close_code, websocketpp::close::status::no_status, websocketpp::close::status::normal, and websocketpp::error::reserved_close_code.
BOOST_AUTO_TEST_CASE | ( | extract_empty | ) |
Definition at line 89 of file close.cpp.
References websocketpp::close::extract_code(), and websocketpp::close::status::no_status.
BOOST_AUTO_TEST_CASE | ( | extract_short | ) |
Definition at line 97 of file close.cpp.
References websocketpp::error::bad_close_code, websocketpp::close::extract_code(), and websocketpp::close::status::protocol_error.
BOOST_AUTO_TEST_CASE | ( | extract_reason | ) |
Definition at line 105 of file close.cpp.
References websocketpp::close::extract_reason(), and websocketpp::error::invalid_utf8.