Inheritance diagram for Protocols::BitTorrent::Transfers::Testing::SessionTest:


Definition at line 36 of file SessionTest.cpp.
Public Member Functions | |
| void | setUp () |
| void | tearDown () |
| QByteArray | makeHandshakeBytes (const FileId &fileId, const PeerInfo &peerInfo) |
| void | testEstablishSessionSucceedsDirectly () |
| Handshaking completes right after the transport is connected. | |
| void | scenarioEstablishSessionSucceedsAfterANumberOfReadyReads (int count) |
| void | testEstablishSessionSucceedsAfterOneReadyRead () |
| Handshaking should finish after the first readyRead(). | |
| void | testEstablishSessionSucceedsAfterTwoReadyRead () |
| Handshaking should finish after the second readyRead(). | |
| void | testEstablishSessionSucceedsAfterThreeReadyRead () |
| Handshaking should finish after the third readyRead(). | |
| void | testAcceptConnectionSucceedsDirectly () |
| An incoming session succeeds directly if the in-handshake is buffered. | |
| void | scenarioAcceptConnectionSucceedsAfterANumberOfReadyReads (int count) |
| Handshaking should continue after some more data has become available. | |
| void | testAcceptConnectionSucceedsAfterOneReadyRead () |
| Handshaking should finish after the first readyRead(). | |
| void | testAcceptConnectionSucceedsAfterTwoReadyReads () |
| Handshaking should finish after the second readyRead(). | |
| void | testAcceptConnectionSucceedsAfterThreeReadyReads () |
| Handshaking should finish after the third readyRead(). | |
| void | stateEstablished () |
Private Member Functions | |
| CPPUNIT_TEST_SUITE (SessionTest) | |
| CPPUNIT_TEST (testEstablishSessionSucceedsDirectly) | |
| CPPUNIT_TEST (testEstablishSessionSucceedsAfterOneReadyRead) | |
| CPPUNIT_TEST (testEstablishSessionSucceedsAfterTwoReadyRead) | |
| CPPUNIT_TEST (testEstablishSessionSucceedsAfterThreeReadyRead) | |
| CPPUNIT_TEST (testAcceptConnectionSucceedsDirectly) | |
| CPPUNIT_TEST (testAcceptConnectionSucceedsAfterOneReadyRead) | |
| CPPUNIT_TEST (testAcceptConnectionSucceedsAfterTwoReadyReads) | |
| CPPUNIT_TEST (testAcceptConnectionSucceedsAfterThreeReadyReads) | |
| CPPUNIT_TEST_SUITE_END () | |
Private Attributes | |
| PeerInfo | myPeerInfo |
| PeerInfo | remotePeerInfo |
| FileId | fileId |
| auto_ptr< TransportMock > | transport |
| auto_ptr< SessionStatusMock > | status |
| auto_ptr< Session > | session_real |
| auto_ptr< SessionDriver > | session |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Definition at line 90 of file SessionTest.cpp. |
|
|
Handshaking should continue after some more data has become available. count is the number of times readyRead() is called before the handshake is read completely. Definition at line 211 of file SessionTest.cpp. |
|
|
Definition at line 121 of file SessionTest.cpp. |
|
|
Definition at line 68 of file SessionTest.cpp. |
|
|
Definition at line 273 of file SessionTest.cpp. |
|
|
Definition at line 82 of file SessionTest.cpp. |
|
|
Handshaking should finish after the first readyRead().
Definition at line 254 of file SessionTest.cpp. |
|
|
Handshaking should finish after the third readyRead().
Definition at line 266 of file SessionTest.cpp. |
|
|
Handshaking should finish after the second readyRead().
Definition at line 260 of file SessionTest.cpp. |
|
|
An incoming session succeeds directly if the in-handshake is buffered.
Definition at line 180 of file SessionTest.cpp. |
|
|
Handshaking should finish after the first readyRead().
Definition at line 156 of file SessionTest.cpp. |
|
|
Handshaking should finish after the third readyRead().
Definition at line 168 of file SessionTest.cpp. |
|
|
Handshaking should finish after the second readyRead().
Definition at line 162 of file SessionTest.cpp. |
|
|
Handshaking completes right after the transport is connected.
Definition at line 103 of file SessionTest.cpp. |
|
|
Definition at line 61 of file SessionTest.cpp. |
|
|
Definition at line 59 of file SessionTest.cpp. |
|
|
Definition at line 60 of file SessionTest.cpp. |
|
|
Definition at line 65 of file SessionTest.cpp. |
|
|
Definition at line 64 of file SessionTest.cpp. |
|
|
Definition at line 63 of file SessionTest.cpp. |
|
|
Definition at line 62 of file SessionTest.cpp. |