comparison tests/cmd-plugin-list/main.cpp @ 488:7e273b7f4f92

Irccd: new coding style, closes #576
author David Demelier <markand@malikania.fr>
date Tue, 26 Sep 2017 17:18:47 +0200
parents c6fbb6e0e06d
children 9b6b0d7d89c6
comparison
equal deleted inserted replaced
487:beb6c638b841 488:7e273b7f4f92
21 #include <server-tester.hpp> 21 #include <server-tester.hpp>
22 #include <service.hpp> 22 #include <service.hpp>
23 #include <plugin.hpp> 23 #include <plugin.hpp>
24 24
25 using namespace irccd; 25 using namespace irccd;
26 using namespace irccd::command;
27 26
28 namespace { 27 namespace {
29 28
30 class PluginListCommandTest : public CommandTester { 29 class PluginListCommandTest : public CommandTester {
31 public: 30 public:
32 PluginListCommandTest() 31 PluginListCommandTest()
33 : CommandTester(std::make_unique<PluginListCommand>()) 32 : CommandTester(std::make_unique<plugin_list_command>())
34 { 33 {
35 m_irccd.plugins().add(std::make_unique<Plugin>("t1", "")); 34 m_irccd.plugins().add(std::make_unique<plugin>("t1", ""));
36 m_irccd.plugins().add(std::make_unique<Plugin>("t2", "")); 35 m_irccd.plugins().add(std::make_unique<plugin>("t2", ""));
37 } 36 }
38 }; 37 };
39 38
40 TEST_F(PluginListCommandTest, basic) 39 TEST_F(PluginListCommandTest, basic)
41 { 40 {