Gnutella::Packets::Testing::TestPacket Class Reference

Inherits TestFixture.

Inheritance diagram for Gnutella::Packets::Testing::TestPacket:

Inheritance graph
[legend]
Collaboration diagram for Gnutella::Packets::Testing::TestPacket:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 68 of file PacketTest.cpp.

Public Member Functions

 TestPacket ()
void setUp ()
void tearDown ()
void testDescriptorCtor ()
void testHeaderPayloadCtor ()
void testAssign ()
void testInvalidatePayload ()
void testInvalidateHeader ()
void createPacketStream (QByteArray &arr, QUuid &uid, PayloadDescriptor desc, uchar ttl, uchar hops, quint32 payloadLength)
void testReadHeader ()
void testParse ()
void testWriteHeader ()
void testRawPayload ()
void testRawHeader ()
void testFromRawData ()

Private Types

enum  {
  PAYLOADLEN = 34567,
  TTL = 144,
  HOPS = 49,
  MSGLEN = 44,
  MSGFILLCHAR = 'X'
}

Private Member Functions

 TestPacket (const TestPacket &)
TestPacketoperator= (const TestPacket &)
 CPPUNIT_TEST_SUITE (TestPacket)
 CPPUNIT_TEST (testDescriptorCtor)
 CPPUNIT_TEST (testAssign)
 CPPUNIT_TEST (testInvalidateHeader)
 CPPUNIT_TEST (testReadHeader)
 CPPUNIT_TEST (testParse)
 CPPUNIT_TEST (testInvalidatePayload)
 CPPUNIT_TEST (testWriteHeader)
 CPPUNIT_TEST (testHeaderPayloadCtor)
 CPPUNIT_TEST (testRawPayload)
 CPPUNIT_TEST (testRawHeader)
 CPPUNIT_TEST (testFromRawData)
 CPPUNIT_TEST_SUITE_END ()

Private Attributes

ByeConcretePacketm_p
QByteArray m_header
QByteArray m_payload
QUuid m_uid


Member Enumeration Documentation

anonymous enum [private]
 

Enumerator:
PAYLOADLEN 
TTL 
HOPS 
MSGLEN 
MSGFILLCHAR 

Definition at line 89 of file PacketTest.cpp.


Constructor & Destructor Documentation

Gnutella::Packets::Testing::TestPacket::TestPacket const TestPacket  )  [private]
 

Gnutella::Packets::Testing::TestPacket::TestPacket  )  [inline]
 

Definition at line 94 of file PacketTest.cpp.


Member Function Documentation

Gnutella::Packets::Testing::TestPacket::CPPUNIT_TEST testFromRawData   )  [private]
 

Gnutella::Packets::Testing::TestPacket::CPPUNIT_TEST testRawHeader   )  [private]
 

Gnutella::Packets::Testing::TestPacket::CPPUNIT_TEST testRawPayload   )  [private]
 

Gnutella::Packets::Testing::TestPacket::CPPUNIT_TEST testHeaderPayloadCtor   )  [private]
 

Gnutella::Packets::Testing::TestPacket::CPPUNIT_TEST testWriteHeader   )  [private]
 

Gnutella::Packets::Testing::TestPacket::CPPUNIT_TEST testInvalidatePayload   )  [private]
 

Gnutella::Packets::Testing::TestPacket::CPPUNIT_TEST testParse   )  [private]
 

Gnutella::Packets::Testing::TestPacket::CPPUNIT_TEST testReadHeader   )  [private]
 

Gnutella::Packets::Testing::TestPacket::CPPUNIT_TEST testInvalidateHeader   )  [private]
 

Gnutella::Packets::Testing::TestPacket::CPPUNIT_TEST testAssign   )  [private]
 

Gnutella::Packets::Testing::TestPacket::CPPUNIT_TEST testDescriptorCtor   )  [private]
 

Gnutella::Packets::Testing::TestPacket::CPPUNIT_TEST_SUITE TestPacket   )  [private]
 

Gnutella::Packets::Testing::TestPacket::CPPUNIT_TEST_SUITE_END  )  [private]
 

void Gnutella::Packets::Testing::TestPacket::createPacketStream QByteArray &  arr,
QUuid &  uid,
PayloadDescriptor  desc,
uchar  ttl,
uchar  hops,
quint32  payloadLength
[inline]
 

Definition at line 199 of file PacketTest.cpp.

TestPacket& Gnutella::Packets::Testing::TestPacket::operator= const TestPacket  )  [private]
 

void Gnutella::Packets::Testing::TestPacket::setUp  )  [inline]
 

Definition at line 101 of file PacketTest.cpp.

void Gnutella::Packets::Testing::TestPacket::tearDown  )  [inline]
 

Definition at line 109 of file PacketTest.cpp.

void Gnutella::Packets::Testing::TestPacket::testAssign  )  [inline]
 

Definition at line 143 of file PacketTest.cpp.

void Gnutella::Packets::Testing::TestPacket::testDescriptorCtor  )  [inline]
 

Definition at line 114 of file PacketTest.cpp.

void Gnutella::Packets::Testing::TestPacket::testFromRawData  )  [inline]
 

Definition at line 289 of file PacketTest.cpp.

void Gnutella::Packets::Testing::TestPacket::testHeaderPayloadCtor  )  [inline]
 

Definition at line 129 of file PacketTest.cpp.

void Gnutella::Packets::Testing::TestPacket::testInvalidateHeader  )  [inline]
 

Definition at line 178 of file PacketTest.cpp.

void Gnutella::Packets::Testing::TestPacket::testInvalidatePayload  )  [inline]
 

Definition at line 163 of file PacketTest.cpp.

void Gnutella::Packets::Testing::TestPacket::testParse  )  [inline]
 

Definition at line 230 of file PacketTest.cpp.

void Gnutella::Packets::Testing::TestPacket::testRawHeader  )  [inline]
 

Definition at line 275 of file PacketTest.cpp.

void Gnutella::Packets::Testing::TestPacket::testRawPayload  )  [inline]
 

Definition at line 261 of file PacketTest.cpp.

void Gnutella::Packets::Testing::TestPacket::testReadHeader  )  [inline]
 

Definition at line 215 of file PacketTest.cpp.

void Gnutella::Packets::Testing::TestPacket::testWriteHeader  )  [inline]
 

Definition at line 238 of file PacketTest.cpp.


Member Data Documentation

QByteArray Gnutella::Packets::Testing::TestPacket::m_header [private]
 

Definition at line 86 of file PacketTest.cpp.

ByeConcretePacket* Gnutella::Packets::Testing::TestPacket::m_p [private]
 

Definition at line 85 of file PacketTest.cpp.

QByteArray Gnutella::Packets::Testing::TestPacket::m_payload [private]
 

Definition at line 87 of file PacketTest.cpp.

QUuid Gnutella::Packets::Testing::TestPacket::m_uid [private]
 

Definition at line 88 of file PacketTest.cpp.


The documentation for this class was generated from the following file: