JayBeams
0.1
Another project to have fun coding.
|
#include <jb/gmock/init.hpp>
#include <jb/itch5/mold_udp_pacer.hpp>
#include <jb/itch5/testing/data.hpp>
#include <boost/array.hpp>
#include <boost/asio.hpp>
#include <boost/test/unit_test.hpp>
Go to the source code of this file.
Functions | |
BOOST_AUTO_TEST_CASE (itch5_mold_udp_pacer_basic) | |
BOOST_AUTO_TEST_CASE (itch5_mold_udp_pacer_coalesce) | |
BOOST_AUTO_TEST_CASE (itch5_mold_udp_pacer_flush_full) | |
BOOST_AUTO_TEST_CASE (itch5_mold_udp_pacer_flush_timeout) | |
BOOST_AUTO_TEST_CASE (itch5_mold_udp_pacer_flush_on_empty) | |
BOOST_AUTO_TEST_CASE (itch5_testing_create_message_errors) | |
BOOST_AUTO_TEST_CASE | ( | itch5_mold_udp_pacer_basic | ) |
Send 3 messages every 10 usecs, of different sizes and types
Definition at line 51 of file ut_mold_udp_pacer.cpp.
References jb::itch5::testing::create_message(), jb::itch5::mold_udp_pacer< clock_type >::handle_message(), jb::itch5::mold_udp_protocol::header_size, jb::itch5::mold_udp_pacer< clock_type >::heartbeat(), and jb::itch5::defaults::maximum_delay_microseconds.
BOOST_AUTO_TEST_CASE | ( | itch5_mold_udp_pacer_coalesce | ) |
Definition at line 97 of file ut_mold_udp_pacer.cpp.
References jb::itch5::testing::create_message(), jb::itch5::mold_udp_pacer< clock_type >::handle_message(), jb::itch5::mold_udp_protocol::header_size, jb::itch5::mold_udp_pacer< clock_type >::heartbeat(), jb::itch5::defaults::maximum_delay_microseconds, and jb::itch5::defaults::maximum_transmission_unit.
BOOST_AUTO_TEST_CASE | ( | itch5_mold_udp_pacer_flush_full | ) |
Definition at line 157 of file ut_mold_udp_pacer.cpp.
References jb::itch5::testing::create_message(), jb::itch5::mold_udp_pacer< clock_type >::handle_message(), jb::itch5::mold_udp_protocol::header_size, jb::itch5::mold_udp_pacer< clock_type >::heartbeat(), jb::itch5::defaults::maximum_delay_microseconds, and jb::itch5::defaults::maximum_transmission_unit.
BOOST_AUTO_TEST_CASE | ( | itch5_mold_udp_pacer_flush_timeout | ) |
Definition at line 218 of file ut_mold_udp_pacer.cpp.
References jb::itch5::testing::create_message(), jb::itch5::mold_udp_pacer< clock_type >::handle_message(), jb::itch5::mold_udp_protocol::header_size, jb::itch5::defaults::maximum_delay_microseconds, and jb::itch5::defaults::maximum_transmission_unit.
BOOST_AUTO_TEST_CASE | ( | itch5_mold_udp_pacer_flush_on_empty | ) |
Definition at line 282 of file ut_mold_udp_pacer.cpp.
References jb::itch5::testing::create_message(), jb::itch5::mold_udp_pacer< clock_type >::flush(), jb::itch5::mold_udp_pacer< clock_type >::handle_message(), jb::itch5::mold_udp_protocol::header_size, jb::itch5::mold_udp_pacer< clock_type >::heartbeat(), jb::itch5::defaults::maximum_delay_microseconds, and jb::itch5::defaults::maximum_transmission_unit.
BOOST_AUTO_TEST_CASE | ( | itch5_testing_create_message_errors | ) |
Definition at line 332 of file ut_mold_udp_pacer.cpp.
References jb::itch5::testing::create_message().