libjmmcg
release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
|
#include "stdafx.h"
#include <boost/test/included/unit_test.hpp>
#include <boost/mpl/list.hpp>
#include "../exchanges/MIT/BIT/bit.hpp"
#include "../exchanges/MIT/BIT/bit_sim.hpp"
#include "../exchanges/MIT/JSE/jse.hpp"
#include "../exchanges/MIT/JSE/jse_sim.hpp"
#include "../exchanges/MIT/LSE/lse.hpp"
#include "../exchanges/MIT/LSE/lse_sim.hpp"
#include "../exchanges/MIT/OSLO/oslo.hpp"
#include "../exchanges/MIT/OSLO/oslo_sim.hpp"
#include "../exchanges/MIT/TRQ/trq.hpp"
#include "../exchanges/MIT/TRQ/trq_sim.hpp"
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 |
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"} |
#define BOOST_TEST_MODULE isimud_tests |
Definition at line 21 of file mit_simulators.cpp.
using api_thread_traits = ppd::thread_params<ppd::platform_api> |
Definition at line 40 of file mit_simulators.cpp.
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 |
Definition at line 55 of file mit_simulators.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | both_gateways_unavailable | , |
exchg_t | , | ||
exchg_t_types | |||
) |
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 | ( | cancel_accept | , |
exchg_t | , | ||
exchg_t_types | |||
) |
Definition at line 516 of file mit_simulators.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | cancel_reject | , |
exchg_t | , | ||
exchg_t_types | |||
) |
Definition at line 490 of file mit_simulators.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | client_heartbeat | , |
exchg_t | , | ||
exchg_t_types | |||
) |
Definition at line 292 of file mit_simulators.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | logon | , |
exchg_t | , | ||
exchg_t_types | |||
) |
Definition at line 267 of file mit_simulators.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | logon_logout | , |
exchg_t | , | ||
exchg_t_types | |||
) |
Definition at line 362 of file mit_simulators.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | logout | , |
exchg_t | , | ||
exchg_t_types | |||
) |
Definition at line 341 of file mit_simulators.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | modify_accept | , |
exchg_t | , | ||
exchg_t_types | |||
) |
Definition at line 601 of file mit_simulators.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | modify_reject | , |
exchg_t | , | ||
exchg_t_types | |||
) |
Definition at line 572 of file mit_simulators.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | new_order | , |
exchg_t | , | ||
exchg_t_types | |||
) |
Definition at line 668 of file mit_simulators.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | open_cancelled | , |
exchg_t | , | ||
exchg_t_types | |||
) |
Definition at line 878 of file mit_simulators.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | open_modified | , |
exchg_t | , | ||
exchg_t_types | |||
) |
Definition at line 934 of file mit_simulators.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | partial_fill | , |
exchg_t | , | ||
exchg_t_types | |||
) |
Definition at line 705 of file mit_simulators.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | partial_fill_cancel | , |
exchg_t | , | ||
exchg_t_types | |||
) |
Definition at line 742 of file mit_simulators.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | partial_fill_replace | , |
exchg_t | , | ||
exchg_t_types | |||
) |
Definition at line 788 of file mit_simulators.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | primary_gateway_available | , |
exchg_t | , | ||
exchg_t_types | |||
) |
Definition at line 177 of file mit_simulators.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | re_connnect | , |
exchg_t | , | ||
exchg_t_types | |||
) |
Definition at line 199 of file mit_simulators.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | reject | , |
exchg_t | , | ||
exchg_t_types | |||
) |
Definition at line 459 of file mit_simulators.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | secondary_gateway_available | , |
exchg_t | , | ||
exchg_t_types | |||
) |
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 | ( | server_heartbeat | , |
exchg_t | , | ||
exchg_t_types | |||
) |
Definition at line 307 of file mit_simulators.cpp.
References isimud::ISIMUD_VER_NAMESPACE::exchanges::common::thread_traits::client_to_exchange_thread.
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() | ) |
const exchanges::MIT::common::ClientOrderID_t clientOrderId1 {"00000000000000test1"} |
Definition at line 47 of file mit_simulators.cpp.
const unsigned short unused_primary_port =12347u |
Definition at line 44 of file mit_simulators.cpp.
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().