PPI: Add optional template arg for packet type to connectors
[senf.git] / PPI / Queueing.test.cc
index c9ae4ea..03690b4 100644 (file)
@@ -1,8 +1,8 @@
 // $Id$
 //
 // Copyright (C) 2007 
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
+// Fraunhofer Institute for Open Communication Systems (FOKUS) 
+// Competence Center NETwork research (NET), St. Augustin, GERMANY 
 //     Stefan Bund <g0dil@berlios.de>
 //
 // This program is free software; you can redistribute it and/or modify
 #include "Module.hh"
 #include "Connectors.hh"
 #include "DebugModules.hh"
-#include "Packets/Packets.hh"
+#include "../Packets/Packets.hh"
 #include "Setup.hh"
 
-#include <boost/test/auto_unit_test.hpp>
+#include "../Utils/auto_unit_test.hh"
 #include <boost/test/test_tools.hpp>
 
 #define prefix_
@@ -50,8 +50,8 @@ namespace {
     {
         SENF_PPI_MODULE(QueueTester);
     public:
-        connector::PassiveInput input;
-        connector::ActiveOutput output;
+        connector::PassiveInput<> input;
+        connector::ActiveOutput<> output;
 
         QueueTester() {
             route(input, output);
@@ -59,7 +59,7 @@ namespace {
             input.onRequest(&QueueTester::nop);
         }
 
-        void nop() {}
+        void nop() { /* no operation */ }
 
         void forward() {
             if (input && output)