summaryrefslogtreecommitdiff
path: root/tests/pke-test-stubs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pke-test-stubs.cpp')
-rw-r--r--tests/pke-test-stubs.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/pke-test-stubs.cpp b/tests/pke-test-stubs.cpp
new file mode 100644
index 0000000..8db3c39
--- /dev/null
+++ b/tests/pke-test-stubs.cpp
@@ -0,0 +1,15 @@
+
+#include "pke-test-stubs.h"
+
+#include "pk.h"
+
+extern pk_membucket *MemBkt_Vulkan;
+
+void pke_test_stub_init_vulkan() {
+ MemBkt_Vulkan = pk_mem_bucket_create("test stub vulkan", PK_MEM_DEFAULT_BUCKET_SIZE, PK_MEMBUCKET_FLAG_NONE);
+}
+
+void pke_test_stub_teardown_vulkan() {
+ pk_mem_bucket_destroy(MemBkt_Vulkan);
+ MemBkt_Vulkan = NULL;
+}