- close on socket handle now calls v_close() -> protocol()->close()
[senf.git] / Socket / ServerSocketHandle.test.cc
index 299524f..5f9230e 100644 (file)
@@ -1,6 +1,6 @@
 // $Id$
 //
-// Copyright (C) 2006 
+// Copyright (C) 2006
 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
 //     Stefan Bund <stefan.bund@fokus.fraunhofer.de>
 #include "SocketProtocol.test.hh"
 #include "AddressingPolicy.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 {
-    
-    namespace sl = satcom::lib;
-    
+
+    namespace sl = senf;
+
     class MySocketHandle
         : public sl::ServerSocketHandle<sl::test::SomeProtocol::Policy>
     {
@@ -60,7 +60,7 @@ BOOST_AUTO_UNIT_TEST(serverSocketHandle)
         sl::test::SomeWritePolicy
         >::policy OtherSocketPolicy;
     typedef sl::SocketHandle<OtherSocketPolicy> OtherSocketHandle;
-    
+
     MySocketHandle myh;
     OtherSocketHandle osh (myh);
     osh = myh;
@@ -70,10 +70,10 @@ BOOST_AUTO_UNIT_TEST(serverSocketHandle)
 
     typedef sl::ServerSocketHandle<sl::MakeSocketPolicy<
         OtherSocketPolicy,
-        satcom::lib::NoAddressingPolicy
+        senf::NoAddressingPolicy
         >::policy> SomeOtherSocketHandle;
     typedef sl::ClientSocketHandle<OtherSocketPolicy> OtherClientHandle;
-    
+
     BOOST_CHECK_NO_THROW( sl::dynamic_socket_cast<SomeSocketHandle>(osh) );
     BOOST_CHECK_THROW( sl::dynamic_socket_cast<SomeOtherSocketHandle>(osh),
                        std::bad_cast );
@@ -87,7 +87,7 @@ BOOST_AUTO_UNIT_TEST(serverSocketHandle)
         MySocketHandle::ClientSocketHandle client = myh.accept();
         BOOST_CHECK_EQUAL( client.fd(), -1 );
     }
-    
+
 }
 
 
@@ -97,5 +97,10 @@ BOOST_AUTO_UNIT_TEST(serverSocketHandle)
 \f
 // Local Variables:
 // mode: c++
-// c-file-style: "satcom"
+// fill-column: 100
+// c-file-style: "senf"
+// indent-tabs-mode: nil
+// ispell-local-dictionary: "american"
+// compile-command: "scons -u test"
+// comment-column: 40
 // End: