19 #ifndef IRCCD_TEST_COMMAND_FIXTURE_HPP
20 #define IRCCD_TEST_COMMAND_FIXTURE_HPP
27 #include <irccd/daemon/plugin_service.hpp>
28 #include <irccd/daemon/rule_service.hpp>
29 #include <irccd/daemon/server_service.hpp>
30 #include <irccd/daemon/transport_client.hpp>
32 #include "irccd_fixture.hpp"
33 #include "mock_server.hpp"
34 #include "mock_plugin.hpp"
35 #include "mock_stream.hpp"
64 std::shared_ptr<daemon::transport_client>
client_;
77 auto request(nlohmann::json json) -> nlohmann::json;
82 #endif // !IRCCD_TEST_COMMAND_FIXTURE_HPP
std::shared_ptr< mock_server > server_
Mock server object.
Definition: command_fixture.hpp:50
std::shared_ptr< mock_stream > stream_
The fake transport_client stream.
Definition: command_fixture.hpp:60
std::shared_ptr< mock_plugin > plugin_
Mock plugin object.
Definition: command_fixture.hpp:55
auto request(nlohmann::json json) -> nlohmann::json
std::shared_ptr< daemon::transport_client > client_
Client sending request.
Definition: command_fixture.hpp:64
Test fixture for irccd.
Definition: irccd_fixture.hpp:34
Test fixture helper for transport commands.
Definition: command_fixture.hpp:45
Namespace for unit tests.
Definition: broken_plugin.hpp:29