UIPClient

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.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/UnitTests/Engine/IPClient.h

Include

#include "UnitTests/Engine/IPClient.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UIPClient : public UClientUnitTest

Remarks

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.

Variables

Name Description

Protected variable

const TCHAR ...

 

NetDriverLog

Log message identifying the expected net driver

Constructors

Name Description

Public function

UIPClient

(
    const FObjectInitializer& ObjectIn...
)

UIPClient

Overridden from UClientUnitTest

Name Description

Public function 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)

Overridden from UProcessUnitTest

Name Description

Public function Virtual

void

 

NotifyProcessLog

(
    TWeakPtr< FUnitTestProcess > InProc...,
    const TArray< FString >& InLogLine...
)

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

Overridden from UUnitTest

Name Description

Public function Virtual

void

 

InitializeEnvironmentSettings()

Finishes initializing unit test settings, that rely upon the current unit test environment being loaded

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss