mirror of
https://github.com/boostorg/mysql.git
synced 2026-02-15 01:02:17 +00:00
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
This commit is contained in:
33
test/handshake.cpp
Normal file
33
test/handshake.cpp
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user