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

25 Commits

Author SHA1 Message Date
Yuval Peress
2eb067e5a1 Migrate build to CMake and standard github workflows
Replace makefiles with CMakeLists.txt. This will allow for IDE and
platform agnostic builds of FFF.

Update the CI for FFF to use github workflows which don't depend on MS VC.
The workflow added will verify the pull requests sent to master buy
running 'buildandtest' which mirrors the developer workflow.

Signed-off-by: Yuval Peress <peress@google.com>
2022-08-05 11:48:54 -06:00
James Fraser
2c5ecf5495 Update fff_test_cpp.cpp 2018-12-14 20:19:52 +11:00
James Fraser
f38b06e939 Fixed cpp test specifying calling convention. 2018-12-14 20:15:43 +11:00
James Fraser
fe54d15393 Merge branch 'no_extern_c' of https://github.com/zrax/fff into zrax-no_extern_c 2018-12-14 19:56:22 +11:00
Alain
b76c7c7168 Custom return value delegate sequences for variadic functions (#63)
* Custom return value delegate sequences for variadic functions
* Added unit tests for variadic functions custom return value delegate sequences
* Fixes in code style
* Variadic functions custom delegates also tested in C++
* Fixed some compilation warnings
* Added test for variadic function custom delegates sequence reset
* Updated documentation with variadic functions custom delegate sequences
* Update README.md
* Minor style changes.

Thank you very much @oliviera9!
2018-12-05 23:36:32 +11:00
James Fraser
a31a9ee38c Added support for specifying calling conventions. 2018-11-16 02:01:11 +11:00
Michael Hansen
b8f9e65387 Remove extern "C" from fake declarations.
Assuming your C interfaces are appropriately wrapped for C++, it is
unnecessary to force the fakes to be declared extern "C", and doing so
causes any functions declared with C++ linkage to be impossible to fake
due to the conflicting linkage declarations.
2018-05-09 13:26:44 -07:00
usr42
190fa67039 Fix FAKE_VALUE_FUNC with 20 parameters 2017-01-16 12:00:24 +01:00
Paulo Antonio Alvarez
961289f578 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?
2016-09-14 01:33:20 -03:00
Mike Long
c38a1343a4 Add support for up to 20 arguments 2013-06-26 07:43:25 +08:00
Mike Long
cd896ccaf9 fix include file name 2012-07-06 01:33:34 +08:00
Mike Long
3d6cfd218b Moved global variables into struct so they don't pollute the global namespace 2012-05-29 07:46:21 +08:00
Mike Long
5f914c5af7 Factor out common test cases into a common include file 2012-05-24 17:41:50 +08:00
Mike Long
1f2b89ba12 Add custom fake tests 2012-05-22 15:46:59 +08:00
Mike Long
1bcf41ff8a Moved fake variables into struct to avoid polluting global namespace 2012-04-25 18:02:48 +01:00
Mike Long
3c8beeaa58 Add googletest library and update makefiles 2012-04-21 07:45:37 +01:00
Mike Long
e34f577a4f New feature: no longer need to specify argument count in the declaration 2011-04-26 17:20:48 +01:00
Mike Long
01aebe40e0 Add overrides for argument and call histories 2011-03-23 09:49:00 +01:00
Mike Long
c44f725fb7 Adding return value sequences 2011-03-22 21:42:04 +01:00
Mike Long
c1d80c74a5 memset return values in reset function 2011-03-10 12:30:39 +01:00
Mike Long
567971a703 Added another method for checking dropped histories 2011-02-19 21:33:16 +01:00
Mike Long
e8475e8e47 Fixed tabs for spaces 2011-02-19 21:23:28 +01:00
Mike Long
6cbdb1c676 Clear argument history when RESET_FAKE called 2011-02-19 20:47:31 +01:00
Mike Long
f12810c3f9 Added basic argument history of fixed size 2011-02-14 21:57:59 +01:00
Mike Long
2043a11291 Added tests from C context 2011-01-15 21:35:17 +01:00