Navigation
API > API/Plugins > API/Plugins/NetcodeUnitTest
Basic unit test for verifying simple client connection to a server, using the Steam net driver.
| Name | USteamClient |
| Type | class |
| Header File | /Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/UnitTests/Engine/SteamClient.h |
| Include Path | #include "UnitTests/Engine/SteamClient.h" |
Syntax
UCLASS ()
class USteamClient : public UIPClient
Inheritance Hierarchy
- FUnitLogInterface → UUnitTestBase → UUnitTest → UProcessUnitTest → UClientUnitTest → UIPClient → USteamClient
- UObjectBase → UObjectBaseUtility → UObject → UUnitTestBase → UUnitTest → UProcessUnitTest → UClientUnitTest → UIPClient → USteamClient
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
USteamClient
(
const FObjectInitializer& ObjectInitializer |
USteamClient | UnitTests/Engine/SteamClient.h |
Functions
Public
Protected
Overridden from UClientUnitTest
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool ConnectMinimalClient
(
const TCHAR* InNetID |
Connects a minimal client, to the launched/launching server | UnitTests/Engine/SteamClient.h | |
virtual FString ConstructServerParameters() |
Puts together the commandline parameters the server should use, based upon the unit test settings | UnitTests/Engine/SteamClient.h | |
virtual void NotifyAlterMinClient
(
FMinClientParms& Parms |
Gives subclass UnitTest's an opportunity to alter the MinimalClient setup parameters | UnitTests/Engine/SteamClient.h |
Overridden from UProcessUnitTest
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void NotifyProcessLog
(
TWeakPtr< FUnitTestProcess > InProcess, |
Interface for process unit tests For implementation in subclasses, for helping to verify success/fail upon completion of unit tests NOTE: Not called again once VerificationState is set WARNING: Be careful when iterating InLogLines in multiple different for loops, if the sequence of detected logs is important | UnitTests/Engine/SteamClient.h |
Overridden from UUnitTest
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void InitializeEnvironmentSettings() |
Finishes initializing unit test settings, that rely upon the current unit test environment being loaded | UnitTests/Engine/SteamClient.h | |
virtual bool ValidateUnitTestSettings
(
bool bCDOCheck |
Validate that the unit test settings/flags specified for this unit test, are compatible with one another, and that the engine settings/environment, support running the unit test. | UnitTests/Engine/SteamClient.h |