#include <boost/test/unit_test.hpp>
#include <iostream>
#include <string>
#include <websocketpp/frame.hpp>
#include <websocketpp/utilities.hpp>
Go to the source code of this file.
Macros | |
#define | BOOST_TEST_MODULE frame |
Functions | |
BOOST_AUTO_TEST_CASE (basic_bits) | |
BOOST_AUTO_TEST_CASE (basic_constructors) | |
BOOST_AUTO_TEST_CASE (basic_size) | |
BOOST_AUTO_TEST_CASE (basic_header_length) | |
BOOST_AUTO_TEST_CASE (basic_opcode) | |
BOOST_AUTO_TEST_CASE (extended_header_basics) | |
BOOST_AUTO_TEST_CASE (extended_header_extractors) | |
BOOST_AUTO_TEST_CASE (header_preparation) | |
BOOST_AUTO_TEST_CASE (prepare_masking_key) | |
BOOST_AUTO_TEST_CASE (prepare_masking_key2) | |
BOOST_AUTO_TEST_CASE (circshift) | |
BOOST_AUTO_TEST_CASE (block_byte_mask) | |
BOOST_AUTO_TEST_CASE (block_byte_mask_inplace) | |
BOOST_AUTO_TEST_CASE (block_word_mask) | |
BOOST_AUTO_TEST_CASE (block_word_mask_inplace) | |
BOOST_AUTO_TEST_CASE (continuous_word_mask) | |
BOOST_AUTO_TEST_CASE (continuous_byte_mask) | |
BOOST_AUTO_TEST_CASE (continuous_word_mask_inplace) | |
BOOST_AUTO_TEST_CASE (continuous_byte_mask_inplace) | |
BOOST_AUTO_TEST_CASE (continuous_word_mask2) | |
BOOST_AUTO_TEST_CASE | ( | basic_bits | ) |
Definition at line 39 of file frame.cpp.
References websocketpp::frame::basic_header::b0, websocketpp::frame::basic_header::b1, websocketpp::frame::get_fin(), websocketpp::frame::get_masked(), websocketpp::frame::get_rsv1(), websocketpp::frame::get_rsv2(), websocketpp::frame::get_rsv3(), websocketpp::frame::set_fin(), websocketpp::frame::set_masked(), websocketpp::frame::set_rsv1(), websocketpp::frame::set_rsv2(), and websocketpp::frame::set_rsv3().
BOOST_AUTO_TEST_CASE | ( | basic_constructors | ) |
Definition at line 73 of file frame.cpp.
References websocketpp::frame::opcode::BINARY, websocketpp::frame::get_basic_size(), websocketpp::frame::get_fin(), websocketpp::frame::get_masked(), websocketpp::frame::get_opcode(), websocketpp::frame::get_rsv1(), websocketpp::frame::get_rsv2(), websocketpp::frame::get_rsv3(), and websocketpp::frame::opcode::TEXT.
BOOST_AUTO_TEST_CASE | ( | basic_size | ) |
Definition at line 94 of file frame.cpp.
References websocketpp::frame::get_basic_size().
BOOST_AUTO_TEST_CASE | ( | basic_header_length | ) |
Definition at line 125 of file frame.cpp.
References websocketpp::frame::get_header_len().
BOOST_AUTO_TEST_CASE | ( | basic_opcode | ) |
Definition at line 141 of file frame.cpp.
References websocketpp::frame::opcode::BINARY, websocketpp::frame::opcode::CLOSE, websocketpp::frame::opcode::CONTINUATION, websocketpp::frame::get_opcode(), websocketpp::frame::opcode::is_control(), websocketpp::frame::opcode::PING, websocketpp::frame::opcode::PONG, and websocketpp::frame::opcode::TEXT.
BOOST_AUTO_TEST_CASE | ( | extended_header_basics | ) |
Definition at line 154 of file frame.cpp.
References websocketpp::frame::extended_header::bytes.
BOOST_AUTO_TEST_CASE | ( | extended_header_extractors | ) |
Definition at line 182 of file frame.cpp.
References websocketpp::frame::get_extended_size(), websocketpp::frame::get_jumbo_size(), websocketpp::frame::get_masking_key(), websocketpp::frame::get_masking_key_offset(), and websocketpp::frame::get_payload_size().
BOOST_AUTO_TEST_CASE | ( | header_preparation | ) |
Definition at line 216 of file frame.cpp.
References websocketpp::frame::prepare_header().
BOOST_AUTO_TEST_CASE | ( | prepare_masking_key | ) |
Definition at line 236 of file frame.cpp.
References websocketpp::lib::net::_htonll(), websocketpp::frame::uint32_converter::i, and websocketpp::frame::prepare_masking_key().
BOOST_AUTO_TEST_CASE | ( | prepare_masking_key2 | ) |
Definition at line 250 of file frame.cpp.
References websocketpp::lib::net::_htonll(), websocketpp::frame::uint32_converter::i, and websocketpp::frame::prepare_masking_key().
BOOST_AUTO_TEST_CASE | ( | block_byte_mask | ) |
Definition at line 284 of file frame.cpp.
References websocketpp::frame::byte_mask(), and websocketpp::frame::uint32_converter::c.
BOOST_AUTO_TEST_CASE | ( | block_byte_mask_inplace | ) |
Definition at line 308 of file frame.cpp.
References websocketpp::frame::byte_mask(), and websocketpp::frame::uint32_converter::c.
BOOST_AUTO_TEST_CASE | ( | block_word_mask | ) |
Definition at line 330 of file frame.cpp.
References websocketpp::frame::uint32_converter::c, and websocketpp::frame::word_mask_exact().
BOOST_AUTO_TEST_CASE | ( | block_word_mask_inplace | ) |
Definition at line 354 of file frame.cpp.
References websocketpp::frame::uint32_converter::c, and websocketpp::frame::word_mask_exact().
BOOST_AUTO_TEST_CASE | ( | continuous_word_mask | ) |
Definition at line 376 of file frame.cpp.
References websocketpp::frame::uint32_converter::c, websocketpp::frame::circshift_prepared_key(), websocketpp::frame::prepare_masking_key(), and websocketpp::frame::word_mask_circ().
BOOST_AUTO_TEST_CASE | ( | continuous_byte_mask | ) |
Definition at line 413 of file frame.cpp.
References websocketpp::frame::byte_mask_circ(), websocketpp::frame::uint32_converter::c, websocketpp::frame::circshift_prepared_key(), and websocketpp::frame::prepare_masking_key().
BOOST_AUTO_TEST_CASE | ( | continuous_word_mask_inplace | ) |
Definition at line 450 of file frame.cpp.
References websocketpp::frame::uint32_converter::c, websocketpp::frame::circshift_prepared_key(), websocketpp::frame::prepare_masking_key(), and websocketpp::frame::word_mask_circ().
BOOST_AUTO_TEST_CASE | ( | continuous_byte_mask_inplace | ) |
Definition at line 484 of file frame.cpp.
References websocketpp::frame::byte_mask_circ(), websocketpp::frame::uint32_converter::c, websocketpp::frame::circshift_prepared_key(), and websocketpp::frame::prepare_masking_key().
BOOST_AUTO_TEST_CASE | ( | continuous_word_mask2 | ) |
Definition at line 518 of file frame.cpp.
References websocketpp::frame::uint32_converter::c, websocketpp::frame::prepare_masking_key(), and websocketpp::frame::word_mask_circ().