X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocolClientSocketHandle.test.cc;h=131474219ccce00439af2b75c3fbc69003945c4d;hb=5443435c4c2b6e4386c5334b5b8358273f2bae93;hp=be924cec378fb8929c99a8ec82781acec64c4a43;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Socket/ProtocolClientSocketHandle.test.cc b/Socket/ProtocolClientSocketHandle.test.cc index be924ce..1314742 100644 --- a/Socket/ProtocolClientSocketHandle.test.cc +++ b/Socket/ProtocolClientSocketHandle.test.cc @@ -1,9 +1,9 @@ // $Id$ // -// Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// Copyright (C) 2006 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Stefan Bund // // 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 @@ -20,7 +20,8 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// Unit tests +/** \file + \brief ProtocolClientSocketHandle unit tests */ //#include "ProtocolClientSocketHandle.test.hh" //#include "ProtocolClientSocketHandle.test.ih" @@ -29,37 +30,37 @@ #include "ProtocolClientSocketHandle.hh" #include "SocketProtocol.test.hh" -#include +#include "../Utils/auto_unit_test.hh" #include #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// namespace { - struct MyProtocol : public satcom::lib::test::SomeProtocol + struct MySocketProtocol : public senf::test::SomeSocketProtocol { - using satcom::lib::test::SomeProtocol::init_client; + using senf::test::SomeSocketProtocol::init_client; void init_client(char const *,unsigned) const {} }; } BOOST_AUTO_UNIT_TEST(protocolClientSocketHandle) { - typedef satcom::lib::ProtocolClientSocketHandle MySocketHandle; + typedef senf::ProtocolClientSocketHandle MySocketHandle; { - typedef satcom::lib::MakeSocketPolicy< - satcom::lib::test::SomeFramingPolicy, - satcom::lib::test::SomeReadPolicy, - satcom::lib::test::SomeWritePolicy + typedef senf::MakeSocketPolicy< + senf::test::SomeFramingPolicy, + senf::test::SomeReadPolicy, + senf::test::SomeWritePolicy >::policy OtherSocketPolicy; - typedef satcom::lib::SocketHandle OtherSocketHandle; + typedef senf::SocketHandle OtherSocketHandle; MySocketHandle h; h.protocol(); - + OtherSocketHandle osh (h); - h = satcom::lib::static_socket_cast(osh); + h = senf::static_socket_cast(osh); } { @@ -73,5 +74,10 @@ BOOST_AUTO_UNIT_TEST(protocolClientSocketHandle) // 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: