sway/include/tests.h
2016-06-19 12:06:16 -04:00

24 lines
423 B
C

#ifndef __TESTS_H
#define __TESTS_H
#include <stddef.h>
#include <setjmp.h>
#include <stdarg.h>
#include <cmocka.h>
enum wrapper_behavior {
WRAPPER_INVOKE_REAL,
WRAPPER_INVOKE_CMOCKA,
WRAPPER_DO_ASSERTIONS,
};
int reset_mem_wrappers(void **state);
void memory_behavior(enum wrapper_behavior behavior);
int malloc_calls();
int free_calls();
int calloc_calls();
int realloc_calls();
int alloc_calls();
#endif