MCPcopy Create free account
hub / github.com/defold/defold / PreRunHttpPort

Function PreRunHttpPort

engine/engine/src/test/test_engine.cpp:299–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299static void PreRunHttpPort(dmEngine::HEngine engine, void* ctx)
300{
301 HttpTestContext* http_ctx = (HttpTestContext*) ctx;
302 if (http_ctx->m_PreCount == 0)
303 {
304 // Only for first callback in order to avoid loops when testing reboot
305 http_ctx->m_Port = dmEngine::GetHttpPort(engine);
306 http_ctx->m_Thread = dmThread::New(HttpPostThread, 0x8000, http_ctx, "post");
307 }
308 http_ctx->m_PreCount++;
309}
310
311// VENDOR: Until we can reboot properly within the unit test
312// ANDROID: Until we can the http tests are fixed

Callers

nothing calls this directly

Calls 2

GetHttpPortFunction · 0.85
NewFunction · 0.50

Tested by

no test coverage detected