// // Copyright (c) 2019-2020 Ruben Perez Hidalgo (rubenperez038 at gmail dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include "boost/mysql/connection.hpp" #include #include BOOST_AUTO_TEST_SUITE(test_connection) using other_executor = boost::asio::strand; BOOST_AUTO_TEST_CASE(connection_rebind_executor) { using original_type = boost::mysql::connection; using rebound_type = original_type::rebind_executor::other; using expected_type = boost::mysql::connection< boost::asio::basic_stream_socket< boost::asio::ip::tcp, other_executor > >; BOOST_TEST((std::is_same::value)); } BOOST_AUTO_TEST_CASE(socket_connection_rebind_executor) { using rebound_type = boost::mysql::tcp_connection::rebind_executor::other; using expected_type = boost::mysql::socket_connection< boost::asio::basic_stream_socket< boost::asio::ip::tcp, other_executor > >; BOOST_TEST((std::is_same::value)); } BOOST_AUTO_TEST_SUITE_END() // test_connection