Inheritance diagram for Protocols::BitTorrent::Trackers::Testing::TrackerRequestUrlCreatorTest:
Definition at line 37 of file TrackerRequestUrlCreatorTest.cpp.
Public Member Functions | |
| TrackerRequestUrlCreatorTest () | |
| Default ctor. | |
| void | testCreateRequestUrlMinimalRequest () |
| Verifies that a sample minimal request URL will be created successfuly. | |
| void | testCreateRequestUrlCompleteRequest () |
| Verifies that a sample complete request URL will be created successfuly. | |
| void | testCreateRequestUrlMinNumbers () |
| Verifies that minimal numbers are created correctly. | |
| void | testCreateRequestUrlMaxNumbers () |
| Verifies that maximal numbers are created correctly. | |
Private Member Functions | |
| CPPUNIT_TEST_SUITE (TrackerRequestUrlCreatorTest) | |
| CPPUNIT_TEST (testCreateRequestUrlMinimalRequest) | |
| CPPUNIT_TEST (testCreateRequestUrlCompleteRequest) | |
| CPPUNIT_TEST (testCreateRequestUrlMinNumbers) | |
| CPPUNIT_TEST (testCreateRequestUrlMaxNumbers) | |
| CPPUNIT_TEST_SUITE_END () | |
| void | scenarioCreateRequestUrl (const TrackerRequest &request, const QByteArray &referenceUrl) |
| Verifies that the request URL is correctly created. | |
Static Private Member Functions | |
| template<class T> | |
| static QByteArray | stringifyNum (T num) |
| Returns num transformed into string. | |
Private Attributes | |
| const QByteArray | ReferenceAnnounceUrl |
| const QByteArray | ReferenceMinimalRequestUrlQueryPart |
| const QByteArray | ReferenceMinimalRequestUrl |
| const QByteArray | ReferenceCompleteRequestUrlQueryPart |
| const QByteArray | ReferenceCompleteRequestUrl |
| const TrackerRequest | MinimalRequest |
| const TrackerRequest | CompleteRequest |
|
|
Default ctor. This ctor is here to initialize complex objects constants because of possible static objects initialization order problems when declaring them as static constants. Definition at line 169 of file TrackerRequestUrlCreatorTest.cpp. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Verifies that the request URL is correctly created. Creates a request URL from the selected request and verifies it is equal to the referenceUrl. Definition at line 51 of file TrackerRequestUrlCreatorTest.cpp. |
|
||||||||||
|
Returns num transformed into string.
Definition at line 61 of file TrackerRequestUrlCreatorTest.cpp. |
|
|
Verifies that a sample complete request URL will be created successfuly.
Definition at line 87 of file TrackerRequestUrlCreatorTest.cpp. |
|
|
Verifies that maximal numbers are created correctly.
Definition at line 127 of file TrackerRequestUrlCreatorTest.cpp. |
|
|
Verifies that a sample minimal request URL will be created successfuly.
Definition at line 81 of file TrackerRequestUrlCreatorTest.cpp. |
|
|
Verifies that minimal numbers are created correctly.
Definition at line 93 of file TrackerRequestUrlCreatorTest.cpp. |
|
|
Definition at line 75 of file TrackerRequestUrlCreatorTest.cpp. |
|
|
Definition at line 74 of file TrackerRequestUrlCreatorTest.cpp. |
|
|
Definition at line 68 of file TrackerRequestUrlCreatorTest.cpp. |
|
|
Definition at line 72 of file TrackerRequestUrlCreatorTest.cpp. |
|
|
Definition at line 71 of file TrackerRequestUrlCreatorTest.cpp. |
|
|
Definition at line 70 of file TrackerRequestUrlCreatorTest.cpp. |
|
|
Definition at line 69 of file TrackerRequestUrlCreatorTest.cpp. |