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

Register function call when fake is called

This commit is contained in:
Mike Long
2011-01-01 21:03:20 +01:00
parent 71c66bfa3a
commit f923a5ad62
3 changed files with 50 additions and 0 deletions

View File

@@ -138,3 +138,11 @@ TEST_F(FFFTestSuite, call_history_will_not_write_past_array_bounds)
}
ASSERT_EQ(MAX_CALL_HISTORY, call_history_idx);
}
TEST_F(FFFTestSuite, calling_fake_registers_one_call)
{
longfunc0();
ASSERT_EQ(call_history_idx, 1u);
ASSERT_EQ(call_history[0], (void *)longfunc0);
}