blob: f1942fdd70c901c10e57f28bead30e954d91e8a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#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;
}
|