Navigation
API > API/Plugins > API/Plugins/NetcodeUnitTest
Basic unit test for launching a server and connecting a client, while verifying that the correct net driver was used, and that the client connected successfully.
| Name | UIPClient |
| Type | class |
| Header File | /Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/UnitTests/Engine/IPClient.h |
| Include Path | #include "UnitTests/Engine/IPClient.h" |
Syntax
UCLASS ()
class UIPClient : public UClientUnitTest
Inheritance Hierarchy
- FUnitLogInterface → UUnitTestBase → UUnitTest → UProcessUnitTest → UClientUnitTest → UIPClient
- UObjectBase → UObjectBaseUtility → UObject → UUnitTestBase → UUnitTest → UProcessUnitTest → UClientUnitTest → UIPClient
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UIPClient
(
const FObjectInitializer& ObjectInitializer |
UIPClient | UnitTests/Engine/IPClient.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bDetectedNetDriver | bool | Whether or not the correct net driver was detected | UnitTests/Engine/IPClient.h | |
| ConnectSuccessMsg | const TCHAR * | Log message triggered upon successful connect | UnitTests/Engine/IPClient.h |
Functions
Public
Overridden from UClientUnitTest
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ExecuteClientUnitTest() |
Interface and hooked events for client unit tests Override this, to implement the client unit test NOTE: Should be called last, in overridden functions IMPORTANT: EndUnitTest should be triggered, upon completion of the unit test (which may be delayed, for many unit tests) | UnitTests/Engine/IPClient.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/IPClient.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/IPClient.h |