aboutsummaryrefslogtreecommitdiff
path: root/src/socket.h
Commit message (Collapse)AuthorAge
* Better handling of SendFailedException in ConnectionPerttu Ahola2011-10-18
|
* added ipban supportConstantin Wenger2011-08-12
| | | | | commands: /#ipban <nick> /#ipunban <ip>
* some fixes to make compiling on some bsd easierPerttu Ahola2011-02-11
|
* fully working i guessPerttu Ahola2011-02-11
|
* new texture stuff quite workingPerttu Ahola2011-02-11
|
* local game connects to 127.0.0.1 instead of localhost (windows returns an ↵Perttu Ahola2011-02-08
| | | | ipv6 address sometimes which is not supported)
* license stuffPerttu Ahola2010-11-29
| | | | | --HG-- rename : src/licensecomment.txt => licensecomment.txt
* Initial filesPerttu Ahola2010-11-27
an class="hl ppc"> #include "client/gameui.h" class TestGameUI : public TestBase { public: TestGameUI() { TestManager::registerTestModule(this); } const char *getName() { return "TestGameUI"; } void runTests(IGameDef *gamedef); void testInit(); void testFlagSetters(); void testInfoText(); void testStatusText(); }; static TestGameUI g_test_instance; void TestGameUI::runTests(IGameDef *gamedef) { TEST(testInit); TEST(testFlagSetters); TEST(testInfoText); TEST(testStatusText); } void TestGameUI::testInit() { GameUI gui{}; // Ensure flags on GameUI init UASSERT(gui.getFlags().show_chat) UASSERT(gui.getFlags().show_hud) UASSERT(!gui.getFlags().show_minimap) UASSERT(!gui.getFlags().show_profiler_graph) // And after the initFlags init stage gui.initFlags(); UASSERT(gui.getFlags().show_chat) UASSERT(gui.getFlags().show_hud) UASSERT(!gui.getFlags().show_minimap) UASSERT(!gui.getFlags().show_profiler_graph) // @TODO verify if we can create non UI nulldevice to test this function // gui.init(); } void TestGameUI::testFlagSetters() { GameUI gui{}; gui.showMinimap(true); UASSERT(gui.getFlags().show_minimap); gui.showMinimap(false); UASSERT(!gui.getFlags().show_minimap); } void TestGameUI::testStatusText() { GameUI gui{}; gui.showStatusText(L"test status"); UASSERT(gui.m_statustext_time == 0.0f); UASSERT(gui.m_statustext == L"test status"); } void TestGameUI::testInfoText() { GameUI gui{}; gui.setInfoText(L"test info"); UASSERT(gui.m_infotext == L"test info"); }