Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/tests/test_Serializer.h
/* Copyright (C) 2016 Wildfire Games. | /* Copyright (C) 2017 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 829 Lines • ▼ Show 20 Lines | void test_hash_DISABLED() | ||||
sim2.LoadDefaultScripts(); | sim2.LoadDefaultScripts(); | ||||
sim2.ResetState(); | sim2.ResetState(); | ||||
CMapReader* mapReader = new CMapReader(); // it'll call "delete this" itself | CMapReader* mapReader = new CMapReader(); // it'll call "delete this" itself | ||||
LDR_BeginRegistering(); | LDR_BeginRegistering(); | ||||
mapReader->LoadMap(L"maps/skirmishes/Greek Acropolis (2).pmp", | mapReader->LoadMap(L"maps/skirmishes/Greek Acropolis (2).pmp", | ||||
sim2.GetScriptInterface().GetJSRuntime(), JS::UndefinedHandleValue, | sim2.GetScriptInterface().GetJSRuntime(), JS::UndefinedHandleValue, | ||||
&terrain, NULL, NULL, NULL, NULL, NULL, NULL, NULL, | &terrain, NULL, NULL, NULL, NULL, NULL, NULL, | ||||
&sim2, &sim2.GetSimContext(), -1, false); | &sim2, &sim2.GetSimContext(), -1, false); | ||||
LDR_EndRegistering(); | LDR_EndRegistering(); | ||||
TS_ASSERT_OK(LDR_NonprogressiveLoad()); | TS_ASSERT_OK(LDR_NonprogressiveLoad()); | ||||
sim2.Update(0); | sim2.Update(0); | ||||
{ | { | ||||
std::stringstream str; | std::stringstream str; | ||||
Show All 31 Lines |
Wildfire Games · Phabricator