libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
mit_simulators.cpp File Reference
Include dependency graph for mit_simulators.cpp:

Go to the source code of this file.

Classes

struct  conn_args< exchg_t >
 
struct  conn_args_n_sim< exchg_t >
 
struct  conn_args_sim_n_link< exchg_t >
 
struct  conn_args_sim_n_link_logon_logoff< exchg_t >
 

Macros

#define BOOST_TEST_MODULE   isimud_tests
 

Typedefs

using api_thread_traits = ppd::thread_params< ppd::platform_api >
 
typedef boost::mpl::list< std::pair< exchanges::MIT::BIT::connection_t, exchanges::MIT::BIT::simulator_t >, std::pair< exchanges::MIT::JSE::connection_t, exchanges::MIT::JSE::simulator_t >, std::pair< exchanges::MIT::LSE::connection_t, exchanges::MIT::LSE::simulator_t >, std::pair< exchanges::MIT::OSLO::connection_t, exchanges::MIT::OSLO::simulator_t >, std::pair< exchanges::MIT::TRQ::connection_t, exchanges::MIT::TRQ::simulator_t >> exchg_t_types
 

Functions

const boost::asio::ip::address localhost (boost::asio::ip::address_v4::loopback())
 
const boost::asio::ip::address primary_gw (boost::asio::ip::address_v4::loopback())
 
const boost::asio::ip::address secondary_gw (boost::asio::ip::address_v4::loopback())
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (both_gateways_unavailable, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (primary_gateway_available, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (re_connnect, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (secondary_gateway_available, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (logon, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (client_heartbeat, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (server_heartbeat, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (logout, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (logon_logout, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (reject, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (cancel_reject, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (cancel_accept, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (modify_reject, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (modify_accept, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (new_order, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (partial_fill, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (partial_fill_cancel, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (partial_fill_replace, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (open_cancelled, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (open_modified, exchg_t, exchg_t_types)
 

Variables

const unsigned short unused_primary_port =12347u
 
const unsigned short unused_secondary_port =unused_primary_port+1
 
const exchanges::MIT::common::ClientOrderID_t clientOrderId1 {"00000000000000test1"}
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   isimud_tests

Definition at line 21 of file mit_simulators.cpp.

Typedef Documentation

◆ api_thread_traits

using api_thread_traits = ppd::thread_params<ppd::platform_api>

Definition at line 40 of file mit_simulators.cpp.

◆ exchg_t_types

Function Documentation

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( both_gateways_unavailable  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 115. \xrefitem test 255.

Definition at line 154 of file mit_simulators.cpp.

References isimud::ISIMUD_VER_NAMESPACE::exchanges::common::thread_traits::client_to_exchange_thread.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( cancel_accept  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 127. \xrefitem test 267.

Definition at line 516 of file mit_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( cancel_reject  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 126. \xrefitem test 266.

Definition at line 490 of file mit_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [4/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( client_heartbeat  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 120. \xrefitem test 260.

Definition at line 292 of file mit_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [5/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( logon  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 119. \xrefitem test 259.

Definition at line 267 of file mit_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [6/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( logon_logout  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 123. \xrefitem test 263.

Definition at line 362 of file mit_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [7/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( logout  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 122. \xrefitem test 262.

Definition at line 341 of file mit_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [8/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( modify_accept  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 129. \xrefitem test 269.

Definition at line 601 of file mit_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [9/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( modify_reject  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 128. \xrefitem test 268.

Definition at line 572 of file mit_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [10/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( new_order  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 130. \xrefitem test 134. \xrefitem test 270. \xrefitem test 274.

Definition at line 668 of file mit_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [11/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( open_cancelled  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 135. \xrefitem test 275.

Definition at line 878 of file mit_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [12/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( open_modified  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 136. \xrefitem test 276.

Definition at line 934 of file mit_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [13/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( partial_fill  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 131. \xrefitem test 271.

Definition at line 705 of file mit_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [14/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( partial_fill_cancel  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 132. \xrefitem test 272.

Definition at line 742 of file mit_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [15/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( partial_fill_replace  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 133. \xrefitem test 273.

Definition at line 788 of file mit_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [16/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( primary_gateway_available  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 116. \xrefitem test 256.

Definition at line 177 of file mit_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [17/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( re_connnect  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 117. \xrefitem test 257.

Definition at line 199 of file mit_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [18/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( reject  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 124. \xrefitem test 125. \xrefitem test 264. \xrefitem test 265.

Definition at line 459 of file mit_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [19/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( secondary_gateway_available  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 118. \xrefitem test 258.

Definition at line 228 of file mit_simulators.cpp.

References jmmcg::LIBJMMCG_VER_NAMESPACE::no_latency_timestamps::no_latency_timestamps(), and unused_secondary_port.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [20/20]

BOOST_AUTO_TEST_CASE_TEMPLATE ( server_heartbeat  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 121. \xrefitem test 261.

Definition at line 307 of file mit_simulators.cpp.

References isimud::ISIMUD_VER_NAMESPACE::exchanges::common::thread_traits::client_to_exchange_thread.

◆ localhost()

const boost::asio::ip::address localhost ( boost::asio::ip::address_v4::loopback()  )

◆ primary_gw()

const boost::asio::ip::address primary_gw ( boost::asio::ip::address_v4::loopback()  )

◆ secondary_gw()

const boost::asio::ip::address secondary_gw ( boost::asio::ip::address_v4::loopback()  )

Variable Documentation

◆ clientOrderId1

const exchanges::MIT::common::ClientOrderID_t clientOrderId1 {"00000000000000test1"}

Definition at line 47 of file mit_simulators.cpp.

◆ unused_primary_port

const unsigned short unused_primary_port =12347u

Definition at line 44 of file mit_simulators.cpp.

◆ unused_secondary_port

const unsigned short unused_secondary_port =unused_primary_port+1

Definition at line 46 of file mit_simulators.cpp.

Referenced by BOOST_AUTO_TEST_CASE_TEMPLATE().