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

Some small tidying

This commit is contained in:
Mike Long
2012-06-26 20:35:33 +08:00
parent 480c88e1af
commit 899f5617a0
2 changed files with 3 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ struct MyStruct {
int y; int y;
}; };
DEFINE_FFF_GLOBALS;
FAKE_VOID_FUNC(voidfunc1, int); FAKE_VOID_FUNC(voidfunc1, int);
FAKE_VOID_FUNC(voidfunc2, char, char); FAKE_VOID_FUNC(voidfunc2, char, char);
FAKE_VALUE_FUNC(long, longfunc0); FAKE_VALUE_FUNC(long, longfunc0);
@@ -49,6 +49,7 @@ TEST_F(FFFTestSuite, default_constants_can_be_overridden)
ASSERT_EQ(OVERRIDE_ARG_HIST_LEN, voidfunc2_fake.arg_history_len); ASSERT_EQ(OVERRIDE_ARG_HIST_LEN, voidfunc2_fake.arg_history_len);
} }
DEFINE_FFF_GLOBALS;
int main() int main()
{ {
setbuf(stdout, NULL); setbuf(stdout, NULL);

View File

@@ -1,5 +1,5 @@
#include "global_fakes.h" #include "global_fakes.h"
#include <string.h> #include <string.h> // for memcpy
DEFINE_FAKE_VOID_FUNC1(voidfunc1, int); DEFINE_FAKE_VOID_FUNC1(voidfunc1, int);
DEFINE_FAKE_VOID_FUNC2(voidfunc2, char, char); DEFINE_FAKE_VOID_FUNC2(voidfunc2, char, char);