Public Member Functions | |
TestSocket () | |
const char * | getName () |
void | runTests (IGameDef *gamedef) |
void | testIPv4Socket () |
void | testIPv6Socket () |
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) |
Static Public Attributes | |
static const int | port = 30003 |
Additional Inherited Members | |
Public Attributes inherited from TestBase | |
u32 | num_tests_failed |
u32 | num_tests_run |
|
inline |
References INTERNET_SIMULATOR, and TestManager::registerTestModule().
|
inlinevirtual |
Implements TestBase.
|
virtual |
Implements TestBase.
References g_settings, Settings::getBool(), TEST, testIPv4Socket(), and testIPv6Socket().
void TestSocket::testIPv4Socket | ( | ) |
References UDPSocket::Bind(), g_settings, Settings::get(), Address::getAddress(), Address::isIPv6(), port, UDPSocket::Receive(), Address::Resolve(), UDPSocket::Send(), sleep_ms, and UASSERT.
Referenced by runTests().
void TestSocket::testIPv6Socket | ( | ) |
References UDPSocket::Bind(), IPv6AddressBytes::bytes, dstream, Address::getAddress6(), UDPSocket::init(), port, UDPSocket::Receive(), UDPSocket::Send(), sleep_ms, and UASSERT.
Referenced by runTests().
|
static |
Referenced by testIPv4Socket(), and testIPv6Socket().