Inheritance diagram for TestConnection:
Collaboration diagram for TestConnection:Public Member Functions | |
| TestConnection () | |
| const char * | getName () |
| void | runTests (IGameDef *gamedef) |
| void | testNetworkPacketSerialize () |
| void | testHelpers () |
| void | testConnectSendReceive () |
Public Member Functions inherited from TestBase | |
| bool | testModule (IGameDef *gamedef) |
| std::string | getTestTempDirectory () |
| std::string | getTestTempFile () |
| void | runTest (const char *name, std::function< void()> &&test) |
Additional Inherited Members | |
Public Attributes inherited from TestBase | |
| u32 | num_tests_failed |
| u32 | num_tests_run |
|
inline |
References INTERNET_SIMULATOR, and TestManager::registerTestModule().
Here is the call graph for this function:
|
inlinevirtual |
Implements TestBase.
|
virtual |
Implements TestBase.
References TEST, testConnectSendReceive(), testHelpers(), and testNetworkPacketSerialize().
Here is the call graph for this function:| void TestConnection::testConnectSendReceive | ( | ) |
References Handler::count, g_settings, Settings::get(), NetworkPacket::getPeerId(), Buffer< T >::getSize(), NetworkPacket::getSize(), porting::getTimeMs(), NetworkPacket::getU8Ptr(), infostream, Address::isIPv6(), Handler::last_id, porting::mt_snprintf(), NetworkPacket::oldForgePacket(), PEER_ID_SERVER, NetworkPacket::putRawString(), Address::Resolve(), sleep_ms, and UASSERT.
Referenced by runTests().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestConnection::testHelpers | ( | ) |
References SharedBuffer< T >::getSize(), con::makePacket(), con::makeReliablePacket(), con::PACKET_TYPE_RELIABLE, readU16(), readU32(), readU8(), and UASSERT.
Referenced by runTests().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestConnection::testNetworkPacketSerialize | ( | ) |
References NetworkPacket::oldForgePacket(), NetworkPacket::putRawPacket(), UASSERT, UASSERTEQ, and warningstream.
Referenced by runTests().
Here is the call graph for this function:
Here is the caller graph for this function: