X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FUDPPacket.test.cc;h=a53543e8c638ffdf7920e49cd13ada6f49e2edf0;hb=9a988902090d28007578e93bffd809f6bd913155;hp=afcb77d4088221f1268a81c5ccced77a6ff7b5e3;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Packets/UDPPacket.test.cc b/Packets/UDPPacket.test.cc index afcb77d..a53543e 100644 --- a/Packets/UDPPacket.test.cc +++ b/Packets/UDPPacket.test.cc @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -34,13 +34,13 @@ #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// -using namespace satcom::pkf; +using namespace senf; BOOST_AUTO_UNIT_TEST(udpPacket_parser) { unsigned char data[] = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 - }; + }; typedef unsigned char * iterator; Parse_UDP p(data); @@ -48,24 +48,24 @@ BOOST_AUTO_UNIT_TEST(udpPacket_parser) BOOST_CHECK_EQUAL( p.source(), 0x0102 ); BOOST_CHECK_EQUAL( p.destination(), 0x0304 ); BOOST_CHECK_EQUAL( p.length(), 0x0506 ); - BOOST_CHECK_EQUAL( p.crc(), 0x0708 ); - + BOOST_CHECK_EQUAL( p.crc(), 0x0708 ); + } - + BOOST_AUTO_UNIT_TEST(udpPacket_packet) { unsigned char data[] = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 - }; + }; UDPPacket::ptr p (Packet::create(data, data+sizeof(data))); BOOST_CHECK_EQUAL( p->source(), 0x0102 ); BOOST_CHECK_EQUAL( p->destination(), 0x0304 ); BOOST_CHECK_EQUAL( p->length(), 0x0506 ); - BOOST_CHECK_EQUAL( p->crc(), 0x0708 ); + BOOST_CHECK_EQUAL( p->crc(), 0x0708 ); } @@ -77,5 +77,8 @@ BOOST_AUTO_UNIT_TEST(udpPacket_packet) // Local Variables: // mode: c++ -// c-file-style: "satcom" +// fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" // End: