Mercurial > irccd
comparison tests/src/irccdctl/cli-plugin-load/main.cpp @ 841:1399755352e7
irccd: use appropriate function names in bot
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 14 Jun 2019 20:53:00 +0200 |
parents | 06cc2f95f479 |
children | 5e25439fe98d |
comparison
equal
deleted
inserted
replaced
840:fdb1e0f5fd6d | 841:1399755352e7 |
---|---|
44 | 44 |
45 BOOST_FIXTURE_TEST_SUITE(plugin_load_suite, plugin_list_fixture) | 45 BOOST_FIXTURE_TEST_SUITE(plugin_load_suite, plugin_list_fixture) |
46 | 46 |
47 BOOST_AUTO_TEST_CASE(simple) | 47 BOOST_AUTO_TEST_CASE(simple) |
48 { | 48 { |
49 bot_.plugins().add(std::make_unique<mock_plugin>("p1")); | 49 bot_.get_plugins().add(std::make_unique<mock_plugin>("p1")); |
50 bot_.plugins().add(std::make_unique<mock_plugin>("p2")); | 50 bot_.get_plugins().add(std::make_unique<mock_plugin>("p2")); |
51 start(); | 51 start(); |
52 | 52 |
53 // Load a plugin first. | 53 // Load a plugin first. |
54 { | 54 { |
55 const auto [code, out, err] = exec({ "plugin-load", "mock" }); | 55 const auto [code, out, err] = exec({ "plugin-load", "mock" }); |