// $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>
// 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"
// 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_
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 );
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
-\f
+
// Local Variables:
// mode: c++
// fill-column: 100