mirror of
https://github.com/meekrosoft/fff
synced 2026-01-23 00:15:59 +01:00
Some small tidying
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user