Files
UnrealEngineUWP/Engine/Source/Runtime/AutomationTest/Public/AutomationTestPlatform.h
jerome delattre c0a721c39d Support load and save of platform specific test exclusion list from the Test Automation window
#jira UE-143194
#rb rob.huyett, sean.sweeney, sebastian.lewicki

[CL 30126371 by jerome delattre in ue5-main branch]
2023-12-05 13:29:22 -05:00

45 lines
1.4 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Templates/SubclassOf.h"
#include "AutomationTestPlatform.generated.h"
UCLASS(Abstract, MinimalAPI)
class UAutomationTestPlatformSettings : public UObject
{
GENERATED_BODY()
public:
UAutomationTestPlatformSettings() {}
AUTOMATIONTEST_API static UAutomationTestPlatformSettings* Create(TSubclassOf<UAutomationTestPlatformSettings> SettingsClass, const FString PlatformName);
//~UObject interface
virtual void OverrideConfigSection(FString& SectionName) override;
virtual const TCHAR* GetConfigOverridePlatform() const override;
//~End of UObject interface
AUTOMATIONTEST_API void LoadConfig();
AUTOMATIONTEST_API FString GetConfigFilename() const;
AUTOMATIONTEST_API const FString& GetPlatformName() const;
protected:
virtual void InitializeSettingsDefault() { }
virtual FString GetSectionName() { return StaticClass()->GetPathName(); }
private:
FString PlatformName;
};
namespace AutomationTestPlatform
{
/** Return the names of all available platforms */
AUTOMATIONTEST_API const TSet<FName>& GetAllAvailablePlatformNames();
/** Load and return target automation test settings collection of all platforms */
AUTOMATIONTEST_API TArray<UAutomationTestPlatformSettings*>& GetAllPlatformsSettings(TSubclassOf<UAutomationTestPlatformSettings> SettingsClass);
};