tests/link_layer/ll_connection_tests.cpp
BOOST_FIXTURE_TEST_CASE( channel_map_request_after_connection_count_wrap, channel_map_request_after_connection_count_wrap_fixture )
{
    end_of_simulation( bluetoe::link_layer::delta_time::seconds( 3000 ) );
    run();

    BOOST_CHECK_EQUAL( connection_events().at( 0x10002 ).channel, 36u );
    BOOST_CHECK_EQUAL( connection_events().at( 0x10003 ).channel, 36u );
    BOOST_CHECK_EQUAL( connection_events().at( 0x10004 ).channel, 36u );
}
/*
 * This test should make sure the instance is correctly interpreted after the connect count wrapped from 0xffff to 0x0000
 */
This test should make sure the instance is correctly interpreted after the connect count wrapped from 0xffff to 0x0000
This test should make sure the instance is correctly interpreted after the connect count wrapped from 0xffff to 0x0000
BOOST_FIXTURE_TEST_CASE( channel_map_request_after_connection_count_wrap, channel_map_request_after_connection_count_wrap_fixture )
{
    end_of_simulation( bluetoe::link_layer::delta_time::seconds( 3000 ) );
    run();
    BOOST_CHECK_EQUAL( connection_events().at( 0x10002 ).channel, 36u );
    BOOST_CHECK_EQUAL( connection_events().at( 0x10003 ).channel, 36u );
    BOOST_CHECK_EQUAL( connection_events().at( 0x10004 ).channel, 36u );
}
BOOST_FIXTURE_TEST_CASE ( channel_map_request_after_connection_count_wrap , channel_map_request_after_connection_count_wrap_fixture ) { end_of_simulation ( bluetoe :: link_layer :: delta_time :: seconds ( 3000 ) ) ; run ( ) ; BOOST_CHECK_EQUAL ( connection_events ( ) . at ( 0x10002 ) . channel , 36u ) ; BOOST_CHECK_EQUAL ( connection_events ( ) . at ( 0x10003 ) . channel , 36u ) ; BOOST_CHECK_EQUAL ( connection_events ( ) . at ( 0x10004 ) . channel , 36u ) ; }
This test should make sure the instance is correctly interpreted after the connect count wrapped from 0xffff to 0x0000
This test should make sure the instance is correctly interpreted after the connect count wrapped from 0xffff to 0x0000