19 #ifndef IRCCD_TEST_MOCK_STREAM_HPP
20 #define IRCCD_TEST_MOCK_STREAM_HPP
27 #include <irccd/stream.hpp>
51 #endif // !IRCCD_TEST_MOCK_STREAM_HPP
void send(const nlohmann::json &json, send_handler handler) override
Keep track of function invocations.
Definition: mock.hpp:38
std::function< void(std::error_code, nlohmann::json)> recv_handler
Read completion handler.
Definition: stream.hpp:63
std::function< void(std::error_code)> send_handler
Write completion handler.
Definition: stream.hpp:68
Abstract stream interface.
Definition: stream.hpp:58
Mock stream.
Definition: mock_stream.hpp:36
Namespace for unit tests.
Definition: broken_plugin.hpp:29
void recv(recv_handler handler) override