diff options
Diffstat (limited to 'tests/pke-test-static-ui.cpp')
| -rw-r--r-- | tests/pke-test-static-ui.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/pke-test-static-ui.cpp b/tests/pke-test-static-ui.cpp index c102aba..aa989cc 100644 --- a/tests/pke-test-static-ui.cpp +++ b/tests/pke-test-static-ui.cpp @@ -4,6 +4,7 @@ #include "./pke-test-types.h" #include "ecs.hpp" +#include "pke-test-stubs.h" #include "player-input.hpp" #include "window.hpp" #include "vendor-glm-include.hpp" @@ -26,6 +27,7 @@ struct pke_ui_flex_params { static pk_membucket *bkt; void pke_test_static_ui_setup() { + pke_test_stub_init_vulkan(); bkt = pk_mem_bucket_create("pke_test_static_ui", PK_MEM_DEFAULT_BUCKET_SIZE, PK_MEMBUCKET_FLAG_NONE); pk_mem_bucket_set_client_mem_bucket(bkt); Extent.width = 1920; @@ -44,6 +46,7 @@ void pke_test_static_ui_teardown() { pk_mem_bucket_destroy(bkt); pk_mem_bucket_set_client_mem_bucket(nullptr); bkt = nullptr; + pke_test_stub_teardown_vulkan(); } // test static @@ -203,9 +206,9 @@ int pke_test_static_ui_200() { return 0; } -pke_test_group *pke_test_static_ui_get_group() { +pk_test_group *pke_test_static_ui_get_group() { static const uint64_t test_count = 3; - static struct pke_test tests[test_count] = { + static struct pk_test tests[test_count] = { { .title = "test 000", .func = pke_test_static_ui_000, @@ -222,7 +225,7 @@ pke_test_group *pke_test_static_ui_get_group() { .expected_result = 0, }, }; - static struct pke_test_group group = {}; + static struct pk_test_group group = {}; group.title = "static_ui"; group.group_setup = NULL; group.group_teardown = NULL; |
