Protocols::BitTorrent::Packets::Testing::PacketFactoryTest Class Reference

Inherits TestFixture.

Inheritance diagram for Protocols::BitTorrent::Packets::Testing::PacketFactoryTest:

Inheritance graph
[legend]
Collaboration diagram for Protocols::BitTorrent::Packets::Testing::PacketFactoryTest:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 45 of file PacketProtocolTest.cpp.

Public Member Functions

 PacketFactoryTest ()
void setUp ()
void tearDown ()
void testHeaderLengthReturns4 ()
void testPayloadLengthIs0 ()
void testPayloadLengthIs1 ()
void testPayloadLengthIs12345 ()
void scenarioCreatePacket (const QByteArray &header, const QByteArray &payload, const PacketBase &packet)
void testCreatePacketKeepalive ()
void testCreatePacketChoke ()
void testCreatePacketUnchoke ()
void testCreatePacketInterested ()
void testCreatePacketNotInterested ()
void testCreatePacketHave ()
void testCreatePacketBitField ()
void testCreatePacketRequest ()
void testCreatePacketPiece ()
void testCreatePacketCancel ()
void scenarioCreateBadPacket (const QByteArray &header, const QByteArray &payload)
void testCreateBadPacketUnknownType ()
void testCreateBadPacketChoke ()
void testCreateBadPacketUnchoke ()

Private Member Functions

 CPPUNIT_TEST_SUITE (PacketFactoryTest)
 CPPUNIT_TEST (testHeaderLengthReturns4)
 CPPUNIT_TEST (testPayloadLengthIs0)
 CPPUNIT_TEST (testPayloadLengthIs1)
 CPPUNIT_TEST (testPayloadLengthIs12345)
 CPPUNIT_TEST (testCreatePacketKeepalive)
 CPPUNIT_TEST (testCreatePacketChoke)
 CPPUNIT_TEST (testCreatePacketUnchoke)
 CPPUNIT_TEST (testCreatePacketInterested)
 CPPUNIT_TEST (testCreatePacketNotInterested)
 CPPUNIT_TEST (testCreatePacketHave)
 CPPUNIT_TEST (testCreatePacketBitField)
 CPPUNIT_TEST (testCreatePacketRequest)
 CPPUNIT_TEST (testCreatePacketPiece)
 CPPUNIT_TEST (testCreatePacketCancel)
 CPPUNIT_TEST (testCreateBadPacketUnknownType)
 CPPUNIT_TEST (testCreateBadPacketChoke)
 CPPUNIT_TEST (testCreateBadPacketUnchoke)
 CPPUNIT_TEST_SUITE_END ()

Private Attributes

auto_ptr< PacketProtocolprotocol


Constructor & Destructor Documentation

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::PacketFactoryTest  )  [inline]
 

Definition at line 70 of file PacketProtocolTest.cpp.


Member Function Documentation

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::CPPUNIT_TEST testCreateBadPacketUnchoke   )  [private]
 

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::CPPUNIT_TEST testCreateBadPacketChoke   )  [private]
 

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::CPPUNIT_TEST testCreateBadPacketUnknownType   )  [private]
 

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::CPPUNIT_TEST testCreatePacketCancel   )  [private]
 

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::CPPUNIT_TEST testCreatePacketPiece   )  [private]
 

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::CPPUNIT_TEST testCreatePacketRequest   )  [private]
 

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::CPPUNIT_TEST testCreatePacketBitField   )  [private]
 

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::CPPUNIT_TEST testCreatePacketHave   )  [private]
 

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::CPPUNIT_TEST testCreatePacketNotInterested   )  [private]
 

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::CPPUNIT_TEST testCreatePacketInterested   )  [private]
 

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::CPPUNIT_TEST testCreatePacketUnchoke   )  [private]
 

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::CPPUNIT_TEST testCreatePacketChoke   )  [private]
 

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::CPPUNIT_TEST testCreatePacketKeepalive   )  [private]
 

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::CPPUNIT_TEST testPayloadLengthIs12345   )  [private]
 

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::CPPUNIT_TEST testPayloadLengthIs1   )  [private]
 

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::CPPUNIT_TEST testPayloadLengthIs0   )  [private]
 

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::CPPUNIT_TEST testHeaderLengthReturns4   )  [private]
 

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::CPPUNIT_TEST_SUITE PacketFactoryTest   )  [private]
 

Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::CPPUNIT_TEST_SUITE_END  )  [private]
 

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::scenarioCreateBadPacket const QByteArray &  header,
const QByteArray &  payload
[inline]
 

Definition at line 185 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::scenarioCreatePacket const QByteArray &  header,
const QByteArray &  payload,
const PacketBase packet
[inline]
 

Definition at line 107 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::setUp  )  [inline]
 

Definition at line 74 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::tearDown  )  [inline]
 

Definition at line 79 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::testCreateBadPacketChoke  )  [inline]
 

Definition at line 199 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::testCreateBadPacketUnchoke  )  [inline]
 

Definition at line 205 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::testCreateBadPacketUnknownType  )  [inline]
 

Definition at line 193 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::testCreatePacketBitField  )  [inline]
 

Definition at line 157 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::testCreatePacketCancel  )  [inline]
 

Definition at line 178 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::testCreatePacketChoke  )  [inline]
 

Definition at line 122 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::testCreatePacketHave  )  [inline]
 

Definition at line 150 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::testCreatePacketInterested  )  [inline]
 

Definition at line 136 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::testCreatePacketKeepalive  )  [inline]
 

Definition at line 115 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::testCreatePacketNotInterested  )  [inline]
 

Definition at line 143 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::testCreatePacketPiece  )  [inline]
 

Definition at line 171 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::testCreatePacketRequest  )  [inline]
 

Definition at line 164 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::testCreatePacketUnchoke  )  [inline]
 

Definition at line 129 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::testHeaderLengthReturns4  )  [inline]
 

Definition at line 84 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::testPayloadLengthIs0  )  [inline]
 

Definition at line 89 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::testPayloadLengthIs1  )  [inline]
 

Definition at line 95 of file PacketProtocolTest.cpp.

void Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::testPayloadLengthIs12345  )  [inline]
 

Definition at line 101 of file PacketProtocolTest.cpp.


Member Data Documentation

auto_ptr<PacketProtocol> Protocols::BitTorrent::Packets::Testing::PacketFactoryTest::protocol [private]
 

Definition at line 67 of file PacketProtocolTest.cpp.


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