1
0
mirror of https://github.com/meekrosoft/fff synced 2026-01-27 18:24:28 +01:00

Add support for const parameters in fakes (C only)

This commit is contained in:
Micha Hoiting
2012-11-08 23:14:02 +01:00
parent e35ae98cac
commit 3cf610ea97
6 changed files with 12 additions and 7 deletions

View File

@@ -63,11 +63,13 @@ TEST_F(FFFTestSuite, when_void_func_with_2_char_args_called_and_reset_then_captu
ASSERT_EQ(voidfunc2_fake.arg1_val, 0);
}
#ifndef __cplusplus
TEST_F(FFFTestSuite, when_fake_func_called_then_const_arguments_captured)
{
char dst[80];
strlcpy3(dst, __FUNCTION__, sizeof(__FUNCTION__));
}
#endif /* __cplusplus */
// Argument history
TEST_F(FFFTestSuite, when_fake_func_created_default_history_is_fifty_calls)