Add 'unflatten' to doxygen/dot processing
[senf.git] / Packets / SafeIterator.test.cc
index 182dc93..171f834 100644 (file)
@@ -1,6 +1,6 @@
 // $Id$
 //
-// Copyright (C) 2008 
+// Copyright (C) 2008
 // Fraunhofer Institute for Open Communication Systems (FOKUS)
 // Competence Center NETwork research (NET), St. Augustin, GERMANY
 //     Stefan Bund <g0dil@berlios.de>
@@ -21,7 +21,7 @@
 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 /** \file
-    \brief SafeIterator.test unit tests */
+    \brief SafeIterator unit tests */
 
 //#include "SafeIterator.test.hh"
 //#include "SafeIterator.test.ih"
@@ -29,7 +29,7 @@
 // Custom includes
 #include "Packets.hh"
 
-#include <boost/test/auto_unit_test.hpp>
+#include "../Utils/auto_unit_test.hh"
 #include <boost/test/test_tools.hpp>
 
 #define prefix_
@@ -41,16 +41,17 @@ namespace {
 
 BOOST_AUTO_UNIT_TEST(safePacketParser)
 {
-    senf::PacketInterpreter<VoidPacket>::ptr pi (senf::PacketInterpreter<VoidPacket>::create(6u));
+    senf::PacketInterpreter<VoidPacket>::ptr pi (senf::PacketInterpreter<VoidPacket>::create(
+            senf::PacketInterpreterBase::size_type(6u)));
     senf::SafePacketParserWrapper<senf::UInt16Parser> p;
-    
+
     BOOST_CHECK( !p );
 
     p =  senf::UInt16Parser(pi->data().begin(),&pi->data());
 
     BOOST_CHECK( p );
     (*p) = 0x1234u;
-    
+
     BOOST_CHECK_EQUAL( (*p), 0x1234u );
     BOOST_CHECK_EQUAL( p->data()[0], 0x12u );
 
@@ -63,7 +64,7 @@ BOOST_AUTO_UNIT_TEST(safePacketParser)
 ///////////////////////////////cc.e////////////////////////////////////////
 #undef prefix_
 
-\f
+
 // Local Variables:
 // mode: c++
 // fill-column: 100