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

Added two test cases for SET_CUSTOM_FAKE_SEQ

Using a function that sets a value on a variable via a char pointer, we
test the following:
1 - Does the custom fakes are called in the expected order?
2 - When the sequence length is exhausted, do we only call the last
    custom fake in the sequence from then on?
This commit is contained in:
Paulo Antonio Alvarez
2016-09-14 01:15:23 -03:00
parent 845a8e2549
commit 961289f578
7 changed files with 63 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ DEFINE_FFF_GLOBALS
FAKE_VOID_FUNC(voidfunc1, int);
FAKE_VOID_FUNC(voidfunc2, char, char);
FAKE_VOID_FUNC(voidfunc1outparam, char *);
FAKE_VALUE_FUNC(long, longfunc0);
FAKE_VOID_FUNC(voidfunc20, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int);
@@ -30,6 +31,7 @@ public:
RESET_FAKE(voidfunc1);
RESET_FAKE(voidfunc2);
RESET_FAKE(longfunc0);
RESET_FAKE(voidfunc1outparam);
FFF_RESET_HISTORY();
}
};