31 lines
1.1 KiB
C++
31 lines
1.1 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreTypes.h"
|
|
|
|
#include "Containers/UnrealString.h"
|
|
#include "ProfilingDebugging/TraceAuxiliary.h" // for FTraceAuxiliary::EConnectionType
|
|
|
|
class FAutomationTestBase;
|
|
|
|
class TRACEINSIGHTS_API FInsightsTestUtils
|
|
{
|
|
public:
|
|
FInsightsTestUtils(FAutomationTestBase* Test);
|
|
|
|
bool AnalyzeTrace(const TCHAR* Path) const;
|
|
bool FileContainsString(const FString& PathToFile, const FString& ExpectedString, double Timeout) const;
|
|
bool SetupUTS(double Timeout = 30.0, bool bUseFork = false) const;
|
|
bool KillUTS(double Timeout = 30.0) const;
|
|
bool StartTracing(FTraceAuxiliary::EConnectionType ConnectionType, double Timeout = 10.0) const;
|
|
bool IsUnrealTraceServerReady(const TCHAR* Host = TEXT("localhost"), int32 Port = 0U) const;
|
|
bool IsTraceHasLiveStatus(const FString& TraceName, const TCHAR* Host = TEXT("localhost"), int32 Port = 0U) const;
|
|
void ResetSession() const;
|
|
FString GetLiveTrace(const TCHAR* Host = TEXT("localhost"), int32 Port = 0U) const;
|
|
FString GetUTSPath() const;
|
|
|
|
private:
|
|
FAutomationTestBase* Test;
|
|
};
|