1
0
mirror of https://github.com/meekrosoft/fff synced 2026-01-22 16:05:59 +01:00

232 Commits

Author SHA1 Message Date
Jakub Dudarewicz
5111c61e1e Add GTest with FetchContent (#120)
* Add missing GTest linking
* Add unit testing switch
* Rename UNIT_TESTING to be fff-specific
* Add fff.h generation toggle
* Use options instead of variables for disabling build elements
* Add interface library for when the header is not regenerated
* Update build script and README
2023-05-22 19:31:38 +10:00
Daniel King
a9cb716818 Fix unreachable return statements. (#109)
* Fixed some return statements that were generated unconditionally,
  leading to unreachable return statements in some cases.
* Regenerated fff.h
2023-05-20 09:43:17 +10:00
Mike Long
11ab05b518 Merge pull request #113 from yperess/peress/custom_fake_sig
Support custom function signatures
2022-09-08 19:57:02 +02:00
Yuval Peress
3ede05133f Update the docs to demonstrate custom function signatures
Update the GCC specific example of nested functions to support capturing
lambdas when a custom function signature is used with std::function.

Signed-off-by: Yuval Peress <peress@google.com>
2022-08-28 09:11:40 -06:00
Yuval Peress
d254d115e1 Add tests to verify std::function works with capturing lambda
Introduce a test that uses a capturing lambda as a custom_fake.

Signed-off-by: Yuval Peress <peress@google.com>
2022-08-28 09:11:40 -06:00
Yuval Peress
2cce6b0fc8 Add support for custom_fake function signatures
Update the generator to include a check for CUSTOM_FFF_FUNCTION_TEMPLATE.
If not present it will default to the C style function pointer.
Alternatively, developers may define their own version of the template to
leverage std::function or pw:Function (from the embedded Pigweed library).

Signed-off-by: Yuval Peress <peress@google.com>
2022-08-28 09:11:40 -06:00
Yuval Peress
1f6a3c8331 Refactor test/ directory to match the rest of the project.
The prior PR didn't touch this directory because it was getting too big
and I wanted the diff to be smaller for the test directory. Now addressing
that.

Signed-off-by: Yuval Peress <peress@google.com>
2022-08-28 09:11:40 -06:00
Mike Long
7e0126b732 Merge pull request #114 from meekrosoft/run-tests
Run tests
2022-08-19 16:40:32 +02:00
Mike Long
488442255c Don't use shell script for CI runs, doesn't work on windows 2022-08-19 16:37:21 +02:00
Mike Long
d4fed915a3 Add ninja to build envs 2022-08-19 16:33:30 +02:00
Mike Long
25d4c616be Build on push also 2022-08-19 16:27:24 +02:00
Mike Long
21f1693002 Run tests in CI 2022-08-19 16:21:02 +02:00
Mike Long
78555cb85c Merge pull request #112 from yperess/peress/ci
Migrate to standard github workflows
2022-08-10 14:13:53 +02:00
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
Mike Long
ff70585de8 Bump windows sdk version to match 2022-08-04 09:34:25 +01:00
Mike Long
c325073b44 Revert "Try to upgrade solution files manually"
This reverts commit bdb739732b.
2022-08-04 09:29:13 +01:00
Mike Long
bdb739732b Try to upgrade solution files manually 2022-08-04 09:23:11 +01:00
Mike Long
c9bebd9d14 Create msbuild.yml 2022-08-03 19:01:23 +01:00
Mike Long
7e09f07e5b Merge pull request #77 from henningrehn/return_value_history_for_custom_fakes
Handle return value history for custom fakes
v1.1
2019-08-21 14:57:51 +02:00
Henning Rehn
b9f11dcd8a Handle return value history for custom fakes 2019-08-21 12:37:58 +02:00
James Fraser
ab47e7fc5b Update README.md 2019-03-02 16:01:24 +11:00
James Fraser
f9c08aec81 Update README.md 2019-03-02 16:00:41 +11:00
James Fraser
cf2c4780ef Update README.md 2019-03-02 15:59:49 +11:00
James Fraser
995f26b939 Update README.md v1.0 2019-02-18 22:46:16 +11:00
James Fraser
0b9e9f5064 Squashed commit of the following:
commit e5a5749971eb9274679699020a54c91d4053ed79
Author: James Fraser <wulfgar.pro@gmail.com>
Date:   Sun Feb 3 19:57:31 2019 +1100

    PR #47: Minor review fixes to tests files.

commit e9f11b9ec8de8f8d1f0de7b6959c575e15894526
Author: James Fraser <wulfgar.pro@gmail.com>
Date:   Sun Feb 3 19:57:04 2019 +1100

    PR #47: Minor review fixes.

commit 0a7fbeceec
Author: Pauli Salmenrinne <pauli.salmenrinne@pexraytech.com>
Date:   Tue Jan 22 15:11:10 2019 +0200

    Add example for the weak linking

commit 647737304d
Author: susundberg <susundberg@gmail.com>
Date:   Wed Mar 21 13:14:05 2018 +0200

    Add "FFF_FUNCTION_ATTRIBUTES" definition that can be used to declare attributes for functions. More specifically, allow __weak__ attribute.
2019-02-03 20:23:52 +11: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
96827e3a39 Merge branch 'zrax-no_extern_c' 2018-12-14 19:58:13 +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
35b26878a7 Update README.md 2018-12-04 21:26:48 +11:00
James Fraser
eabb622ea0 Update README.md 2018-12-04 20:49:24 +11:00
James Fraser
4e031416d6 Update README.md 2018-12-04 20:49:00 +11:00
James Fraser
5b930a1382 Updated cheat sheet with variadic examples 2018-12-04 20:47:16 +11:00
James Fraser
8e0e312556 Added TOC to README.md 2018-12-04 20:28:37 +11:00
James Fraser
955db6c60c Merge pull request #67 from wulfgarpro/master
Added in-source appveyor config.
2018-12-01 20:50:07 +11:00
James Fraser
0376823b0c Moved PR template... doesn't seem to be picked up in subdirectory. 2018-11-28 17:20:09 +11:00
James Fraser
5fb4dc64e8 Added in-source appveyor config. 2018-11-28 17:06:44 +11:00
James Fraser
6011dfde79 Updated README.md with AppVeyor status badge. 2018-11-28 09:11:34 +11:00
James Fraser
d0328c9e4a Rename PULL_REQUEST_TEMPLATE.md to pull_request_template.md 2018-11-26 20:07:57 +11:00
James Fraser
840a619e19 Rename PULL_REQUEST_TEMPLATE.md to .github/PULL_REQUEST_TEMPLATE/PULL_REQUEST_TEMPLATE.md 2018-11-26 20:02:29 +11:00
Mike Long
11b70375a6 Merge pull request #64 from meekrosoft/wulfgarpro-patch-1
Update issue and feature templates
2018-11-26 09:53:44 +01:00
Mike Long
54c35b6a1b Merge pull request #66 from meekrosoft/wulfgarpro-patch-2
Create PULL_REQUEST_TEMPLATE.md
2018-11-26 08:58:48 +01:00
James Fraser
3553583f57 Create PULL_REQUEST_TEMPLATE.md 2018-11-25 16:38:22 +11:00
James Fraser
dc667cbf82 Fixed OS specifier. 2018-11-25 16:08:38 +11:00
James Fraser
15cb0ecbac Remove nonsense boilerplate 2018-11-25 16:07:47 +11:00
James Fraser
e0ca6b9e72 Update issue templates 2018-11-25 15:53:07 +11:00
Mike Long
1cac9afc41 Merge pull request #61 from wulfgarpro/master
Added support for specifying calling conventions.
2018-11-23 08:28:42 +01:00
James Fraser
45c4d31690 Re-instated assert from include fixture as per last commit fix. 2018-11-16 20:27:33 +11:00
James Fraser
1c981604a1 Fixed erroneous change. 2018-11-16 20:25:10 +11:00