Refresh release imports and tutorial

This commit is contained in:
vczh
2026-06-05 00:46:06 -07:00
parent 79e26702e9
commit 63e46d3547
18 changed files with 6777 additions and 2816 deletions
+7 -5
View File
@@ -2110,9 +2110,9 @@ void GacUIUnitTest_Start(const WString& appName, Nullable<UnitTestScreenConfig>
}
template<typename T>
void RunInNewThread(T&& threadProc)
Thread* RunInNewThread(T&& threadProc)
{
Thread::CreateAndStart([threadProc]()
return Thread::CreateAndStart([threadProc]()
{
try
{
@@ -2128,7 +2128,7 @@ void RunInNewThread(T&& threadProc)
(void)e;
throw;
}
});
}, false);
}
void GacUIUnitTest_StartAsync(const WString& appName, Nullable<UnitTestScreenConfig> config)
@@ -2147,11 +2147,11 @@ void GacUIUnitTest_StartAsync(const WString& appName, Nullable<UnitTestScreenCon
TEST_ASSERT(channelServer->ConnectLocalClient(rendererClient) > 0);
channeling::GuiRemoteProtocolRendererChannel rendererChannel(rendererClient.Obj(), rendererClient->GetProtocolChannel(), unitTestProtocol.GetProtocol());
channeling::GuiRemoteProtocolAsyncJsonChannelSerializer asyncChannelSender(coreClient->GetProtocolChannel(), unitTestProtocol.GetRemoteEventProcessor());
channeling::GuiRemoteProtocolJsonChannelRenderer_Async asyncChannelSender(coreClient->GetProtocolChannel(), unitTestProtocol.GetRemoteEventProcessor());
EventObject eventStopped;
TEST_ASSERT(eventStopped.CreateManualUnsignal(false));
RunInNewThread([&]()
auto coreThread = RunInNewThread([&]()
{
channeling::GuiRemoteProtocolCoreChannel channelSender(coreClient.Obj(), &asyncChannelSender, config.Value().executablePath, asyncChannelSender.GetRemoteEventProcessor());
@@ -2171,6 +2171,8 @@ void GacUIUnitTest_StartAsync(const WString& appName, Nullable<UnitTestScreenCon
eventStopped.Signal();
});
eventStopped.Wait();
coreThread->Wait();
delete coreThread;
TEST_ASSERT(!ExceptionOccuredUnderUnitTestReleaseMode());
GacUIUnitTest_LogUI(appName, unitTestProtocol);