summaryrefslogtreecommitdiff
path: root/tests/pke-test-font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pke-test-font.cpp')
-rw-r--r--tests/pke-test-font.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/pke-test-font.cpp b/tests/pke-test-font.cpp
index 856dbdb..a766f26 100644
--- a/tests/pke-test-font.cpp
+++ b/tests/pke-test-font.cpp
@@ -5,11 +5,14 @@
#include "ecs.hpp"
#include "font.hpp"
#include "pk.h"
+#include "pke-test-stubs.h"
+#include "pke-test-types.h"
#include "thread-pool.hpp"
static pk_membucket *bkt;
void pke_test_font_setup() {
+ pke_test_stub_init_vulkan();
bkt = pk_mem_bucket_create("pke_test_font", PK_MEM_DEFAULT_BUCKET_SIZE, PK_MEMBUCKET_FLAG_NONE);
pk_mem_bucket_set_client_mem_bucket(bkt);
pk_ev_init(bkt);
@@ -28,6 +31,7 @@ void pke_test_font_teardown() {
pk_mem_bucket_destroy(bkt);
pk_mem_bucket_set_client_mem_bucket(nullptr);
bkt = nullptr;
+ pke_test_stub_teardown_vulkan();
}
/* Ensure the font exists
@@ -64,9 +68,9 @@ int pke_test_font_002() {
return 0;
}
-struct pke_test_group *pke_test_font_get_group() {
+struct pk_test_group *pke_test_font_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_font_001,
@@ -78,7 +82,7 @@ struct pke_test_group *pke_test_font_get_group() {
.expected_result = 0,
},
};
- static struct pke_test_group group = {};
+ static struct pk_test_group group = {};
group.title = "font test";
group.test_setup = pke_test_font_setup;
group.test_teardown = pke_test_font_teardown;