Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest Class Reference

Inherits TestFixture.

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

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

Collaboration graph
[legend]
List of all members.

Detailed Description

TrackerResponseParser class testing unit.

Definition at line 38 of file TrackerResponseParserTest.cpp.

Public Member Functions

void testLoadInvalidResponseEmptyData ()
void testLoadInvalidResponseRandomData ()
void testLoadInvalidResponseListInsteadOfDictionary ()
void testLoadInvalidResponseEmptyDictionary ()
void testLoadInvalidResponseWouldNotChangeInputResponseObject ()
void testLoadFieldFailureReasonPresentAndOtherDataAsWell ()
void testLoadFieldFailureReasonPresentAndNoOtherData ()
void testLoadFieldWarningMessageValid ()
void testLoadFieldIntervalMissing ()
void testLoadFieldIntervalNegative ()
void testLoadFieldIntervalZero ()
void testLoadFieldIntervalTooBig ()
void testLoadFieldIntervalValid ()
void testLoadFieldMinIntervalNegative ()
void testLoadFieldMinIntervalZero ()
void testLoadFieldMinIntervalTooBig ()
void testLoadFieldMinIntervalValid ()
void testLoadFieldTrackerIdValid ()
void testLoadFieldCompleteNegative ()
void testLoadFieldCompleteZero ()
void testLoadFieldCompleteTooBig ()
void testLoadFieldCompleteValid ()
void testLoadFieldIncompleteNegative ()
void testLoadFieldIncompleteZero ()
void testLoadFieldIncompleteTooBig ()
void testLoadFieldIncompleteValid ()
void testLoadFieldPeersMissing ()
void testLoadFieldPeersIntInsteadOfDictionary ()
void testLoadFieldPeersDictionaryModelEmptyList ()
void testLoadFieldPeersDictionaryModelOnePeerInfoPeerIdMissing ()
void testLoadFieldPeersDictionaryModelOnePeerInfoPeerIdInvalid ()
void testLoadFieldPeersDictionaryModelOnePeerInfoIpMissing ()
void testLoadFieldPeersDictionaryModelOnePeerInfoPortMissing ()
void testLoadFieldPeersDictionaryModelOnePeerInfoPortNegative ()
void testLoadFieldPeersDictionaryModelOnePeerInfoPortZero ()
void testLoadFieldPeersDictionaryModelOnePeerInfoPortTooBig ()
void testLoadFieldPeersDictionaryModelOnePeerInfoPortValid ()
void testLoadFieldPeersDictionaryModelTwoPeerInfoEverythingValid ()
void testLoadFieldPeersDictionaryModelTwoPeerInfoSecondInvalid ()
void testLoadFieldPeersBinaryModelOnePeerInfoStringTooShort ()
void testLoadFieldPeersBinaryModelOnePeerInfoStringTooLong ()
void testLoadFieldPeersBinaryModelOnePeerInfoEverythingValid ()
void testLoadFieldPeersBinaryModelTwoPeerInfoEverythingValid ()
void testLoadValidResponseMinimal ()
void testLoadValidResponseComplex ()

Private Member Functions

 CPPUNIT_TEST_SUITE (TrackerResponseParserTest)
 CPPUNIT_TEST (testLoadInvalidResponseEmptyData)
 CPPUNIT_TEST (testLoadInvalidResponseRandomData)
 CPPUNIT_TEST (testLoadInvalidResponseListInsteadOfDictionary)
 CPPUNIT_TEST (testLoadInvalidResponseEmptyDictionary)
 CPPUNIT_TEST (testLoadInvalidResponseWouldNotChangeInputResponseObject)
 CPPUNIT_TEST (testLoadFieldFailureReasonPresentAndOtherDataAsWell)
 CPPUNIT_TEST (testLoadFieldFailureReasonPresentAndNoOtherData)
 CPPUNIT_TEST (testLoadFieldWarningMessageValid)
 CPPUNIT_TEST (testLoadFieldIntervalNegative)
 CPPUNIT_TEST (testLoadFieldIntervalZero)
 CPPUNIT_TEST (testLoadFieldIntervalTooBig)
 CPPUNIT_TEST (testLoadFieldIntervalValid)
 CPPUNIT_TEST (testLoadFieldIntervalMissing)
 CPPUNIT_TEST (testLoadFieldMinIntervalNegative)
 CPPUNIT_TEST (testLoadFieldMinIntervalZero)
 CPPUNIT_TEST (testLoadFieldMinIntervalTooBig)
 CPPUNIT_TEST (testLoadFieldMinIntervalValid)
 CPPUNIT_TEST (testLoadFieldTrackerIdValid)
 CPPUNIT_TEST (testLoadFieldCompleteNegative)
 CPPUNIT_TEST (testLoadFieldCompleteZero)
 CPPUNIT_TEST (testLoadFieldCompleteTooBig)
 CPPUNIT_TEST (testLoadFieldCompleteValid)
 CPPUNIT_TEST (testLoadFieldIncompleteNegative)
 CPPUNIT_TEST (testLoadFieldIncompleteZero)
 CPPUNIT_TEST (testLoadFieldIncompleteTooBig)
 CPPUNIT_TEST (testLoadFieldIncompleteValid)
 CPPUNIT_TEST (testLoadFieldPeersMissing)
 CPPUNIT_TEST (testLoadFieldPeersIntInsteadOfDictionary)
 CPPUNIT_TEST (testLoadFieldPeersDictionaryModelEmptyList)
 CPPUNIT_TEST (testLoadFieldPeersDictionaryModelOnePeerInfoPeerIdMissing)
 CPPUNIT_TEST (testLoadFieldPeersDictionaryModelOnePeerInfoPeerIdInvalid)
 CPPUNIT_TEST (testLoadFieldPeersDictionaryModelOnePeerInfoIpMissing)
 CPPUNIT_TEST (testLoadFieldPeersDictionaryModelOnePeerInfoPortMissing)
 CPPUNIT_TEST (testLoadFieldPeersDictionaryModelOnePeerInfoPortNegative)
 CPPUNIT_TEST (testLoadFieldPeersDictionaryModelOnePeerInfoPortZero)
 CPPUNIT_TEST (testLoadFieldPeersDictionaryModelOnePeerInfoPortTooBig)
 CPPUNIT_TEST (testLoadFieldPeersDictionaryModelOnePeerInfoPortValid)
 CPPUNIT_TEST (testLoadFieldPeersDictionaryModelTwoPeerInfoEverythingValid)
 CPPUNIT_TEST (testLoadFieldPeersDictionaryModelTwoPeerInfoSecondInvalid)
 CPPUNIT_TEST (testLoadFieldPeersBinaryModelOnePeerInfoStringTooShort)
 CPPUNIT_TEST (testLoadFieldPeersBinaryModelOnePeerInfoStringTooLong)
 CPPUNIT_TEST (testLoadFieldPeersBinaryModelOnePeerInfoEverythingValid)
 CPPUNIT_TEST (testLoadFieldPeersBinaryModelTwoPeerInfoEverythingValid)
 CPPUNIT_TEST (testLoadValidResponseMinimal)
 CPPUNIT_TEST (testLoadValidResponseComplex)
 CPPUNIT_TEST_SUITE_END ()

Static Private Member Functions

template<class T>
static QByteArray stringifyNum (T num)
 Returns num transformed into string.
static QByteArray createPeersBinaryModel (const QByteArray &ipAddress, quint16 port)
 Returns a string representing one peer as a binary model.


Member Function Documentation

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadValidResponseComplex   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadValidResponseMinimal   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldPeersBinaryModelTwoPeerInfoEverythingValid   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldPeersBinaryModelOnePeerInfoEverythingValid   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldPeersBinaryModelOnePeerInfoStringTooLong   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldPeersBinaryModelOnePeerInfoStringTooShort   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldPeersDictionaryModelTwoPeerInfoSecondInvalid   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldPeersDictionaryModelTwoPeerInfoEverythingValid   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldPeersDictionaryModelOnePeerInfoPortValid   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldPeersDictionaryModelOnePeerInfoPortTooBig   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldPeersDictionaryModelOnePeerInfoPortZero   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldPeersDictionaryModelOnePeerInfoPortNegative   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldPeersDictionaryModelOnePeerInfoPortMissing   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldPeersDictionaryModelOnePeerInfoIpMissing   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldPeersDictionaryModelOnePeerInfoPeerIdInvalid   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldPeersDictionaryModelOnePeerInfoPeerIdMissing   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldPeersDictionaryModelEmptyList   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldPeersIntInsteadOfDictionary   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldPeersMissing   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldIncompleteValid   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldIncompleteTooBig   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldIncompleteZero   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldIncompleteNegative   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldCompleteValid   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldCompleteTooBig   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldCompleteZero   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldCompleteNegative   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldTrackerIdValid   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldMinIntervalValid   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldMinIntervalTooBig   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldMinIntervalZero   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldMinIntervalNegative   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldIntervalMissing   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldIntervalValid   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldIntervalTooBig   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldIntervalZero   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldIntervalNegative   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldWarningMessageValid   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldFailureReasonPresentAndNoOtherData   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadFieldFailureReasonPresentAndOtherDataAsWell   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadInvalidResponseWouldNotChangeInputResponseObject   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadInvalidResponseEmptyDictionary   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadInvalidResponseListInsteadOfDictionary   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadInvalidResponseRandomData   )  [private]
 

Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::CPPUNIT_TEST testLoadInvalidResponseEmptyData   )  [private]
 

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

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

static QByteArray Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::createPeersBinaryModel const QByteArray &  ipAddress,
quint16  port
[inline, static, private]
 

Returns a string representing one peer as a binary model.

Returned string will have the following format (without white-spaces): ipAddress port 6B 2B Everything will be in a binary format.

Definition at line 104 of file TrackerResponseParserTest.cpp.

template<class T>
static QByteArray Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::stringifyNum num  )  [inline, static, private]
 

Returns num transformed into string.

Definition at line 90 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldCompleteNegative  )  [inline]
 

Verifies that raw response data with negative 'complete' value would be parsed (it's only optional), but this field value won't be saved.

Definition at line 437 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldCompleteTooBig  )  [inline]
 

Verifies that raw response data with too big 'complete' value would be parsed (it's only optional), but this field value won't be saved.

Definition at line 475 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldCompleteValid  )  [inline]
 

Verifies 'complete' field parsing corectness.

Definition at line 493 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldCompleteZero  )  [inline]
 

Verifies that raw response data with zero 'complete' value will be parsed correctly.

Definition at line 456 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldFailureReasonPresentAndNoOtherData  )  [inline]
 

Verifies situation when only 'failure reason' field is present and no other data.

Definition at line 214 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldFailureReasonPresentAndOtherDataAsWell  )  [inline]
 

Verifies situation when 'failure reason' field is present, but there are also other data, so it won't be parsed correctly.

Definition at line 196 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldIncompleteNegative  )  [inline]
 

Verifies that raw response data with negative 'incomplete' value will be parsed (it's only optional), but this field value won't be saved.

Definition at line 512 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldIncompleteTooBig  )  [inline]
 

Verifies that raw response data with too big 'incomplete' value will be parsed (it's only optional), but this field value won't be saved.

Definition at line 551 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldIncompleteValid  )  [inline]
 

Verifies 'incomplete' field parsing corectness.

Definition at line 569 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldIncompleteZero  )  [inline]
 

Verifies that raw response data with zero 'incomplete' value will be parsed correctly.

Definition at line 531 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldIntervalMissing  )  [inline]
 

Verifies that raw response data without 'interval' field won't be parsed correctly.

Definition at line 257 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldIntervalNegative  )  [inline]
 

Verifies that raw response data with negative 'interval' value won't be parsed correctly.

Definition at line 273 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldIntervalTooBig  )  [inline]
 

Verifies that raw response data with too big 'interval' value won't be parsed correctly.

Definition at line 308 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldIntervalValid  )  [inline]
 

Verifies 'interval' field parsing corectness.

Definition at line 324 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldIntervalZero  )  [inline]
 

Verifies that raw response data with zero 'interval' value will be parsed correctly.

Definition at line 290 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldMinIntervalNegative  )  [inline]
 

Verifies that raw response data with negative 'min interval' value would be parsed (it's only optional), but this field value won't be saved.

Definition at line 342 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldMinIntervalTooBig  )  [inline]
 

Verifies that raw response data with too big 'min interval' value would be parsed (it's only optional), but this field value won't be saved.

Definition at line 380 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldMinIntervalValid  )  [inline]
 

Verifies 'interval' field parsing corectness.

Definition at line 398 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldMinIntervalZero  )  [inline]
 

Verifies that raw response data with zero 'min interval' value will be parsed correctly.

Definition at line 361 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldPeersBinaryModelOnePeerInfoEverythingValid  )  [inline]
 

Verifies that raw response data with 'peers' containing one valid record with valid port will be parsed correctly.

Definition at line 965 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldPeersBinaryModelOnePeerInfoStringTooLong  )  [inline]
 

Verifies that raw response data with 'peers' containing too long string won't be parsed correctly.

Definition at line 945 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldPeersBinaryModelOnePeerInfoStringTooShort  )  [inline]
 

Verifies that raw response data with 'peers' containing too short string won't be parsed correctly.

Definition at line 925 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldPeersBinaryModelTwoPeerInfoEverythingValid  )  [inline]
 

Verifies that raw response data with 'peers' containing two valid records with all needed info valid will be parsed parsed correctly.

Definition at line 989 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldPeersDictionaryModelEmptyList  )  [inline]
 

Verifies that raw response data with empty 'peers' will be parsed correctly.

Definition at line 621 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldPeersDictionaryModelOnePeerInfoIpMissing  )  [inline]
 

Verifies that raw response data with 'peers' containing one record with missing 'ip' will be parsed correctly, but that peer info won't be saved.

Definition at line 694 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldPeersDictionaryModelOnePeerInfoPeerIdInvalid  )  [inline]
 

Verifies that raw response data with 'peers' containing one record with invalid 'peer id' will be parsed correctly, but peerID of that peer will be set to default value.

Definition at line 665 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldPeersDictionaryModelOnePeerInfoPeerIdMissing  )  [inline]
 

Verifies that raw response data with 'peers' containing one record with missing 'peer id' will be parsed correctly, but that peer info won't be saved.

Definition at line 640 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldPeersDictionaryModelOnePeerInfoPortMissing  )  [inline]
 

Verifies that raw response data with 'peers' containing one record with missing 'port' will be parsed correctly, but that peer info won't be saved.

Definition at line 719 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldPeersDictionaryModelOnePeerInfoPortNegative  )  [inline]
 

Verifies that raw response data with 'peers' containing one valid record with negative 'port' will be parsed correctly, but the port will have it's default value.

Definition at line 744 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldPeersDictionaryModelOnePeerInfoPortTooBig  )  [inline]
 

Verifies that raw response data with 'peers' containing one valid record with too big 'port' will be parsed correctly, but the port will have it's default value.

Definition at line 802 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldPeersDictionaryModelOnePeerInfoPortValid  )  [inline]
 

Verifies that raw response data with 'peers' containing one valid record with valid port will be parsed correctly.

Definition at line 830 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldPeersDictionaryModelOnePeerInfoPortZero  )  [inline]
 

Verifies that raw response data with 'peers' containing one valid record with zero 'port' will be parsed correctly.

Definition at line 773 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldPeersDictionaryModelTwoPeerInfoEverythingValid  )  [inline]
 

Verifies that raw response data with 'peers' containing two valid records with all needed info valid will be parsed parsed correctly.

Definition at line 858 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldPeersDictionaryModelTwoPeerInfoSecondInvalid  )  [inline]
 

Verifies that raw response data with 'peers' containing one valid and one invalid records will be parsed parsed correctly, but there will be only one peer info in the result response.

Definition at line 894 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldPeersIntInsteadOfDictionary  )  [inline]
 

Verifies that raw response data with 'peers' containing list of ints instead of list of dictionaries won't be parsed correctly.

Definition at line 604 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldPeersMissing  )  [inline]
 

Verifies that raw response data without 'peers' field won't be parsed correctly.

Definition at line 588 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldTrackerIdValid  )  [inline]
 

Verifies 'tracker ID' field parsing corectness.

Definition at line 416 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadFieldWarningMessageValid  )  [inline]
 

Verifies 'warning message' field parsing corectness.

Definition at line 238 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadInvalidResponseEmptyData  )  [inline]
 

Verifies that empty raw response data won't be parsed.

Definition at line 122 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadInvalidResponseEmptyDictionary  )  [inline]
 

Verifies that raw response data with empty dictionary won't be parsed.

Definition at line 161 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadInvalidResponseListInsteadOfDictionary  )  [inline]
 

Verifies that invalid (list instead of a dictionary) raw response data won't be parsed.

Definition at line 148 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadInvalidResponseRandomData  )  [inline]
 

Verifies that invalid (random data) raw response data won't be parsed.

Definition at line 135 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadInvalidResponseWouldNotChangeInputResponseObject  )  [inline]
 

Verifies that invalid parsing won't change input response object.

Definition at line 173 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadValidResponseComplex  )  [inline]
 

Verifies that raw response data containing complex valid response would be parsed parsed correctly.

Definition at line 1044 of file TrackerResponseParserTest.cpp.

void Protocols::BitTorrent::Trackers::Testing::TrackerResponseParserTest::testLoadValidResponseMinimal  )  [inline]
 

Verifies that raw response data containing minimal valid response would be parsed parsed correctly.

Definition at line 1019 of file TrackerResponseParserTest.cpp.


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