Added mocks and stubs for cons_show

This commit is contained in:
James Booth
2013-12-19 21:05:39 +00:00
parent b27c5d0f5b
commit d56f6dc39b
10 changed files with 183 additions and 122 deletions

14
tests/ui/mock_ui.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef MOCK_UI_H
#define MICK_UI_H
#include <glib.h>
#include <setjmp.h>
#include <cmocka.h>
void stub_cons_show(void);
void mock_cons_show(void);
void expect_cons_show(char *output);
void expect_cons_show_calls(int n);
#endif