Skip to content

Commit

Permalink
Set location time zones. Batch tests under GoogleTiles.X namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
csciguy8 committed Oct 5, 2023
1 parent 2ff62b0 commit 58f04d5
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions Source/CesiumRuntime/Private/Tests/Google3dTilesLoadTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,33 @@
#include "Misc/AutomationTest.h"

#include "Cesium3DTileset.h"
#include "CesiumSunSky.h"

using namespace Cesium;

IMPLEMENT_SIMPLE_AUTOMATION_TEST(
FGoogleTilesPompidou,
"Cesium.Performance.GoogleTilesPompidou",
"Cesium.Performance.GoogleTiles.Pompidou",
EAutomationTestFlags::EditorContext | EAutomationTestFlags::PerfFilter)

IMPLEMENT_SIMPLE_AUTOMATION_TEST(
FGoogleTilesChrysler,
"Cesium.Performance.GoogleTilesChrysler",
"Cesium.Performance.GoogleTiles.Chrysler",
EAutomationTestFlags::EditorContext | EAutomationTestFlags::PerfFilter)

IMPLEMENT_SIMPLE_AUTOMATION_TEST(
FGoogleTilesGuggenheim,
"Cesium.Performance.GoogleTilesGuggenheim",
"Cesium.Performance.GoogleTiles.Guggenheim",
EAutomationTestFlags::EditorContext | EAutomationTestFlags::PerfFilter)

IMPLEMENT_SIMPLE_AUTOMATION_TEST(
FGoogleTilesDeathValley,
"Cesium.Performance.GoogleTilesDeathValley",
"Cesium.Performance.GoogleTiles.DeathValley",
EAutomationTestFlags::EditorContext | EAutomationTestFlags::PerfFilter)

IMPLEMENT_SIMPLE_AUTOMATION_TEST(
FGoogleTilesTokyo,
"Cesium.Performance.GoogleTilesTokyo",
"Cesium.Performance.GoogleTiles.Tokyo",
EAutomationTestFlags::EditorContext | EAutomationTestFlags::PerfFilter)

void setupForPompidou(SceneGenerationContext& context) {
Expand All @@ -43,6 +44,9 @@ void setupForPompidou(SceneGenerationContext& context) {
FRotator(-20.0, 0.0, 0.0),
60.0f);

context.sunSky->TimeZone = 2.0f;
context.sunSky->UpdateSun();

ACesium3DTileset* tileset = context.world->SpawnActor<ACesium3DTileset>();
tileset->SetUrl(Cesium::SceneGenerationContext::testGoogleUrl);
tileset->SetTilesetSource(ETilesetSource::FromUrl);
Expand All @@ -57,6 +61,9 @@ void setupForChrysler(SceneGenerationContext& context) {
FRotator(-15.0, 0.0, 0.0),
60.0f);

context.sunSky->TimeZone = -4.0f;
context.sunSky->UpdateSun();

ACesium3DTileset* tileset = context.world->SpawnActor<ACesium3DTileset>();
tileset->SetUrl(Cesium::SceneGenerationContext::testGoogleUrl);
tileset->SetTilesetSource(ETilesetSource::FromUrl);
Expand All @@ -71,6 +78,9 @@ void setupForGuggenheim(SceneGenerationContext& context) {
FRotator(-15.0, 90.0, 0.0),
60.0f);

context.sunSky->TimeZone = 2.0f;
context.sunSky->UpdateSun();

ACesium3DTileset* tileset = context.world->SpawnActor<ACesium3DTileset>();
tileset->SetUrl(Cesium::SceneGenerationContext::testGoogleUrl);
tileset->SetTilesetSource(ETilesetSource::FromUrl);
Expand All @@ -85,6 +95,9 @@ void setupForDeathValley(SceneGenerationContext& context) {
FRotator(0, 90.0, 0.0),
60.0f);

context.sunSky->TimeZone = -7.0f;
context.sunSky->UpdateSun();

ACesium3DTileset* tileset = context.world->SpawnActor<ACesium3DTileset>();
tileset->SetUrl(Cesium::SceneGenerationContext::testGoogleUrl);
tileset->SetTilesetSource(ETilesetSource::FromUrl);
Expand All @@ -100,6 +113,9 @@ void setupForTokyo(SceneGenerationContext& context) {
FRotator(-15, 300, 0.0),
60.0f);

context.sunSky->TimeZone = 9.0f;
context.sunSky->UpdateSun();

ACesium3DTileset* tileset = context.world->SpawnActor<ACesium3DTileset>();
tileset->SetUrl(Cesium::SceneGenerationContext::testGoogleUrl);
tileset->SetTilesetSource(ETilesetSource::FromUrl);
Expand Down

0 comments on commit 58f04d5

Please sign in to comment.