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

New feature: no longer need to specify argument count in the declaration

This commit is contained in:
Mike Long
2011-04-26 17:20:48 +01:00
parent 01aebe40e0
commit e34f577a4f
4 changed files with 95 additions and 17 deletions

View File

@@ -25,11 +25,11 @@ struct MyStruct {
int y;
};
FAKE_VOID_FUNC1(voidfunc1, int);
FAKE_VOID_FUNC2(voidfunc2, char, char);
FAKE_VALUE_FUNC0(long, longfunc0);
FAKE_VALUE_FUNC0(enum MYBOOL, enumfunc0);
FAKE_VALUE_FUNC0(struct MyStruct, structfunc0);
FAKE_VOID_FUNC(voidfunc1, int);
FAKE_VOID_FUNC(voidfunc2, char, char);
FAKE_VALUE_FUNC(long, longfunc0);
FAKE_VALUE_FUNC(enum MYBOOL, enumfunc0);
FAKE_VALUE_FUNC(struct MyStruct, structfunc0);
void setup()
@@ -254,6 +254,7 @@ TEST_F(FFFTestSuite, default_constants_can_be_overridden)
ASSERT_EQ(OVERRIDE_ARG_HIST_LEN, voidfunc2_arg_history_len);
}
int main()
{
setbuf(stdout, NULL);