summaryrefslogtreecommitdiff
path: root/tests/pke-test-asset-manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pke-test-asset-manager.cpp')
-rw-r--r--tests/pke-test-asset-manager.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/pke-test-asset-manager.cpp b/tests/pke-test-asset-manager.cpp
index 55a368f..c553682 100644
--- a/tests/pke-test-asset-manager.cpp
+++ b/tests/pke-test-asset-manager.cpp
@@ -4,11 +4,13 @@
#include "asset-manager.hpp"
#include "ecs.hpp"
#include "font.hpp"
+#include "pke-test-stubs.h"
#include "thread-pool.hpp"
static pk_membucket *bkt;
void pke_test_asset_manager_spinup() {
+ pke_test_stub_init_vulkan();
bkt = pk_mem_bucket_create("pke_test_asset_manager", PK_MEM_DEFAULT_BUCKET_SIZE, PK_MEMBUCKET_FLAG_NONE);
pk_mem_bucket_set_client_mem_bucket(bkt);
pk_ev_init(nullptr);
@@ -27,6 +29,7 @@ void pke_test_asset_manager_teardown() {
pk_mem_bucket_destroy(bkt);
pk_mem_bucket_set_client_mem_bucket(nullptr);
bkt = nullptr;
+ pke_test_stub_teardown_vulkan();
};
int pke_test_asset_manager_001() {
@@ -36,21 +39,20 @@ int pke_test_asset_manager_001() {
return int(a != NULL && handle != AssetHandle_MAX);
}
-struct pke_test_group *pke_test_asset_manager_get_group() {
+struct pk_test_group *pke_test_asset_manager_get_group() {
static const uint64_t test_count = 1;
- static struct pke_test tests[test_count] = {
+ static struct pk_test tests[test_count] = {
{
.title = "test 001",
.func = pke_test_asset_manager_001,
.expected_result = 1,
}
};
- static struct pke_test_group group = {};
+ static struct pk_test_group group = {};
group.title = "asset_manager";
group.n_tests = test_count;
group.tests = &tests[0];
group.test_setup = pke_test_asset_manager_spinup;
group.test_teardown = pke_test_asset_manager_teardown;
-
return &group;
}