irccd  3.0.3
irccd_fixture.hpp
1 /*
2  * irccd_fixture.hpp -- test fixture for irccd
3  *
4  * Copyright (c) 2013-2019 David Demelier <markand@malikania.fr>
5  *
6  * Permission to use, copy, modify, and/or distribute this software for any
7  * purpose with or without fee is hereby granted, provided that the above
8  * copyright notice and this permission notice appear in all copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17  */
18 
19 #ifndef IRCCD_TEST_IRCCD_FIXTURE_HPP
20 #define IRCCD_TEST_IRCCD_FIXTURE_HPP
21 
27 #include <irccd/daemon/bot.hpp>
28 
29 namespace irccd::test {
30 
35 protected:
39  boost::asio::io_context ctx_;
40 
45 
51  irccd_fixture();
52 };
53 
54 } // !irccd::test
55 
56 #endif // !IRCCD_TEST_IRCCD_FIXTURE_HPP
irccd::test::irccd_fixture::irccd_fixture
irccd_fixture()
irccd::daemon::bot
Irccd main instance.
Definition: bot.hpp:58
irccd::test::irccd_fixture::ctx_
boost::asio::io_context ctx_
Boost.Asio context.
Definition: irccd_fixture.hpp:39
irccd::test::irccd_fixture
Test fixture for irccd.
Definition: irccd_fixture.hpp:34
irccd::test::irccd_fixture::bot_
daemon::bot bot_
Main irccd daemon.
Definition: irccd_fixture.hpp:44
irccd::test
Namespace for unit tests.
Definition: broken_plugin.hpp:29