irccd  3.0.3
js_fixture.hpp
1 /*
2  * js_fixture.hpp -- test fixture helper for Javascript modules
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_JS_FIXTURE_HPP
20 #define IRCCD_TEST_JS_FIXTURE_HPP
21 
27 #include "irccd_fixture.hpp"
28 
29 #include <irccd/js/plugin.hpp>
30 #include <irccd/js/api.hpp>
31 
32 #include <irccd/js/irccd_api.hpp>
33 
34 namespace irccd::test {
35 
39 class js_fixture : public irccd_fixture {
40 protected:
44  std::shared_ptr<js::plugin> plugin_;
45 
53  js_fixture(const std::string& path = "");
54 };
55 
56 } // !irccd::test
57 
58 #endif // !IRCCD_TEST_JS_FIXTURE_HPP
Test fixture for irccd.
Definition: irccd_fixture.hpp:34
Test fixture helper for Javascript modules.
Definition: js_fixture.hpp:39
std::shared_ptr< js::plugin > plugin_
Javascript plugin.
Definition: js_fixture.hpp:44
js_fixture(const std::string &path="")
Namespace for unit tests.
Definition: broken_plugin.hpp:29