2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-01-30 08:02:26 +00:00
Files
mysql/test/handshake.cpp
ruben 0cf0be1005 Added first version of query (text protocol)
Added deserialize_text_row
Added deserialize_text_value
Added execute_query
Added fetch_text_row
Added resultset
Added connection::query
2019-11-08 20:31:31 +00:00

34 lines
553 B
C++

/*
* handshake.cpp
*
* Created on: Oct 27, 2019
* Author: ruben
*/
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#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<std::uint8_t>&, error_code&));
MOCK_METHOD2(write, void(boost::asio::const_buffer, error_code&));
template <typename Allocator>
void read(bytestring<Allocator>& buffer, error_code& errc)
{
read_impl(buffer, errc);
}
};
}