Files
UnrealEngineUWP/Engine/Source/Developer/FunctionalTesting/Classes/ScreenshotFunctionalTest.h
Ben Marsh 20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00

44 lines
1.0 KiB
C++

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "FunctionalTest.h"
#include "AutomationScreenshotOptions.h"
#include "ScreenshotFunctionalTest.generated.h"
/**
*
*/
UCLASS(Blueprintable, MinimalAPI)
class AScreenshotFunctionalTest : public AFunctionalTest
{
GENERATED_BODY()
public:
AScreenshotFunctionalTest(const FObjectInitializer& ObjectInitializer);
#if WITH_EDITOR
virtual bool CanEditChange(const UProperty* InProperty) const override;
virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
#endif
protected:
virtual void PrepareTest() override;
virtual bool IsReady_Implementation() override;
virtual void StartTest() override;
void OnScreenshotTakenAndCompared();
void SetupVisualizeBuffer();
protected:
UPROPERTY()
class UCameraComponent* ScreenshotCamera;
UPROPERTY(EditAnywhere, Category="Screenshot", SimpleDisplay)
FAutomationScreenshotOptions ScreenshotOptions;
};