Utils/Termlib: Extend the completion API
[senf.git] / Socket / ProtocolClientSocketHandle.test.cc
index a2edda8..1314742 100644 (file)
@@ -1,9 +1,9 @@
 // $Id$
 //
 // Copyright (C) 2006
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
-//     Stefan Bund <stefan.bund@fokus.fraunhofer.de>
+// 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
 // it under the terms of the GNU General Public License as published by
@@ -20,7 +20,8 @@
 // Free Software Foundation, Inc.,
 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
-// Unit tests
+/** \file
+    \brief ProtocolClientSocketHandle unit tests */
 
 //#include "ProtocolClientSocketHandle.test.hh"
 //#include "ProtocolClientSocketHandle.test.ih"
 #include "ProtocolClientSocketHandle.hh"
 #include "SocketProtocol.test.hh"
 
-#include <boost/test/auto_unit_test.hpp>
+#include "../Utils/auto_unit_test.hh"
 #include <boost/test/test_tools.hpp>
 
 #define prefix_
 ///////////////////////////////cc.p////////////////////////////////////////
 
 namespace {
-    struct MyProtocol : public senf::test::SomeProtocol
+    struct MySocketProtocol : public senf::test::SomeSocketProtocol
     {
-        using senf::test::SomeProtocol::init_client;
+        using senf::test::SomeSocketProtocol::init_client;
         void init_client(char const *,unsigned) const {}
     };
 }
 
 BOOST_AUTO_UNIT_TEST(protocolClientSocketHandle)
 {
-    typedef senf::ProtocolClientSocketHandle<MyProtocol> MySocketHandle;
+    typedef senf::ProtocolClientSocketHandle<MySocketProtocol> MySocketHandle;
 
     {
         typedef senf::MakeSocketPolicy<
@@ -78,4 +79,5 @@ BOOST_AUTO_UNIT_TEST(protocolClientSocketHandle)
 // indent-tabs-mode: nil
 // ispell-local-dictionary: "american"
 // compile-command: "scons -u test"
+// comment-column: 40
 // End: