You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-184709 #preflight 647601e00d55081f541403cd #rb peter.engstrom #rnx [CL 25677125 by Ryan Gerleve in ue5-main branch]
40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "HAL/PlatformMisc.h"
|
|
#include "Logging/LogScopedVerbosityOverride.h"
|
|
#include "Misc/CommandLine.h"
|
|
#include "Modules/ModuleManager.h"
|
|
#include "NetworkPredictionTests.h"
|
|
#include "SlateGlobals.h"
|
|
#include "Styling/SlateWidgetStyleContainerBase.h"
|
|
#include "TestCommon/Initialization.h"
|
|
|
|
#include <catch2/catch_test_macros.hpp>
|
|
|
|
DEFINE_LOG_CATEGORY(LogNetworkPredictionTests);
|
|
|
|
GROUP_BEFORE_GLOBAL(Catch::DefaultGroup)
|
|
{
|
|
// Add command-line options always needed for the tests
|
|
FCommandLine::Append(TEXT(" -nullrhi -unattended"));
|
|
|
|
{
|
|
// Find the engine directory before InitAll() enables the platform file stub. Prevents warnings.
|
|
FPlatformMisc::EngineDir();
|
|
|
|
// Silence some warnings during initialization unrelated to the tests
|
|
LOG_SCOPE_VERBOSITY_OVERRIDE(LogSlate, ELogVerbosity::Error);
|
|
LOG_SCOPE_VERBOSITY_OVERRIDE(LogSlateStyle, ELogVerbosity::Error);
|
|
LOG_SCOPE_VERBOSITY_OVERRIDE(LogUObjectGlobals, ELogVerbosity::Fatal);
|
|
LOG_SCOPE_VERBOSITY_OVERRIDE(LogStreaming, ELogVerbosity::Error);
|
|
InitAll(true, true);
|
|
}
|
|
|
|
FModuleManager::Get().LoadModule(TEXT("NetworkPrediction"));
|
|
}
|
|
|
|
GROUP_AFTER_GLOBAL(Catch::DefaultGroup)
|
|
{
|
|
CleanupAll();
|
|
}
|