You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-82172 Move HTML5Client the NetcodeUnitTest plugin to the HTML5 platform extension
#rbx #rb none #ROBOMERGE-SOURCE: CL 9756828 in //UE4/Release-4.24/... #ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v545-9751379) [CL 9756834 by nick shin in Main branch]
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
-nosteam -ini:Engine:[Voice]:bEnabled=False
|
||||
-ExecCmds="automation quit, automation runtests IPClient+HTML5Client+VMReflection+PartialInitialCheck+FTextCrash+DirCommand+LoginURLCrash+LoginURLAlloc+LogOverwrite+FastClientSeamlessTravel+MidJoinSeamlessTravel+EquipWeaponCheck"
|
||||
-ExecCmds="automation quit, automation runtests IPClient+WebSocketClient+VMReflection+PartialInitialCheck+FTextCrash+DirCommand+LoginURLCrash+LoginURLAlloc+LogOverwrite+FastClientSeamlessTravel+MidJoinSeamlessTravel+EquipWeaponCheck"
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
|
||||
#include "UnitTests/Engine/IPClient.h"
|
||||
|
||||
#include "HTML5Client.generated.h"
|
||||
#include "WebSocketClient.generated.h"
|
||||
|
||||
/**
|
||||
* Basic unit test for verifying simple client connection to a server, using the HTML5 net driver.
|
||||
* Basic unit test for verifying simple client connection to a server, using the WebSocket net driver.
|
||||
*/
|
||||
UCLASS()
|
||||
class UHTML5Client : public UIPClient
|
||||
class UWebSocketClient : public UIPClient
|
||||
{
|
||||
GENERATED_UCLASS_BODY()
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
#include "UnitTests/Engine/HTML5Client.h"
|
||||
|
||||
#include "MinimalClient.h"
|
||||
#include "UnitTestEnvironment.h"
|
||||
|
||||
/**
|
||||
* UHTML5Client
|
||||
*/
|
||||
|
||||
UHTML5Client::UHTML5Client(const FObjectInitializer& ObjectInitializer)
|
||||
: Super(ObjectInitializer)
|
||||
{
|
||||
UnitTestName = TEXT("HTML5Client");
|
||||
|
||||
UnitTestDate = FDateTime(2017, 10, 5);
|
||||
|
||||
UnitTestBugTrackIDs.Empty();
|
||||
|
||||
ExpectedResult.Add(TEXT("ShooterGame"), EUnitTestVerification::VerifiedFixed);
|
||||
ExpectedResult.Add(TEXT("FortniteGame"), EUnitTestVerification::VerifiedFixed);
|
||||
|
||||
NetDriverLog = TEXT("LogHTML5Networking: GameNetDriver WebSocketNetDriver");
|
||||
}
|
||||
|
||||
void UHTML5Client::InitializeEnvironmentSettings()
|
||||
{
|
||||
Super::InitializeEnvironmentSettings();
|
||||
|
||||
BaseServerParameters = UnitEnv->GetDefaultServerParameters(TEXT("LogHTML5Networking log")) +
|
||||
TEXT(" -NetDriverOverrides=/Script/HTML5Networking.WebSocketNetDriver");
|
||||
}
|
||||
|
||||
void UHTML5Client::NotifyAlterMinClient(FMinClientParms& Parms)
|
||||
{
|
||||
Super::NotifyAlterMinClient(Parms);
|
||||
|
||||
Parms.NetDriverClass = TEXT("/Script/HTML5Networking.WebSocketNetDriver");
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
#include "UnitTests/Engine/WebSocketClient.h"
|
||||
|
||||
#include "MinimalClient.h"
|
||||
#include "UnitTestEnvironment.h"
|
||||
|
||||
/**
|
||||
* UWebSocketClient
|
||||
*/
|
||||
|
||||
UWebSocketClient::UWebSocketClient(const FObjectInitializer& ObjectInitializer)
|
||||
: Super(ObjectInitializer)
|
||||
{
|
||||
UnitTestName = TEXT("WebSocketClient");
|
||||
|
||||
UnitTestDate = FDateTime(2017, 10, 5);
|
||||
|
||||
UnitTestBugTrackIDs.Empty();
|
||||
|
||||
ExpectedResult.Add(TEXT("ShooterGame"), EUnitTestVerification::VerifiedFixed);
|
||||
ExpectedResult.Add(TEXT("FortniteGame"), EUnitTestVerification::VerifiedFixed);
|
||||
|
||||
NetDriverLog = TEXT("LogWebSocketNetworking: GameNetDriver WebSocketNetDriver");
|
||||
}
|
||||
|
||||
void UWebSocketClient::InitializeEnvironmentSettings()
|
||||
{
|
||||
Super::InitializeEnvironmentSettings();
|
||||
|
||||
BaseServerParameters = UnitEnv->GetDefaultServerParameters(TEXT("LogWebSocketNetworking log")) +
|
||||
TEXT(" -NetDriverOverrides=/Script/WebSocketNetworking.WebSocketNetDriver");
|
||||
}
|
||||
|
||||
void UWebSocketClient::NotifyAlterMinClient(FMinClientParms& Parms)
|
||||
{
|
||||
Super::NotifyAlterMinClient(Parms);
|
||||
|
||||
Parms.NetDriverClass = TEXT("/Script/WebSocketNetworking.WebSocketNetDriver");
|
||||
}
|
||||
Reference in New Issue
Block a user