summaryrefslogtreecommitdiff
path: root/tests/pke-test-serialization.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pke-test-serialization.cpp')
-rw-r--r--tests/pke-test-serialization.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/pke-test-serialization.cpp b/tests/pke-test-serialization.cpp
index 3c77ff9..e1fda74 100644
--- a/tests/pke-test-serialization.cpp
+++ b/tests/pke-test-serialization.cpp
@@ -9,6 +9,8 @@
#include "level.hpp"
#include "physics.hpp"
#include "pk.h"
+#include "pke-test-stubs.h"
+#include "pke-test-types.h"
#include "scene.hpp"
#include "serialization-component.hpp"
#include "serialization.hpp"
@@ -47,6 +49,7 @@ const pk_uuid uuid_n[] = {
// const pk_uuid uuid_34 = FAKE_UUID_GEN(0x22);
void pke_test_serialization_spinup() {
+ pke_test_stub_init_vulkan();
// pk_funcinstr_init();
bkt = pk_mem_bucket_create("pke_test_serialization", PK_MEM_DEFAULT_BUCKET_SIZE, PK_MEMBUCKET_FLAG_NONE);
pk_mem_bucket_set_client_mem_bucket(bkt);
@@ -85,6 +88,7 @@ void pke_test_serialization_teardown() {
pk_mem_bucket_set_client_mem_bucket(nullptr);
bkt = nullptr;
// pk_funcinstr_teardown();
+ pke_test_stub_teardown_vulkan();
};
int pke_test_serialization_999() {
@@ -881,9 +885,9 @@ int pke_test_deserialization_105() {
return 0;
}
-struct pke_test_group *pke_test_serialization_get_group() {
+struct pk_test_group *pke_test_serialization_get_group() {
static const uint64_t test_count = 11;
- static struct pke_test tests[test_count] = {
+ static struct pk_test tests[test_count] = {
{
.title = "test 999",
.func = pke_test_serialization_999,
@@ -940,7 +944,7 @@ struct pke_test_group *pke_test_serialization_get_group() {
.expected_result = 0,
},
};
- static struct pke_test_group group = {};
+ static struct pk_test_group group = {};
group.title = "de/serialization";
group.group_setup = nullptr;
group.group_teardown = nullptr;