Packets: Add StringParser ostream operation
[senf.git] / Socket / Protocols / Raw / TunTapSocketHandle.test.cc
index 35d6b72..fc0c98e 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>
+// Copyright (C) 2008
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
+//     Thorsten Horstmann <tho@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
 // Free Software Foundation, Inc.,
 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
-// Unit tests
+/** \file
+    \brief TunTapSocketHandle unit tests */
 
 //#include "TunTapSocketHandle.test.hh"
 //#include "TunTapSocketHandle.test.ih"
 
-#include "TunTapSocketHandle.hh"
-#include "PacketSocketHandle.hh"
-
 // Custom includes
 #include <iostream>
 #include <unistd.h>
 #include <stdlib.h>
 
+#include "TunTapSocketHandle.hh"
+#include "PacketSocketHandle.hh"
+
 #include "../../../Utils/auto_unit_test.hh"
 #include <boost/test/test_tools.hpp>
 
@@ -45,19 +46,19 @@ BOOST_AUTO_UNIT_TEST(tapSocketHandle)
         BOOST_WARN_MESSAGE(false, "Cannot test senf::TunTapSocketHandle as non-root user");
         return;
     }
-    
+
     senf::TapSocketHandle handle ("tap_unittest");
     int ret = system( "/sbin/ifconfig tap_unittest up");
     BOOST_CHECK_EQUAL( WEXITSTATUS(ret), 0);
-    
+
     senf::PacketSocketHandle sock;
-    BOOST_CHECK_NO_THROW( sock.bind(senf::LLSocketAddress("tap_unittest")) );
+    SENF_CHECK_NO_THROW( sock.bind(senf::LLSocketAddress("tap_unittest")) );
 }
 
 ///////////////////////////////cc.e////////////////////////////////////////
 #undef prefix_
 
-\f
+
 // Local Variables:
 // mode: c++
 // fill-column: 100