From 60e28d259ac268912c6acd560ad39c2286a8c5ad Mon Sep 17 00:00:00 2001 From: Brian L <130494071+csciguy8@users.noreply.github.com> Date: Mon, 16 Oct 2023 16:30:30 -0600 Subject: [PATCH] Add #define for test window size (remove duplication) --- .../Private/Tests/Google3dTilesLoadTest.cpp | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/Source/CesiumRuntime/Private/Tests/Google3dTilesLoadTest.cpp b/Source/CesiumRuntime/Private/Tests/Google3dTilesLoadTest.cpp index d0edc2481..c8be8b6e8 100644 --- a/Source/CesiumRuntime/Private/Tests/Google3dTilesLoadTest.cpp +++ b/Source/CesiumRuntime/Private/Tests/Google3dTilesLoadTest.cpp @@ -47,6 +47,9 @@ IMPLEMENT_SIMPLE_AUTOMATION_TEST( "Cesium.Performance.GoogleTiles.Googleplex", EAutomationTestFlags::EditorContext | EAutomationTestFlags::PerfFilter) +#define TEST_SCREEN_WIDTH 1280 +#define TEST_SCREEN_HEIGHT 720 + void googleWarmCacheSetup(SceneGenerationContext& context) { context.refreshTilesets(); } @@ -160,8 +163,8 @@ bool FGoogleTilesPompidou::RunTest(const FString& Parameters) { GetBeautifiedTestName(), setupForPompidou, testPasses, - 1280, - 720); + TEST_SCREEN_WIDTH, + TEST_SCREEN_HEIGHT); } bool FGoogleTilesChrysler::RunTest(const FString& Parameters) { @@ -173,8 +176,8 @@ bool FGoogleTilesChrysler::RunTest(const FString& Parameters) { GetBeautifiedTestName(), setupForChrysler, testPasses, - 1280, - 720); + TEST_SCREEN_WIDTH, + TEST_SCREEN_HEIGHT); } bool FGoogleTilesGuggenheim::RunTest(const FString& Parameters) { @@ -186,8 +189,8 @@ bool FGoogleTilesGuggenheim::RunTest(const FString& Parameters) { GetBeautifiedTestName(), setupForGuggenheim, testPasses, - 1280, - 720); + TEST_SCREEN_WIDTH, + TEST_SCREEN_HEIGHT); } bool FGoogleTilesDeathValley::RunTest(const FString& Parameters) { @@ -199,8 +202,8 @@ bool FGoogleTilesDeathValley::RunTest(const FString& Parameters) { GetBeautifiedTestName(), setupForDeathValley, testPasses, - 1280, - 720); + TEST_SCREEN_WIDTH, + TEST_SCREEN_HEIGHT); } bool FGoogleTilesTokyo::RunTest(const FString& Parameters) { @@ -212,8 +215,8 @@ bool FGoogleTilesTokyo::RunTest(const FString& Parameters) { GetBeautifiedTestName(), setupForTokyo, testPasses, - 1280, - 720); + TEST_SCREEN_WIDTH, + TEST_SCREEN_HEIGHT); } bool FGoogleTilesGoogleplex::RunTest(const FString& Parameters) { @@ -225,8 +228,8 @@ bool FGoogleTilesGoogleplex::RunTest(const FString& Parameters) { GetBeautifiedTestName(), setupForGoogleplex, testPasses, - 1280, - 720); + TEST_SCREEN_WIDTH, + TEST_SCREEN_HEIGHT); } #endif