Protocols::BitTorrent::Trackers::Testing::TrackerRequestTest Class Reference

Inherits TestFixture.

Inheritance diagram for Protocols::BitTorrent::Trackers::Testing::TrackerRequestTest:

Inheritance graph
[legend]
Collaboration diagram for Protocols::BitTorrent::Trackers::Testing::TrackerRequestTest:

Collaboration graph
[legend]
List of all members.

Detailed Description

TrackerRequest class testing unit.

Definition at line 35 of file TrackerRequestTest.cpp.

Public Member Functions

void testMinimalRequestCorrectness ()
 Verifies mandatory and non-mandatory data correctness on "minimal" req.
void testMaximalRequestCorrectness ()
 Verifies mandatory and non-mandatory data correctness of "maximal" req.
void testCompareTwoEqualRequests ()
 Verifies operator== and operator!= correctness on two requests.
void testCopyCtor ()
 The copy ctor should create equal objects.
void testAssignment ()
 After assignment the objects should be equal.
void testModifyingACopyDoesNotChangeTheOriginal ()
 Lazy copying is used. Verify that a copy is made prior to modification.

Private Member Functions

 CPPUNIT_TEST_SUITE (TrackerRequestTest)
 CPPUNIT_TEST (testMinimalRequestCorrectness)
 CPPUNIT_TEST (testMaximalRequestCorrectness)
 CPPUNIT_TEST (testCompareTwoEqualRequests)
 CPPUNIT_TEST (testCopyCtor)
 CPPUNIT_TEST (testAssignment)
 CPPUNIT_TEST (testModifyingACopyDoesNotChangeTheOriginal)
 CPPUNIT_TEST_SUITE_END ()


Member Function Documentation

Protocols::BitTorrent::Trackers::Testing::TrackerRequestTest::CPPUNIT_TEST testModifyingACopyDoesNotChangeTheOriginal   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerRequestTest::CPPUNIT_TEST testAssignment   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerRequestTest::CPPUNIT_TEST testCopyCtor   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerRequestTest::CPPUNIT_TEST testCompareTwoEqualRequests   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerRequestTest::CPPUNIT_TEST testMaximalRequestCorrectness   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerRequestTest::CPPUNIT_TEST testMinimalRequestCorrectness   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerRequestTest::CPPUNIT_TEST_SUITE TrackerRequestTest   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerRequestTest::CPPUNIT_TEST_SUITE_END  )  [private]
 

void Protocols::BitTorrent::Trackers::Testing::TrackerRequestTest::testAssignment  )  [inline]
 

After assignment the objects should be equal.

Definition at line 165 of file TrackerRequestTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerRequestTest::testCompareTwoEqualRequests  )  [inline]
 

Verifies operator== and operator!= correctness on two requests.

Definition at line 108 of file TrackerRequestTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerRequestTest::testCopyCtor  )  [inline]
 

The copy ctor should create equal objects.

Definition at line 142 of file TrackerRequestTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerRequestTest::testMaximalRequestCorrectness  )  [inline]
 

Verifies mandatory and non-mandatory data correctness of "maximal" req.

Definition at line 76 of file TrackerRequestTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerRequestTest::testMinimalRequestCorrectness  )  [inline]
 

Verifies mandatory and non-mandatory data correctness on "minimal" req.

Definition at line 48 of file TrackerRequestTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerRequestTest::testModifyingACopyDoesNotChangeTheOriginal  )  [inline]
 

Lazy copying is used. Verify that a copy is made prior to modification.

Definition at line 195 of file TrackerRequestTest.cpp.


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