Module |
|
Header |
/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/ProcessUnitTest.h |
Include |
#include "ProcessUnitTest.h" |
[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(Abstract)
class UProcessUnitTest : public UUnitTest
Base class for all unit tests which launch child processes, whether they be UE4 child processes, or other arbitrary programs.
Handles management of child processes, memory usage tracking, log/stdout output gathering/printing, and crash detection.
Name | Description | ||
---|---|---|---|
|
ActiveProcesses |
Runtime variables Stores a reference to all running child processes tied to this unit test, for housekeeping |
|
|
double |
LastBlockingProcessCheck |
Last time there was a check for processes blocking progress |
|
OnSuspendStateChange |
Delegate for notifying the UI, of a change in the unit test suspend state |
|
|
ProcessLogWatches |
Delegates for implementing process log watches |
Name | Description | |
---|---|---|
|
UProcessUnitTest ( |
Name | Description | ||
---|---|---|---|
|
CheckOutputForError ( |
Checks incoming process logs, for any indication of a crash/error |
|
|
IsBlockingProcessPresent ( |
Whether or not a child process indicating a long/blocking task is running |
|
|
NotifyProcessFinished ( |
Notifies when a running process is detected as having finished/closed |
|
|
NotifyProcessLog ( |
Interface for process unit tests For implementation in subclasses, for helping to verify success/fail upon completion of unit tests |
|
|
NotifyProcessSuspendState ( |
Notifies when the suspend state of a process changes |
|
|
NotifySuspendRequest() |
Notifies that there was a request to suspend/resume the unit test |
|
|
PollProcessOutput() |
Processes the standard output (i.e. log output) for processes |
|
|
PrintUnitTestProcessErrors ( |
If any errors logs were detected upon ShutdownUnitTestProcess, this is called to print them out |
|
|
ShutdownUnitTestProcess ( |
Shuts-down/cleans-up a child process tied to the unit test |
|
|
StartUE4UnitTestProcess ( |
Starts a child UE4 process, tied to the unit test |
|
|
StartUnitTestProcess |
Starts a child process, tied to the unit test |
|
|
UpdateProcessStats() |
Updates (and if necessary, saves) the memory stats for processes |
Name | Description | ||
---|---|---|---|
|
CleanupUnitTest ( |
Cleans up all items needing destruction, and removes the unit test from tracking, before deleting the unit test itself |
Name | Description | ||
---|---|---|---|
|
IsTickable() |
Must override in subclasses, that need ticking. |
|
|
PostUnitTick ( |
For cleanup actions that should occur after the primary tick function is called |
|
|
UnitTick ( |
Main tick function for the unit test |
Name | Description | ||
---|---|---|---|
|
FinishDestroy() |
Called to finish destroying the object. |
|
|
ShutdownAfterError() |
After a critical error, perform any mission-critical cleanup, such as restoring the video mode orreleasing hardware resources. |