summaryrefslogtreecommitdiff
path: root/src/test/mock
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-06-14 00:05:58 -0500
committersanine <sanine.not@pm.me>2022-06-14 00:05:58 -0500
commit034d5c965ff34cfdf4b153af9f32360a02e35684 (patch)
treefcbe5ca527d76a303c197ea8308c6e488ef7c0b4 /src/test/mock
parent8fb7916a0d0cb007a4c3a4e6a31af58765268ca3 (diff)
scorched earth, start over
Diffstat (limited to 'src/test/mock')
-rw-r--r--src/test/mock/mock_GLFW.c39
-rw-r--r--src/test/mock/mock_GLFW.h9
2 files changed, 0 insertions, 48 deletions
diff --git a/src/test/mock/mock_GLFW.c b/src/test/mock/mock_GLFW.c
deleted file mode 100644
index f1942fd..0000000
--- a/src/test/mock/mock_GLFW.c
+++ /dev/null
@@ -1,39 +0,0 @@
-#include "minunit.h"
-#include "test/mock_queue.h"
-#include "mock_GLFW.h"
-
-void glfwGetVersion(int *major, int *minor, int *rev)
-{
- *major = mock_front(int);
- mock_pop();
- *minor = mock_front(int);
- mock_pop();
- *rev = mock_front(int);
- mock_pop();
-}
-
-
-int glfwInit()
-{
- int result = mock_front(int);
- mock_pop();
- return result;
-}
-
-
-void glfwTerminate()
-{
- mock_queue(bool, true);
-}
-
-
-int glfwGetError(const char **description)
-{
- int error_code = mock_front(int);
- mock_pop();
- if (description != NULL) {
- *description = mock_front(const char *);
- mock_pop();
- }
- return error_code;
-}
diff --git a/src/test/mock/mock_GLFW.h b/src/test/mock/mock_GLFW.h
deleted file mode 100644
index d8689ab..0000000
--- a/src/test/mock/mock_GLFW.h
+++ /dev/null
@@ -1,9 +0,0 @@
-#ifndef MOCK_GLFW_H
-#define MOCK_GLFW_H
-
-void glfwGetVersion(int *major, int *minor, int *rev);
-int glfwInit();
-void glfwTerminate();
-int glfwGetError(const char **description);
-
-#endif