/* * handshake.cpp * * Created on: Oct 27, 2019 * Author: ruben */ #include #include #include "mysql/impl/handshake.hpp" using namespace testing; using namespace mysql; using namespace detail; namespace { class MockChannel { public: MOCK_METHOD2(read_impl, void(std::vector&, error_code&)); MOCK_METHOD2(write, void(boost::asio::const_buffer, error_code&)); template void read(basic_bytestring& buffer, error_code& errc) { read_impl(buffer, errc); } }; }