Files
UnrealEngineUWP/Engine/Source/Developer/LowLevelTestsRunner/Public/TestRunner.h
chris constantinescu d1ad7b190a Online/ OSS tests: Catch register tests using delegates, setup delegate is invoked during TestRunner::GlobalSetup and teardown during TestRunner::GlobalTeardown
#preflight 637501d9b663683828111981
#rb Michael.Kirzinger

[CL 23155638 by chris constantinescu in ue5-main branch]
2022-11-16 11:50:06 -05:00

40 lines
1.0 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include COMPILED_PLATFORM_HEADER_WITH_PREFIX(Platform,TestRunner.h)
#include "CommandLineUtil.h"
#include "Logging/LogScopedVerbosityOverride.h"
#include "Logging/LogSuppressionInterface.h"
#include "Modules/ModuleManager.h"
#include "Misc/CommandLine.h"
#include "Templates/SharedPointer.h"
#include <cstring>
#include <thread>
#include <chrono>
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4005)
#endif
#if __cplusplus
extern "C" const char* GetProcessExecutablePath();
#else
const char* GetProcessExecutablePath();
#endif
const char* GetCacheDirectory();
DECLARE_DELEGATE(FGlobalSetupHandler);
class FTestDelegates
{
public:
inline static TSharedPtr<FGlobalSetupHandler, ESPMode::ThreadSafe> GlobalSetup = MakeShareable(new FGlobalSetupHandler());
inline static TSharedPtr<FGlobalSetupHandler, ESPMode::ThreadSafe> GlobalTeardown = MakeShareable(new FGlobalSetupHandler());
};
int RunTests(int argc, const char* argv[]);