Skip to content

Commit

Permalink
Add #define for test window size (remove duplication)
Browse files Browse the repository at this point in the history
  • Loading branch information
csciguy8 committed Oct 16, 2023
1 parent e288dc3 commit 60e28d2
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions Source/CesiumRuntime/Private/Tests/Google3dTilesLoadTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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) {
Expand All @@ -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) {
Expand All @@ -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) {
Expand All @@ -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) {
Expand All @@ -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) {
Expand All @@ -225,8 +228,8 @@ bool FGoogleTilesGoogleplex::RunTest(const FString& Parameters) {
GetBeautifiedTestName(),
setupForGoogleplex,
testPasses,
1280,
720);
TEST_SCREEN_WIDTH,
TEST_SCREEN_HEIGHT);
}

#endif

0 comments on commit 60e28d2

Please sign in to comment.