Inheritance diagram for Protocols::BitTorrent::Torrents::Testing::TorrentParserTest:


Torrent parsing testing is done here. For Torrent class testing see TorrentTest.
Definition at line 38 of file TorrentParserTest.cpp.
Public Member Functions | |
| void | testLoadTorrentDataMissingAnnounce () |
| Verifies that missing announce will cause torrent not to be loaded. | |
| void | testLoadTorrentDataMissingPieceLength () |
| Verifies that missing piece length will cause torrent not to be loaded. | |
| void | testLoadTorrentDataMissingPieces () |
| Verifies that missing pieces will cause torrent not to be loaded. | |
| void | testLoadTorrentDataMissingInfo () |
| Verifies that missing info will cause torrent not to be loaded. | |
| void | testLoadTorrentDataInvalidAnnounce () |
| Verifies that invalid announce URL will cause torrent not to be loaded. | |
| void | testLoadTorrentDataNegativeCreationDate () |
| Verifies that a negative creation date is invalid. | |
| void | testLoadTorrentDataZeroCreationDate () |
| Verifies that a zero creation date is valid. | |
| void | testLoadTorrentDataNegativePieceLength () |
| Verifies that a negative piece length is invalid. | |
| void | testLoadTorrentDataZeroPieceLength () |
| Verifies that a zero piece length is invalid. | |
| void | testLoadTorrentDataInvalidPiecesLength () |
| Verifies that invalid pieces length will cause torrent not to be loaded. | |
| void | testLoadTorrentDataNegativePrivate () |
| Verifies that a negative private flag is invalid. | |
| void | testLoadTorrentDataZeroPrivate () |
| Verifies that a private flag equal to 0 is valid. | |
| void | testLoadTorrentDataOnePrivate () |
| Verifies that a private flag equal to 1 is valid. | |
| void | testLoadTorrentDataTooHighPrivate () |
| Verifies that an invalid private flag is really invalid. | |
| void | testAnnounceListParsingOneTierOneTracker () |
| Verifies announce list parsing - [[tracker1]] . | |
| void | testAnnounceListParsingOneTierManyTrackers () |
| Verifies announce list parsing - [[tracker1, tracker2, tracker3, tracker4]]. | |
| void | testAnnounceListParsingManyTiersOneTracker () |
| Verifies announce list parsing - [[tracker1], [tracker2], [tracker3], [tracker4]]. | |
| void | testAnnounceListParsingManyTiersManyTrackers () |
| Verifies announce list parsing - [[tracker1, tracker2], [tracker3, tracker4]]. | |
| void | testAnnounceListParsingOneTierNoTracker () |
| Verifies announce list parsing - [[]] - invalid. | |
| void | testAnnounceListParsingNestedTiers () |
| Verifies announce list parsing - [[tracker1, [tracker2]]] - invalid. | |
| void | testLoadTorrentDataFileInfoMissingFileInfo () |
| Verifies that missing file info will cause torrent not to be loaded. | |
| void | testLoadTorrentDataFileInfoMissingFileName () |
| Verifies that missing file name will cause torrent not to be loaded. | |
| void | testLoadTorrentDataFileInfoMissingFileLength () |
| Verifies that missing file length will cause torrent not to be loaded. | |
| void | testLoadTorrentDataFileInfoNegativeFileLength () |
| Verifies that a negative file length will cause torrent not to be loaded. | |
| void | testLoadTorrentDataFileInfoZeroFileLength () |
| Verifies that a zero file length will cause torrent not to be loaded. | |
| void | testLoadTorrentDataFileInfoValidChecksum () |
| Verifies that a valid checksum is parsed correctly. | |
| void | testLoadTorrentDataFileInfoTooShortChecksum () |
| Verifies that a too short checksum will is invalid. | |
| void | testLoadTorrentDataFileInfoTooLongChecksum () |
| Verifies that a too long checksum will is invalid. | |
| void | testLoadTorrentDataMultipleFileInfoMissingDirectoryName () |
| Verifies that missing directory name will cause torrent not to be loaded. | |
| void | testLoadTorrentDataMultipleFileInfoMissingFiles () |
| Verifies that missing files will cause torrent not to be loaded. | |
| void | testLoadTorrentDataMultipleFileInfoMissingFileLength () |
| Verifies that missing file length will cause torrent not to be loaded. | |
| void | testLoadTorrentDataMultipleFileInfoMissingFilePath () |
| Verifies that missing file path will cause torrent not to be loaded. | |
| void | testFilePathParsingNoFiles () |
| Verifies that no files will cause torrent not to be loaded. | |
| void | testFilePathParsingOnlyFile () |
| Verifies only one file parsing. | |
| void | testFilePathParsingOneDirectory () |
| Verifies one directory and one file parsing. | |
| void | testFilePathParsingMoreDirectories () |
| Verifies more directories parsing. | |
| void | testLoadTorrentDataSimpleTorrent () |
| Verifies torrent data parsing on a simple torrent. | |
| void | testLoadTorrentDataMoreComplexTorrent () |
| Verifies torrent data parsing on a more complex torrent. | |
| void | testLoadTorrentDataTorrentWithEverything () |
| Verifies torrent data parsing on a torrent containing "everything" that can be parsed. | |
| void | testLoadTorrentDataMinimalTorrent () |
| Verifies torrent data parsing on a minimal torrent. | |
| void | testLoadTorrentDataEmptyTorrent () |
| Verifies that en empty torrent data won't be parsed correctly. | |
Private Member Functions | |
| CPPUNIT_TEST_SUITE (TorrentParserTest) | |
| CPPUNIT_TEST (testLoadTorrentDataMissingAnnounce) | |
| CPPUNIT_TEST (testLoadTorrentDataMissingPieceLength) | |
| CPPUNIT_TEST (testLoadTorrentDataMissingPieces) | |
| CPPUNIT_TEST (testLoadTorrentDataMissingInfo) | |
| CPPUNIT_TEST (testLoadTorrentDataInvalidAnnounce) | |
| CPPUNIT_TEST (testLoadTorrentDataNegativeCreationDate) | |
| CPPUNIT_TEST (testLoadTorrentDataZeroCreationDate) | |
| CPPUNIT_TEST (testLoadTorrentDataNegativePieceLength) | |
| CPPUNIT_TEST (testLoadTorrentDataZeroPieceLength) | |
| CPPUNIT_TEST (testLoadTorrentDataInvalidPiecesLength) | |
| CPPUNIT_TEST (testLoadTorrentDataNegativePrivate) | |
| CPPUNIT_TEST (testLoadTorrentDataZeroPrivate) | |
| CPPUNIT_TEST (testLoadTorrentDataOnePrivate) | |
| CPPUNIT_TEST (testLoadTorrentDataTooHighPrivate) | |
| CPPUNIT_TEST (testAnnounceListParsingOneTierOneTracker) | |
| CPPUNIT_TEST (testAnnounceListParsingOneTierManyTrackers) | |
| CPPUNIT_TEST (testAnnounceListParsingManyTiersOneTracker) | |
| CPPUNIT_TEST (testAnnounceListParsingManyTiersManyTrackers) | |
| CPPUNIT_TEST (testAnnounceListParsingOneTierNoTracker) | |
| CPPUNIT_TEST (testAnnounceListParsingNestedTiers) | |
| CPPUNIT_TEST (testLoadTorrentDataFileInfoMissingFileInfo) | |
| CPPUNIT_TEST (testLoadTorrentDataFileInfoMissingFileName) | |
| CPPUNIT_TEST (testLoadTorrentDataFileInfoMissingFileLength) | |
| CPPUNIT_TEST (testLoadTorrentDataFileInfoNegativeFileLength) | |
| CPPUNIT_TEST (testLoadTorrentDataFileInfoZeroFileLength) | |
| CPPUNIT_TEST (testLoadTorrentDataFileInfoValidChecksum) | |
| CPPUNIT_TEST (testLoadTorrentDataFileInfoTooShortChecksum) | |
| CPPUNIT_TEST (testLoadTorrentDataFileInfoTooLongChecksum) | |
| CPPUNIT_TEST (testLoadTorrentDataMultipleFileInfoMissingDirectoryName) | |
| CPPUNIT_TEST (testLoadTorrentDataMultipleFileInfoMissingFiles) | |
| CPPUNIT_TEST (testLoadTorrentDataMultipleFileInfoMissingFileLength) | |
| CPPUNIT_TEST (testLoadTorrentDataMultipleFileInfoMissingFilePath) | |
| CPPUNIT_TEST (testFilePathParsingNoFiles) | |
| CPPUNIT_TEST (testFilePathParsingOnlyFile) | |
| CPPUNIT_TEST (testFilePathParsingOneDirectory) | |
| CPPUNIT_TEST (testFilePathParsingMoreDirectories) | |
| CPPUNIT_TEST (testLoadTorrentDataSimpleTorrent) | |
| CPPUNIT_TEST (testLoadTorrentDataMoreComplexTorrent) | |
| CPPUNIT_TEST (testLoadTorrentDataTorrentWithEverything) | |
| CPPUNIT_TEST (testLoadTorrentDataMinimalTorrent) | |
| CPPUNIT_TEST (testLoadTorrentDataEmptyTorrent) | |
| CPPUNIT_TEST_SUITE_END () | |
Static Private Member Functions | |
| static int | sumOfAllPiecesLength (const Torrent::PieceList &pieceList) |
| Returns total sum of all pieces length in pieceList. | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns total sum of all pieces length in pieceList.
Definition at line 85 of file TorrentParserTest.cpp. |
|
|
Verifies announce list parsing - [[tracker1, tracker2], [tracker3, tracker4]].
Definition at line 314 of file TorrentParserTest.cpp. |
|
|
Verifies announce list parsing - [[tracker1], [tracker2], [tracker3], [tracker4]].
Definition at line 287 of file TorrentParserTest.cpp. |
|
|
Verifies announce list parsing - [[tracker1, [tracker2]]] - invalid.
Definition at line 350 of file TorrentParserTest.cpp. |
|
|
Verifies announce list parsing - [[tracker1, tracker2, tracker3, tracker4]].
Definition at line 266 of file TorrentParserTest.cpp. |
|
|
Verifies announce list parsing - [[]] - invalid.
Definition at line 337 of file TorrentParserTest.cpp. |
|
|
Verifies announce list parsing - [[tracker1]] .
Definition at line 248 of file TorrentParserTest.cpp. |
|
|
Verifies more directories parsing.
Definition at line 549 of file TorrentParserTest.cpp. |
|
|
Verifies that no files will cause torrent not to be loaded.
Definition at line 508 of file TorrentParserTest.cpp. |
|
|
Verifies one directory and one file parsing.
Definition at line 534 of file TorrentParserTest.cpp. |
|
|
Verifies only one file parsing.
Definition at line 519 of file TorrentParserTest.cpp. |
|
|
Verifies that en empty torrent data won't be parsed correctly.
Definition at line 739 of file TorrentParserTest.cpp. |
|
|
Verifies that missing file info will cause torrent not to be loaded.
Definition at line 363 of file TorrentParserTest.cpp. |
|
|
Verifies that missing file length will cause torrent not to be loaded.
Definition at line 385 of file TorrentParserTest.cpp. |
|
|
Verifies that missing file name will cause torrent not to be loaded.
Definition at line 374 of file TorrentParserTest.cpp. |
|
|
Verifies that a negative file length will cause torrent not to be loaded.
Definition at line 396 of file TorrentParserTest.cpp. |
|
|
Verifies that a too long checksum will is invalid.
Definition at line 446 of file TorrentParserTest.cpp. |
|
|
Verifies that a too short checksum will is invalid.
Definition at line 432 of file TorrentParserTest.cpp. |
|
|
Verifies that a valid checksum is parsed correctly.
Definition at line 418 of file TorrentParserTest.cpp. |
|
|
Verifies that a zero file length will cause torrent not to be loaded.
Definition at line 407 of file TorrentParserTest.cpp. |
|
|
Verifies that invalid announce URL will cause torrent not to be loaded.
Definition at line 132 of file TorrentParserTest.cpp. |
|
|
Verifies that invalid pieces length will cause torrent not to be loaded.
Definition at line 189 of file TorrentParserTest.cpp. |
|
|
Verifies torrent data parsing on a minimal torrent.
Definition at line 715 of file TorrentParserTest.cpp. |
|
|
Verifies that missing announce will cause torrent not to be loaded.
Definition at line 92 of file TorrentParserTest.cpp. |
|
|
Verifies that missing info will cause torrent not to be loaded.
Definition at line 123 of file TorrentParserTest.cpp. |
|
|
Verifies that missing piece length will cause torrent not to be loaded.
Definition at line 102 of file TorrentParserTest.cpp. |
|
|
Verifies that missing pieces will cause torrent not to be loaded.
Definition at line 113 of file TorrentParserTest.cpp. |
|
|
Verifies torrent data parsing on a more complex torrent.
Definition at line 596 of file TorrentParserTest.cpp. |
|
|
Verifies that missing directory name will cause torrent not to be loaded.
Definition at line 460 of file TorrentParserTest.cpp. |
|
|
Verifies that missing file length will cause torrent not to be loaded.
Definition at line 484 of file TorrentParserTest.cpp. |
|
|
Verifies that missing file path will cause torrent not to be loaded.
Definition at line 496 of file TorrentParserTest.cpp. |
|
|
Verifies that missing files will cause torrent not to be loaded.
Definition at line 472 of file TorrentParserTest.cpp. |
|
|
Verifies that a negative creation date is invalid.
Definition at line 143 of file TorrentParserTest.cpp. |
|
|
Verifies that a negative piece length is invalid.
Definition at line 167 of file TorrentParserTest.cpp. |
|
|
Verifies that a negative private flag is invalid.
Definition at line 200 of file TorrentParserTest.cpp. |
|
|
Verifies that a private flag equal to 1 is valid.
Definition at line 224 of file TorrentParserTest.cpp. |
|
|
Verifies torrent data parsing on a simple torrent.
Definition at line 564 of file TorrentParserTest.cpp. |
|
|
Verifies that an invalid private flag is really invalid.
Definition at line 236 of file TorrentParserTest.cpp. |
|
|
Verifies torrent data parsing on a torrent containing "everything" that can be parsed.
Definition at line 644 of file TorrentParserTest.cpp. |
|
|
Verifies that a zero creation date is valid.
Definition at line 155 of file TorrentParserTest.cpp. |
|
|
Verifies that a zero piece length is invalid.
Definition at line 178 of file TorrentParserTest.cpp. |
|
|
Verifies that a private flag equal to 0 is valid.
Definition at line 212 of file TorrentParserTest.cpp. |