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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user