diff tests/cmd-rule-edit/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 acb2d4990249
children c729f06c6f27
line wrap: on
line diff
--- a/tests/cmd-rule-edit/main.cpp	Fri Aug 11 13:45:42 2017 +0200
+++ b/tests/cmd-rule-edit/main.cpp	Tue Sep 26 17:18:47 2017 +0200
@@ -21,7 +21,6 @@
 #include <service.hpp>
 
 using namespace irccd;
-using namespace irccd::command;
 
 class RuleEditCommandTest : public CommandTester {
 protected:
@@ -42,16 +41,16 @@
 
 public:
     RuleEditCommandTest()
-        : CommandTester(std::make_unique<RuleEditCommand>())
+        : CommandTester(std::make_unique<rule_edit_command>())
     {
-        m_irccd.commands().add(std::make_unique<RuleInfoCommand>());
-        m_irccd.rules().add(Rule(
+        m_irccd.commands().add(std::make_unique<rule_info_command>());
+        m_irccd.rules().add(rule(
             { "s1", "s2" },
             { "c1", "c2" },
             { "o1", "o2" },
             { "p1", "p2" },
             { "onMessage", "onCommand" },
-            RuleAction::Drop
+            rule::action_type::drop
         ));
         m_irccdctl.client().onMessage.connect([&] (auto result) {
             m_result = result;