Skip to content

Commit

Permalink
Update ion token for test (sync with default in samples project)
Browse files Browse the repository at this point in the history
  • Loading branch information
csciguy8 committed Sep 1, 2023
1 parent 4dd0060 commit b9f594f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Source/CesiumRuntime/Private/Tests/CesiumLoadTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
#include "CesiumTestHelpers.h"
#include "GlobeAwareDefaultPawn.h"

FString testIonToken(
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI3NjU3OGE4Zi0xOGM4LTQ4NjYtODc4ZS02YWNkMDZmY2Y1M2YiLCJpZCI6MjU5LCJpYXQiOjE2OTA4Nzg3MjB9.uxePYJL59S4pG5aqJHb9goikVSO-Px6xA7kZH8oM1eM");

IMPLEMENT_SIMPLE_AUTOMATION_TEST(
FCesiumLoadTestDenver,
"Cesium.Performance.LoadTestDenver",
Expand Down Expand Up @@ -164,8 +167,6 @@ void setupForGoogleTiles(LoadTestContext& context) {
void setupForDenver(LoadTestContext& context) {

FVector targetOrigin(-104.988892, 39.743462, 1798.679443);
FString ionToken(
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI2NmZhZTk4NS01MDFmLTRjODgtOTlkYy04NjIwODhiZWExOGYiLCJpZCI6MjU5LCJpYXQiOjE2ODg1MTI4ODd9.haoe5hsJyfHk1dQAHVK6N8dW_kfmtdbyuhlGwFdEHbM");

FCesiumCamera camera;
camera.ViewportSize = FVector2D(1024, 768);
Expand All @@ -185,7 +186,7 @@ void setupForDenver(LoadTestContext& context) {
context.world->SpawnActor<ACesium3DTileset>();
worldTerrainTileset->SetTilesetSource(ETilesetSource::FromCesiumIon);
worldTerrainTileset->SetIonAssetID(1);
worldTerrainTileset->SetIonAccessToken(ionToken);
worldTerrainTileset->SetIonAccessToken(testIonToken);
worldTerrainTileset->SetActorLabel(TEXT("Cesium World Terrain"));

// Bing Maps Aerial overlay
Expand All @@ -204,7 +205,7 @@ void setupForDenver(LoadTestContext& context) {
context.world->SpawnActor<ACesium3DTileset>();
aerometrexTileset->SetTilesetSource(ETilesetSource::FromCesiumIon);
aerometrexTileset->SetIonAssetID(354307);
aerometrexTileset->SetIonAccessToken(ionToken);
aerometrexTileset->SetIonAccessToken(testIonToken);
aerometrexTileset->SetMaximumScreenSpaceError(2.0);
aerometrexTileset->SetActorLabel(TEXT("Aerometrex Denver"));

Expand Down Expand Up @@ -322,8 +323,6 @@ bool FCesiumLoadTestGoogleplex::RunTest(const FString& Parameters) {
bool FCesiumLoadTestMontrealPointCloud::RunTest(const FString& Parameters) {
auto setup = [this](LoadTestContext& context) {
FVector targetOrigin(-73.616526, 45.57335, 95.048859);
FString ionToken(
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI2NmZhZTk4NS01MDFmLTRjODgtOTlkYy04NjIwODhiZWExOGYiLCJpZCI6MjU5LCJpYXQiOjE2ODg1MTI4ODd9.haoe5hsJyfHk1dQAHVK6N8dW_kfmtdbyuhlGwFdEHbM");

FCesiumCamera camera;
camera.ViewportSize = FVector2D(1024, 768);
Expand All @@ -343,7 +342,7 @@ bool FCesiumLoadTestMontrealPointCloud::RunTest(const FString& Parameters) {
context.world->SpawnActor<ACesium3DTileset>();
montrealTileset->SetTilesetSource(ETilesetSource::FromCesiumIon);
montrealTileset->SetIonAssetID(28945);
montrealTileset->SetIonAccessToken(ionToken);
montrealTileset->SetIonAccessToken(testIonToken);
montrealTileset->SetMaximumScreenSpaceError(16.0);
montrealTileset->SetActorLabel(TEXT("Montreal Point Cloud"));

Expand Down

0 comments on commit b9f594f

Please sign in to comment.