// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief ActiveFeeder.test unit tests */
+ \brief ActiveFeeder unit tests */
//#include "ActiveFeeder.test.hh"
//#include "ActiveFeeder.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief AnnotationRouter.test unit tests */
+ \brief AnnotationRouter unit tests */
//#include "AnnotationRouter.test.hh"
//#include "AnnotationRouter.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief CloneSource.test unit tests */
+ \brief CloneSource unit tests */
//#include "CloneSource.test.hh"
//#include "CloneSource.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Connectors.test unit tests */
+ \brief Connectors unit tests */
//#include "Connectors.test.hh"
//#include "Connectors.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief DebugEvent.test unit tests */
+ \brief DebugEvent unit tests */
//#include "DebugEvent.test.hh"
//#include "DebugEvent.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief DebubgModules.test unit tests */
+ \brief DebubgModules unit tests */
//#include "DebubgModules.test.hh"
//#include "DebubgModules.test.ih"
-
// Custom includes
#include <algorithm>
#include <sstream>
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief DiscardSink.test unit tests */
+ \brief DiscardSink unit tests */
//#include "DiscardSink.test.hh"
//#include "DiscardSink.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Duplicators.test unit tests */
+ \brief Duplicators unit tests */
//#include "Duplicators.test.hh"
//#include "Duplicators.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief EventManager.test unit tests */
+ \brief EventManager unit tests */
//#include "EventManager.test.hh"
//#include "EventManager.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Events.test unit tests */
+ \brief Events unit tests */
//#include "Events.test.hh"
//#include "Events.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief IOEvent.test unit tests */
+ \brief IOEvent unit tests */
//#include "IOEvent.test.hh"
//#include "IOEvent.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief IdleEvent.test unit tests */
+ \brief IdleEvent unit tests */
//#include "IdleEvent.test.hh"
//#include "IdleEvent.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief IntervalTimer.test unit tests */
+ \brief IntervalTimer unit tests */
//#include "IntervalTimer.test.hh"
//#include "IntervalTimer.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Joins.test unit tests */
+ \brief Joins unit tests */
//#include "Joins.test.hh"
//#include "Joins.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Module.test unit tests */
+ \brief Module unit tests */
//#include "Module.test.hh"
//#include "Module.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief ModuleManager.test unit tests */
+ \brief ModuleManager unit tests */
//#include "ModuleManager.test.hh"
//#include "ModuleManager.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief MonitorModule.test unit tests */
+ \brief MonitorModule unit tests */
//#include "MonitorModule.test.hh"
//#include "MonitorModule.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief PassiveQueue.test unit tests */
+ \brief PassiveQueue unit tests */
//#include "PassiveQueue.test.hh"
//#include "PassiveQueue.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Queueing.test unit tests */
+ \brief Queueing unit tests */
//#include "Queueing.test.hh"
//#include "Queueing.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Route.test unit tests */
+ \brief Route unit tests */
//#include "Route.test.hh"
//#include "Route.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Setup.test unit tests */
+ \brief Setup unit tests */
//#include "Setup.test.hh"
//#include "Setup.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief SocketSink.test unit tests */
+ \brief SocketSink unit tests */
//#include "SocketSink.test.hh"
//#include "SocketSink.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief SocketSource.test unit tests */
+ \brief SocketSource unit tests */
//#include "SocketSource.test.hh"
//#include "SocketSource.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief ThrottleBarrier.test unit tests */
+ \brief ThrottleBarrier unit tests */
//#include "ThrottleBarrier.test.hh"
//#include "ThrottleBarrier.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Definition of non-inline non-template functions
+/** \file
+ \brief RadiotapPacket unit tests */
// Custom includes
+#include "RadiotapPacket.hh"
#include "../../Packets/Packets.hh"
+
#include "../../Utils/auto_unit_test.hh"
#include <boost/test/test_tools.hpp>
-#include "RadiotapPacket.hh"
-
+///////////////////////////////cc.p////////////////////////////////////////
BOOST_AUTO_UNIT_TEST(RadiotapPacket_packet)
{
/* used madwifi 0.9.4 */
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief WLANPacket.test unit tests */
+ \brief WLANPacket unit tests */
// Custom includes
-
+#include "WLANPacket.hh"
#include "../../Packets/Packets.hh"
+
#include "../../Utils/auto_unit_test.hh"
#include <boost/test/test_tools.hpp>
-#include "WLANPacket.hh"
+///////////////////////////////cc.p////////////////////////////////////////
/* test parser with a data frame */
BOOST_AUTO_UNIT_TEST(WLANPacket_dataFrame_packet)
{
//#include "MIHPacket.test.hh"
//#include "MIHPacket.test.ih"
-#include "../../Utils/auto_unit_test.hh"
-#include <boost/test/test_tools.hpp>
-
+// Custom includes
#include "MIHPacket.hh"
-using namespace senf;
+#include "../../Utils/auto_unit_test.hh"
+#include <boost/test/test_tools.hpp>
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
+using namespace senf;
BOOST_AUTO_UNIT_TEST(MIHPacket_create_string)
{
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief TLVPacket unit tests */
//#include "TLVPacket.test.hh"
//#include "TLVPacket.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief ArrayParser unit tests */
//#include "ArrayParser.test.hh"
//#include "ArrayParser.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief AuxParser.test unit tests */
+ \brief AuxParser unit tests */
//#include "AuxParser.test.hh"
//#include "AuxParser.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief EthernetPacket unit tests */
//#include "EthernetPacket.test.hh"
//#include "EthernetPacket.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief IPv4Packet unit tests */
//#include "IPv4Packet.test.hh"
//#include "IPv4Packet.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief IPv6Extensions.test unit tests */
+ \brief IPv6Extensions unit tests */
//#include "IPv6Extensions.test.hh"
//#include "IPv6Extensions.test.ih"
#include "IPv6Extensions.hh"
#include "IPv6Packet.hh"
#include "UDPPacket.hh"
-#include "../../Socket/Protocols/INet/INetAddressing.hh"
#include "../../Utils/auto_unit_test.hh"
#include <boost/test/test_tools.hpp>
#include <iomanip>
#include <boost/io/ios_state.hpp>
#include "EthernetPacket.hh"
-#include "../../Socket/Protocols/INet/INetAddressing.hh"
//#include "IPv6Packet.mpp"
#define prefix_
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief LlcSnapPacket unit tests */
//#include "LlcSnapPacket.test.hh"
//#include "LlcSnapPacket.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief RTPPacket unit tests */
// Custom includes
#include "RTPPacket.hh"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief UDPPacket unit tests */
//#include "UDPPacket.test.hh"
//#include "UDPPacket.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief PacketLink.test unit tests */
+ \brief PacketLink unit tests */
//#include "PacketLink.test.hh"
//#include "PacketLink.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief IntParser unit tests */
//#include "IntParser.test.hh"
//#include "IntParser.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief ListBParser.test unit tests */
+ \brief ListBParser unit tests */
//#include "ListBParser.test.hh"
//#include "ListBParser.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief ListNParser.test unit tests */
+ \brief ListNParser unit tests */
//#include "ListNParser.test.hh"
//#include "ListNParser.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief ListParser.test unit tests */
+ \brief ListParser unit tests */
//#include "ListParser.test.hh"
//#include "ListParser.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief DTCPPacket.test unit tests */
+ \brief DTCPPacket unit tests */
//#include "DTCPPacket.test.hh"
//#include "DTCPPacket.test.ih"
BOOST_AUTO_UNIT_TEST(dtcpPacket)
{
- unsigned char data[] = { 0x11, // versionNumber = 1, command = JOIN
- 5, // interval
- 0x0A, 0x0B, // sequence number
- 0x14, // receiveCapable = true, ipVersion = 4
- 23, // tunnelProtocol
- 2, // fbipCount
- 0x00,
- 101, 102, 103, 104, // fbip1
- 201, 202, 203, 204 }; // fbip2
+ unsigned char data[] = {
+ 0x11, // versionNumber = 1, command = JOIN
+ 5, // interval
+ 0x0A, 0x0B, // sequence number
+ 0x14, // receiveCapable = true, ipVersion = 4
+ 23, // tunnelProtocol
+ 2, // fbipCount
+ 0x00,
+ 101, 102, 103, 104, // fbip1
+ 201, 202, 203, 204 // fbip2
+ };
senf::DTCPHelloPacket hello (senf::DTCPHelloPacket::create(
boost::make_iterator_range(data, data+sizeof(data))));
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief GREPacket unit tests */
//#include "GREPacket.test.hh"
//#include "GREPacket.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief MPESection unit tests */
//#include "MPESection.test.hh"
//#include "MPESection.test.ih"
// Custom includes
#include "MPESection.hh"
-
-#include "../../Utils/auto_unit_test.hh"
#include "../../Packets/DefaultBundle/LlcSnapPacket.hh"
#include "../../Packets/DefaultBundle/EthernetPacket.hh"
#include "../../Packets/DefaultBundle/IPv4Packet.hh"
+
+#include "../../Utils/auto_unit_test.hh"
#include <boost/test/test_tools.hpp>
#define prefix_
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief TransportPacket unit tests */
//#include "TransportPacket.test.hh"
//#include "TransportPacket.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Packet.test unit tests */
+ \brief Packet unit tests */
//#include "Packet.test.hh"
//#include "Packet.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief PacketData.test unit tests */
+ \brief PacketData unit tests */
//#include "PacketData.test.hh"
//#include "PacketData.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief PacketImpl.test unit tests */
+ \brief PacketImpl unit tests */
//#include "PacketImpl.test.hh"
//#include "PacketImpl.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief PacketInterpreter.test unit tests */
+ \brief PacketInterpreter unit tests */
//#include "PacketInterpreter.test.hh"
//#include "PacketInterpreter.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief PacketParser.test unit tests */
+ \brief PacketParser unit tests */
//#include "PacketParser.test.hh"
//#include "PacketParser.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief PacketRegistry unit tests */
//#include "PacketRegistry.test.hh"
//#include "PacketRegistry.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief ParseHelpers.test unit tests */
+ \brief ParseHelpers unit tests */
//#include "ParseHelpers.test.hh"
//#include "ParseHelpers.test.ih"
// 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"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief VariantParser.test unit tests */
+ \brief VariantParser unit tests */
//#include "VariantParser.test.hh"
//#include "VariantParser.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief VectorParser unit tests */
//#include "VectorParser.test.hh"
//#include "VectorParser.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief ClockService.test unit tests */
+ \brief ClockService unit tests */
//#include "ClockService.test.hh"
//#include "ClockService.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief EventManager.test unit tests */
+ \brief EventManager unit tests */
//#include "EventManager.test.hh"
//#include "EventManager.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief FdEvent.test unit tests */
+ \brief FdEvent unit tests */
//#include "FdEvent.test.hh"
//#include "FdEvent.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Poller.test unit tests */
+ \brief Poller unit tests */
//#include "Poller.test.hh"
//#include "Poller.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief Scheduler unit tests */
-//#include "scheduler.test.hh"
-//#include "scheduler.test.ih"
+//#include "Scheduler.test.hh"
+//#include "Scheduler.test.ih"
// Custom includes
#include <sys/types.h>
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief SignalEvent.test unit tests */
+ \brief SignalEvent unit tests */
//#include "SignalEvent.test.hh"
//#include "SignalEvent.test.ih"
{
called = true;
}
-
}
BOOST_AUTO_UNIT_TEST(signalDispatcher)
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief TimerEvent.test unit tests */
+ \brief TimerEvent unit tests */
//#include "TimerEvent.test.hh"
//#include "TimerEvent.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief ClientSocketHandle unit tests */
//#include "ClientSocketHandle.test.hh"
//#include "ClientSocketHandle.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief FileHandle unit tests */
//#include "FileHandle.test.hh"
//#include "FileHandle.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief NetdeviceController unit tests */
//#include "NetdeviceController.test.hh"
//#include "NetdeviceController.test.ih"
// 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"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief ProtocolServerSocketHandle unit tests */
//#include "ProtocolServerSocketHandle.test.hh"
//#include "ProtocolServerSocketHandle.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief BSDAddressingPolicy.test unit tests */
+ \brief BSDAddressingPolicy unit tests */
//#include "BSDAddressingPolicy.test.hh"
//#include "BSDAddressingPolicy.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief BSDSocketAddress.test unit tests */
+ \brief BSDSocketAddress unit tests */
//#include "BSDSocketAddress.test.hh"
//#include "BSDSocketAddress.test.ih"
// Custom includes
#include <boost/format.hpp>
#include <sys/socket.h>
-#include "senf/Utils/Exception.hh"
+#include "../../../Utils/Exception.hh"
#include <sys/ioctl.h>
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief INet4Address.test unit tests */
+ \brief INet4Address unit tests */
//#include "INet4Address.test.hh"
//#include "INet4Address.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief INet6Address.test unit tests */
+ \brief INet6Address unit tests */
//#include "INet6Address.test.hh"
//#include "INet6Address.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief INetAddressing unit tests */
//#include "INetAddressing.test.hh"
//#include "INetAddressing.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief MulticastSocketProtocol.test unit tests */
+ \brief MulticastSocketProtocol unit tests */
//#include "MulticastSocketProtocol.test.hh"
//#include "MulticastSocketProtocol.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief RawINetSocketHandle.test unit tests */
+ \brief RawINetSocketHandle unit tests */
#include <sys/types.h>
#include <sys/ioctl.h>
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief TCPSocketHandle unit tests */
//#include "TCPSocketHandle.test.hh"
//#include "TCPSocketHandle.test.ih"
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
-#include "TCPSocketHandle.hh"
#include <iostream>
+#include "TCPSocketHandle.hh"
#include "../../../Utils/auto_unit_test.hh"
#include <boost/test/test_tools.hpp>
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief UDPSocketHandle.test unit tests */
+ \brief UDPSocketHandle unit tests */
//#include "UDPSocketHandle.test.hh"
//#include "UDPSocketHandle.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief LLAddressing unit tests */
//#include "LLAddressing.test.hh"
//#include "LLAddressing.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief MACAddress.test unit tests */
+ \brief MACAddress unit tests */
//#include "MACAddress.test.hh"
//#include "MACAddress.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief PacketSocketHandle unit tests */
//#include "PacketSocketHandle.test.hh"
//#include "PacketSocketHandle.test.ih"
-#include "PacketSocketHandle.hh"
-
// Custom includes
#include <iostream>
#include <unistd.h>
+#include "PacketSocketHandle.hh"
#include "../../../Utils/auto_unit_test.hh"
#include <boost/test/test_tools.hpp>
// 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>
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief UNDatagramSocketHandle.test unit tests */
+ \brief UNDatagramSocketHandle unit tests */
//#include "UNDatagramSocketHandle.test.hh"
//#include "UNDatagramSocketHandle.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief UNSocketProtocol.test unit tests */
+ \brief UNSocketProtocol unit tests */
//#include "UNSocketProtocol.test.hh"
//#include "UNSocketProtocol.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief ServerSocketHandle unit tests */
//#include "ServerSocketHandle.test.hh"
//#include "ServerSocketHandle.test.ih"
#include "SocketHandle.ih"
// Custom includes
-#include "../Utils/senfassert.hh"
#include <typeinfo>
-#include <boost/lexical_cast.hpp>
+#include "../Utils/senfassert.hh"
#include "../Utils/TypeInfo.hh"
#define prefix_ inline
#ifndef HH_SENF_Socket_SocketHandle_
#define HH_SENF_Socket_SocketHandle_ 1
+//#include "SocketHandle.mpp"
+#include "SocketHandle.ih"
+
// Custom includes
#include <memory> // std::auto_ptr
#include "FileHandle.hh"
#include "SocketPolicy.hh"
-//#include "SocketHandle.mpp"
-#include "SocketHandle.ih"
///////////////////////////////hh.p////////////////////////////////////////
-#include "SocketHandle.ih"
namespace senf {
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief SocketHandle unit tests */
//#include "SocketHandle.test.hh"
//#include "SocketHandle.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief SocketPolicy unit tests */
-//#include "SocketPolicy.test.hh"
+#include "SocketPolicy.test.hh"
//#include "SocketPolicy.test.ih"
// Custom includes
+#include <boost/mpl/assert.hpp>
+#include <boost/concept_check.hpp>
+#include <boost/utility.hpp> // enable_if
+
#include "SocketPolicy.hh"
-#include "SocketPolicy.test.hh"
#include "../Utils/auto_unit_test.hh"
#include <boost/test/test_tools.hpp>
-#include <boost/mpl/assert.hpp>
-#include <boost/concept_check.hpp>
-#include <boost/utility.hpp> // enable_if
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief SocketProtocol unit tests */
-//#include "SocketProtocol.test.hh"
+#include "SocketProtocol.test.hh"
//#include "SocketProtocol.test.ih"
// Custom includes
#include "SocketProtocol.hh"
#include "SocketPolicy.hh"
-#include "SocketProtocol.test.hh"
#include "../Utils/auto_unit_test.hh"
#include <boost/test/test_tools.hpp>
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Buffer.test unit tests */
+ \brief Buffer unit tests */
//#include "Buffer.test.hh"
//#include "Buffer.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Config.test unit tests */
+ \brief Config unit tests */
//#include "Config.test.hh"
//#include "Config.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief ConfigFile.test unit tests */
+ \brief ConfigFile unit tests */
//#include "ConfigFile.test.hh"
//#include "ConfigFile.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Executor.test unit tests */
+ \brief Executor unit tests */
//#include "Executor.test.hh"
//#include "Executor.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Node.test unit tests */
+ \brief Node unit tests */
//#include "Node.test.hh"
//#include "Node.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief OverloadedCommand.test unit tests */
+ \brief OverloadedCommand unit tests */
//#include "OverloadedCommand.test.hh"
//#include "OverloadedCommand.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Parse.test unit tests */
+ \brief Parse unit tests */
//#include "Parse.test.hh"
//#include "Parse.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief ParsedCommand.test unit tests */
+ \brief ParsedCommand unit tests */
//#include "ParsedCommand.test.hh"
//#include "ParsedCommand.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief ProgramOptions.test unit tests */
+ \brief ProgramOptions unit tests */
//#include "ProgramOptions.test.hh"
//#include "ProgramOptions.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief STLSupport.test unit tests */
+ \brief STLSupport unit tests */
//#include "STLSupport.test.hh"
//#include "STLSupport.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief ScopedDirectory.test unit tests */
+ \brief ScopedDirectory unit tests */
//#include "ScopedDirectory.test.hh"
//#include "ScopedDirectory.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Server.test unit tests */
+ \brief Server unit tests */
//#include "Server.test.hh"
//#include "Server.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Traits.test unit tests */
+ \brief Traits unit tests */
//#include "Traits.test.hh"
//#include "Traits.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Variables.test unit tests */
+ \brief Variables unit tests */
//#include "Variables.test.hh"
//#include "Variables.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Daemon.test unit tests */
+ \brief Daemon unit tests */
//#include "Daemon.test.hh"
//#include "Daemon.test.ih"
#include <fstream>
#include <boost/filesystem/operations.hpp>
#include "Daemon.hh"
-#include "../Utils/Exception.hh"
-#include "../Utils/Backtrace.hh"
-#include "../Scheduler/Scheduler.hh"
+#include "../Exception.hh"
+#include "../Backtrace.hh"
+#include "../../Scheduler/Scheduler.hh"
-#include "../Utils/auto_unit_test.hh"
+#include "../auto_unit_test.hh"
#include <boost/test/test_tools.hpp>
#define prefix_
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief DiscardStream.test unit tests */
+ \brief DiscardStream unit tests */
//#include "DiscardStream.test.hh"
//#include "DiscardStream.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Exception.test unit tests */
+ \brief Exception unit tests */
//#include "Exception.test.hh"
//#include "Exception.test.ih"
// Custom includes
#include "Exception.hh"
+#include <boost/format.hpp>
+#include <errno.h>
#include "../Utils/auto_unit_test.hh"
#include <boost/test/test_tools.hpp>
-#include <boost/format.hpp>
-#include <errno.h>
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief IpChecksum.test unit tests */
+ \brief IpChecksum unit tests */
//#include "IpChecksum.test.hh"
//#include "IpChecksum.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief IteratorTraits.test unit tests */
+ \brief IteratorTraits unit tests */
//#include "IteratorTraits.test.hh"
//#include "IteratorTraits.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief AreaRegistry.test unit tests */
+ \brief AreaRegistry unit tests */
//#include "AreaRegistry.test.hh"
//#include "AreaRegistry.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Config.test unit tests */
+ \brief Config unit tests */
//#include "Config.test.hh"
//#include "Config.test.ih"
#include "FileTarget.hh"
#include "Logger.hh"
-#include "../Utils/auto_unit_test.hh"
+#include "../auto_unit_test.hh"
#include <boost/test/test_tools.hpp>
#define prefix_
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Log.test unit tests */
+ \brief Log unit tests */
//#include "Log.test.hh"
//#include "Log.test.ih"
// Custom includes
+#include "main.test.hh"
+
#include "../../Utils/auto_unit_test.hh"
#include <boost/test/test_tools.hpp>
-#include "main.test.hh"
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Parameters.test unit tests */
+ \brief Parameters unit tests */
//#include "Parameters.test.hh"
//#include "Parameters.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief StreamRegistry.test unit tests */
+ \brief StreamRegistry unit tests */
//#include "StreamRegistry.test.hh"
//#include "StreamRegistry.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief SyslogTarget.test unit tests */
+ \brief SyslogTarget unit tests */
//#include "SyslogTarget.test.hh"
//#include "SyslogTarget.test.ih"
// Custom includes
#include "Logger.hh"
-#include "../Utils/auto_unit_test.hh"
+#include "../../Utils/auto_unit_test.hh"
#include <boost/test/test_tools.hpp>
#define prefix_
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief SyslogUDPTarget.test unit tests */
+ \brief SyslogUDPTarget unit tests */
//#include "SyslogUDPTarget.test.hh"
//#include "SyslogUDPTarget.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Target.test unit tests */
+ \brief Target unit tests */
//#include "Target.test.hh"
//#include "Target.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief String.test unit tests */
+ \brief String unit tests */
//#include "String.test.hh"
//#include "String.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Tags.test unit tests */
+ \brief Tags unit tests */
//#include "Tags.test.hh"
//#include "Tags.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Telnet.test unit tests */
+ \brief Telnet unit tests */
//#include "Telnet.test.hh"
//#include "Telnet.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief Terminfo.test unit tests */
+ \brief Terminfo unit tests */
//#include "Terminfo.test.hh"
//#include "Terminfo.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief TypeIdValue.test unit tests */
+ \brief TypeIdValue unit tests */
//#include "TypeIdValue.test.hh"
//#include "TypeIdValue.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief TypeInfo unit tests */
//#include "TypeInfo.test.hh"
//#include "TypeInfo.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief hexdump.test unit tests */
+ \brief hexdump unit tests */
//#include "hexdump.test.hh"
//#include "hexdump.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief intrusive_refcount unit tests */
//#include "intrusive_refcount.test.hh"
//#include "intrusive_refcount.test.ih"
// Free Software Foundation, Inc.,
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-// Unit tests
+/** \file
+ \brief membind unit tests */
//#include "membind.test.hh"
//#include "membind.test.ih"
// Custom includes
#include <sstream>
#include <string>
-#include "../Utils/membind.hh"
+#include "membind.hh"
#include "../Utils/auto_unit_test.hh"
#include <boost/test/test_tools.hpp>
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief mpl.test unit tests */
+ \brief mpl unit tests */
//#include "mpl.test.hh"
//#include "mpl.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief parameter.test unit tests */
+ \brief parameter unit tests */
//#include "parameter.test.hh"
//#include "parameter.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief pool_alloc_mixin.test unit tests */
+ \brief pool_alloc_mixin unit tests */
//#include "pool_alloc_mixin.test.hh"
//#include "pool_alloc_mixin.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief preprocessor.test unit tests */
+ \brief preprocessor unit tests */
//#include "preprocessor.test.hh"
//#include "preprocessor.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief safe_bool.test unit tests */
+ \brief safe_bool unit tests */
//#include "safe_bool.test.hh"
//#include "safe_bool.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief singleton.test unit tests */
+ \brief singleton unit tests */
//#include "singleton.test.hh"
//#include "singleton.test.ih"
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/** \file
- \brief type_traits.test unit tests */
+ \brief type_traits unit tests */
//#include "type_traits.test.hh"
//#include "type_traits.test.ih"