diff options
Diffstat (limited to 'tests/pke-test-load-unload.cpp')
| -rw-r--r-- | tests/pke-test-load-unload.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/pke-test-load-unload.cpp b/tests/pke-test-load-unload.cpp index 6f7fd66..e421aee 100644 --- a/tests/pke-test-load-unload.cpp +++ b/tests/pke-test-load-unload.cpp @@ -10,14 +10,13 @@ #include "game.hpp" #include "level.hpp" #include "physics.hpp" -#include "pk.h" +#include "pke-test-stubs.h" +#include "pke-test-types.h" #include "player-input.hpp" #include "scene.hpp" #include "static-ui.hpp" #include "thread-pool.hpp" -#include "pk.h" - extern pk_arr_t<Entity_Base*> entitiesMarkedForRemoval; extern pk_arr_t<EntityHandle> entitiesYetToBeRemoved; @@ -210,6 +209,7 @@ int pke_test_load_unload_do_thing_002(int iteration) { } void pke_test_load_unload_init() { + pke_test_stub_init_vulkan(); bkt = pk_mem_bucket_create("pke_test_load_unload", PK_MEM_DEFAULT_BUCKET_SIZE, PK_MEMBUCKET_FLAG_NONE); pk_mem_bucket_set_client_mem_bucket(bkt); pkeSettings.mem_bkt.game = bkt; @@ -252,6 +252,7 @@ void pke_test_load_unload_teardown() { pkeSettings.rt.activeLevel = nullptr; pkeSettings.rt.nextLevel = nullptr; pkeSettings.rt.previousLevel = nullptr; + pke_test_stub_teardown_vulkan(); } int pke_test_load_unload_001() { @@ -274,11 +275,11 @@ int pke_test_load_unload_002() { return 0; } -struct pke_test_group * +struct pk_test_group * pke_test_load_unload_get_group() { static const uint64_t test_count = 2; - static struct pke_test tests[test_count] = { + static struct pk_test tests[test_count] = { { .title = "test 001", .func = pke_test_load_unload_001, @@ -290,7 +291,7 @@ pke_test_load_unload_get_group() .expected_result = 0, }, }; - static struct pke_test_group group{}; + static struct pk_test_group group{}; group.title = "load-unload"; group.group_setup = nullptr; group.group_teardown = nullptr; |
