Protocols::BitTorrent::Torrents::Testing::TorrentParserTest Class Reference

Inherits TestFixture.

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

Inheritance graph
[legend]
Collaboration diagram for Protocols::BitTorrent::Torrents::Testing::TorrentParserTest:

Collaboration graph
[legend]
List of all members.

Detailed Description

TorrentParser class testing unit.

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.


Member Function Documentation

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataEmptyTorrent   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataMinimalTorrent   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataTorrentWithEverything   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataMoreComplexTorrent   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataSimpleTorrent   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testFilePathParsingMoreDirectories   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testFilePathParsingOneDirectory   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testFilePathParsingOnlyFile   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testFilePathParsingNoFiles   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataMultipleFileInfoMissingFilePath   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataMultipleFileInfoMissingFileLength   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataMultipleFileInfoMissingFiles   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataMultipleFileInfoMissingDirectoryName   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataFileInfoTooLongChecksum   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataFileInfoTooShortChecksum   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataFileInfoValidChecksum   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataFileInfoZeroFileLength   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataFileInfoNegativeFileLength   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataFileInfoMissingFileLength   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataFileInfoMissingFileName   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataFileInfoMissingFileInfo   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testAnnounceListParsingNestedTiers   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testAnnounceListParsingOneTierNoTracker   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testAnnounceListParsingManyTiersManyTrackers   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testAnnounceListParsingManyTiersOneTracker   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testAnnounceListParsingOneTierManyTrackers   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testAnnounceListParsingOneTierOneTracker   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataTooHighPrivate   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataOnePrivate   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataZeroPrivate   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataNegativePrivate   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataInvalidPiecesLength   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataZeroPieceLength   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataNegativePieceLength   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataZeroCreationDate   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataNegativeCreationDate   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataInvalidAnnounce   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataMissingInfo   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataMissingPieces   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataMissingPieceLength   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST testLoadTorrentDataMissingAnnounce   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST_SUITE TorrentParserTest   )  [private]
 

Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::CPPUNIT_TEST_SUITE_END  )  [private]
 

static int Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::sumOfAllPiecesLength const Torrent::PieceList pieceList  )  [inline, static, private]
 

Returns total sum of all pieces length in pieceList.

Definition at line 85 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testAnnounceListParsingManyTiersManyTrackers  )  [inline]
 

Verifies announce list parsing - [[tracker1, tracker2], [tracker3, tracker4]].

Definition at line 314 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testAnnounceListParsingManyTiersOneTracker  )  [inline]
 

Verifies announce list parsing - [[tracker1], [tracker2], [tracker3], [tracker4]].

Definition at line 287 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testAnnounceListParsingNestedTiers  )  [inline]
 

Verifies announce list parsing - [[tracker1, [tracker2]]] - invalid.

Definition at line 350 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testAnnounceListParsingOneTierManyTrackers  )  [inline]
 

Verifies announce list parsing - [[tracker1, tracker2, tracker3, tracker4]].

Definition at line 266 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testAnnounceListParsingOneTierNoTracker  )  [inline]
 

Verifies announce list parsing - [[]] - invalid.

Definition at line 337 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testAnnounceListParsingOneTierOneTracker  )  [inline]
 

Verifies announce list parsing - [[tracker1]] .

Definition at line 248 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testFilePathParsingMoreDirectories  )  [inline]
 

Verifies more directories parsing.

Definition at line 549 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testFilePathParsingNoFiles  )  [inline]
 

Verifies that no files will cause torrent not to be loaded.

Definition at line 508 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testFilePathParsingOneDirectory  )  [inline]
 

Verifies one directory and one file parsing.

Definition at line 534 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testFilePathParsingOnlyFile  )  [inline]
 

Verifies only one file parsing.

Definition at line 519 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataEmptyTorrent  )  [inline]
 

Verifies that en empty torrent data won't be parsed correctly.

Definition at line 739 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataFileInfoMissingFileInfo  )  [inline]
 

Verifies that missing file info will cause torrent not to be loaded.

Definition at line 363 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataFileInfoMissingFileLength  )  [inline]
 

Verifies that missing file length will cause torrent not to be loaded.

Definition at line 385 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataFileInfoMissingFileName  )  [inline]
 

Verifies that missing file name will cause torrent not to be loaded.

Definition at line 374 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataFileInfoNegativeFileLength  )  [inline]
 

Verifies that a negative file length will cause torrent not to be loaded.

Definition at line 396 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataFileInfoTooLongChecksum  )  [inline]
 

Verifies that a too long checksum will is invalid.

Definition at line 446 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataFileInfoTooShortChecksum  )  [inline]
 

Verifies that a too short checksum will is invalid.

Definition at line 432 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataFileInfoValidChecksum  )  [inline]
 

Verifies that a valid checksum is parsed correctly.

Definition at line 418 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataFileInfoZeroFileLength  )  [inline]
 

Verifies that a zero file length will cause torrent not to be loaded.

Definition at line 407 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataInvalidAnnounce  )  [inline]
 

Verifies that invalid announce URL will cause torrent not to be loaded.

Definition at line 132 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataInvalidPiecesLength  )  [inline]
 

Verifies that invalid pieces length will cause torrent not to be loaded.

Definition at line 189 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataMinimalTorrent  )  [inline]
 

Verifies torrent data parsing on a minimal torrent.

Definition at line 715 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataMissingAnnounce  )  [inline]
 

Verifies that missing announce will cause torrent not to be loaded.

Definition at line 92 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataMissingInfo  )  [inline]
 

Verifies that missing info will cause torrent not to be loaded.

Definition at line 123 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataMissingPieceLength  )  [inline]
 

Verifies that missing piece length will cause torrent not to be loaded.

Definition at line 102 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataMissingPieces  )  [inline]
 

Verifies that missing pieces will cause torrent not to be loaded.

Definition at line 113 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataMoreComplexTorrent  )  [inline]
 

Verifies torrent data parsing on a more complex torrent.

Definition at line 596 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataMultipleFileInfoMissingDirectoryName  )  [inline]
 

Verifies that missing directory name will cause torrent not to be loaded.

Definition at line 460 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataMultipleFileInfoMissingFileLength  )  [inline]
 

Verifies that missing file length will cause torrent not to be loaded.

Definition at line 484 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataMultipleFileInfoMissingFilePath  )  [inline]
 

Verifies that missing file path will cause torrent not to be loaded.

Definition at line 496 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataMultipleFileInfoMissingFiles  )  [inline]
 

Verifies that missing files will cause torrent not to be loaded.

Definition at line 472 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataNegativeCreationDate  )  [inline]
 

Verifies that a negative creation date is invalid.

Definition at line 143 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataNegativePieceLength  )  [inline]
 

Verifies that a negative piece length is invalid.

Definition at line 167 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataNegativePrivate  )  [inline]
 

Verifies that a negative private flag is invalid.

Definition at line 200 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataOnePrivate  )  [inline]
 

Verifies that a private flag equal to 1 is valid.

Definition at line 224 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataSimpleTorrent  )  [inline]
 

Verifies torrent data parsing on a simple torrent.

Definition at line 564 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataTooHighPrivate  )  [inline]
 

Verifies that an invalid private flag is really invalid.

Definition at line 236 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataTorrentWithEverything  )  [inline]
 

Verifies torrent data parsing on a torrent containing "everything" that can be parsed.

Definition at line 644 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataZeroCreationDate  )  [inline]
 

Verifies that a zero creation date is valid.

Definition at line 155 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataZeroPieceLength  )  [inline]
 

Verifies that a zero piece length is invalid.

Definition at line 178 of file TorrentParserTest.cpp.

void Protocols::BitTorrent::Torrents::Testing::TorrentParserTest::testLoadTorrentDataZeroPrivate  )  [inline]
 

Verifies that a private flag equal to 0 is valid.

Definition at line 212 of file TorrentParserTest.cpp.


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