1
0
mirror of https://github.com/meekrosoft/fff synced 2026-01-23 08:25:59 +01:00

Add global definitions and full reset calls

This commit is contained in:
Mike Long
2012-05-24 15:07:32 +08:00
parent 4438bf2b71
commit 5d89d72d16

View File

@@ -7,6 +7,7 @@ extern "C"{
#include <gtest/gtest.h>
DEFINE_FFF_GLOBALS;
/* SYSTEM.h */
FAKE_VOID_FUNC2(SYSTEM_register_irq, irq_func_t, unsigned int);
@@ -27,7 +28,16 @@ public:
void SetUp()
{
// Register resets
RESET_FAKES();
RESET_FAKE(SYSTEM_register_irq);
RESET_FAKE(DISPLAY_init)
RESET_FAKE(DISPLAY_clear)
RESET_FAKE(DISPLAY_output)
RESET_FAKE(DISPLAY_get_line_capacity)
RESET_FAKE(DISPLAY_get_line_insert_index);
RESET_FAKE(button_press_cbk);
RESET_HISTORY();
// non default init
DISPLAY_get_line_capacity_fake.return_val = 2;