libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
batsboe_eu_simulators.cpp File Reference
#include "stdafx.h"
#include <boost/test/included/unit_test.hpp>
#include <boost/mpl/list.hpp>
#include "../exchanges/BATSBOE/EU/v1/batsboe.hpp"
#include "../exchanges/BATSBOE/EU/v1/batsboe_sim.hpp"
#include "../exchanges/BATSBOE/EU/v2/batsboe.hpp"
#include "../exchanges/BATSBOE/EU/v2/batsboe_sim.hpp"
Include dependency graph for batsboe_eu_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::BATSBOE::EU::v1::connection_t, exchanges::BATSBOE::EU::v1::simulator_t >> exchg_t_types
 

Functions

const boost::asio::ip::address primary_gw (boost::asio::ip::address_v4::loopback())
 
const exchanges::BATSBOE::common::Price_t price (1)
 
const exchanges::BATSBOE::common::SeqNum_t sequenceNumber (1)
 
 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 (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_replace, exchg_t, exchg_t_types)
 

Variables

const unsigned short unused_primary_port =12347u
 
const exchanges::BATSBOE::common::ClientOrderID_t clientOrderId1 {"12345678901234test1"}
 
const exchanges::BATSBOE::common::SecurityID_t instID {"abcdefghijklmno"}
 
const exchanges::BATSBOE::common::SessionSubID_t sessionSubID {"ABC"}
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   isimud_tests

Definition at line 21 of file batsboe_eu_simulators.cpp.

Typedef Documentation

◆ api_thread_traits

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

Definition at line 34 of file batsboe_eu_simulators.cpp.

◆ exchg_t_types

Function Documentation

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( cancel_accept  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 69. \xrefitem test 214.

Definition at line 452 of file batsboe_eu_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( cancel_reject  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 68. \xrefitem test 213.

Definition at line 428 of file batsboe_eu_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( client_heartbeat  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 62. \xrefitem test 207.

Definition at line 230 of file batsboe_eu_simulators.cpp.

References sequenceNumber().

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [4/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( logon  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 61. \xrefitem test 206.

Definition at line 203 of file batsboe_eu_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [5/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( logon_logout  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 65. \xrefitem test 210.

Definition at line 294 of file batsboe_eu_simulators.cpp.

References sequenceNumber().

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [6/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( logout  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 64. \xrefitem test 209.

Definition at line 273 of file batsboe_eu_simulators.cpp.

References sequenceNumber().

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [7/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( modify_accept  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 71. \xrefitem test 216.

Definition at line 516 of file batsboe_eu_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [8/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( modify_reject  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 70. \xrefitem test 215.

Definition at line 488 of file batsboe_eu_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [9/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( new_order  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 72. \xrefitem test 76. \xrefitem test 217. \xrefitem test 221.

Definition at line 565 of file batsboe_eu_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [10/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( open_cancelled  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 77. \xrefitem test 222.

Definition at line 759 of file batsboe_eu_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [11/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( open_replace  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 78. \xrefitem test 223.

Definition at line 799 of file batsboe_eu_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [12/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( partial_fill  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 73. \xrefitem test 218.

Definition at line 600 of file batsboe_eu_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [13/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( partial_fill_cancel  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 74. \xrefitem test 219.

Definition at line 635 of file batsboe_eu_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [14/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( partial_fill_replace  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 75. \xrefitem test 220.

Definition at line 677 of file batsboe_eu_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [15/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( primary_gateway_available  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 59. \xrefitem test 204.

Definition at line 148 of file batsboe_eu_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [16/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( re_connnect  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 60. \xrefitem test 205.

Definition at line 170 of file batsboe_eu_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [17/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( reject  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 66. \xrefitem test 67. \xrefitem test 211. \xrefitem test 212.

Definition at line 397 of file batsboe_eu_simulators.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [18/18]

BOOST_AUTO_TEST_CASE_TEMPLATE ( server_heartbeat  ,
exchg_t  ,
exchg_t_types   
)
Test:
"Heartbeats" Test: Server Heartbeat. ====================================. [1] "BATS Chi-X Europe Binary Order Entry Specification", Version 1.44, 27 November, 2014
Test:
"Heartbeats" Test: Server Heartbeat. ====================================. [1] "BATS Chi-X Europe Binary Order Entry Specification", Version 1.44, 27 November, 2014

Definition at line 244 of file batsboe_eu_simulators.cpp.

References sequenceNumber().

◆ price()

◆ primary_gw()

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

◆ sequenceNumber()

Variable Documentation

◆ clientOrderId1

const exchanges::BATSBOE::common::ClientOrderID_t clientOrderId1 {"12345678901234test1"}

Definition at line 38 of file batsboe_eu_simulators.cpp.

◆ instID

const exchanges::BATSBOE::common::SecurityID_t instID {"abcdefghijklmno"}

Definition at line 39 of file batsboe_eu_simulators.cpp.

◆ sessionSubID

const exchanges::BATSBOE::common::SessionSubID_t sessionSubID {"ABC"}

Definition at line 41 of file batsboe_eu_simulators.cpp.

◆ unused_primary_port

const unsigned short unused_primary_port =12347u

Definition at line 37 of file batsboe_eu_simulators.cpp.