Alexander Grund
bb77c1702f
Add support for unlimited number of sequences in one call
...
This removes the need for those preprocessor macros and the MOCK_MAX_SEQUENCES define.
2022-02-10 17:46:00 +01:00
Alexander Grund
fca30e7780
Replace Boost PP_Iterate by C++11 variadic templates
...
This allows support for any number of arguments and makes setting MOCK_MAX_ARGS unnecessary.
It also allows for easier debugging due to being able to step into actual code instead of preprocessor generated stuff
2022-02-10 17:46:00 +01:00
Alexander Grund
df10c59d21
Rename MOCK_PROTECT_FUNCTION_SIG to MOCK_PROTECT_SIGNATURE
...
Shorter and avoids the abbreviation
2022-01-25 18:05:06 +01:00
Alexander Grund
3d5ac2b94a
Remove support for BOOST_IDENTITY_TYPE
...
MOCK_PROTECT_FUNCTION_SIG should be used instead which even requires less parentheses.
Closes #109
2022-01-25 17:32:22 +01:00
Alexander Grund
374482367f
Update changelog regarding TPL macros
2022-01-24 19:16:25 +01:00
Alexander Grund
bd0a4cfc73
Reduce exposed interface (macros)
...
Move implementation details to mock_impl.hpp and remove MOCK_*_TPL macros.
Make sure all exposed macros (in mock.hpp) are properly documented.
Closes #105
2022-01-24 19:03:15 +01:00
Alexander Grund
5ef17d0e33
Include examples in CI tests
...
Also fix and update examples and documentation where required
This allows to make sure examples are actually runnable avoiding them to
become outdated
2022-01-07 17:08:13 +01:00
Alexander Grund
139918dc35
Add changelog for auto deducing method sig
2020-08-12 17:11:19 +02:00
Mathieu Champlon
bbe01e6d9d
Updated changelog for 1.3.2
2020-06-19 18:11:12 +02:00
Mathieu Champlon
c42b708950
Fixed deprecation warning about std::uncaught_exception in c++17 for msvc
2018-03-25 09:46:40 +02:00
Mathieu Champlon
bccd3ff303
Added support for move only types to constraints
...
Therefore mock::retrieve now supports std::unique_ptr.
2018-03-12 08:34:28 +01:00
Mathieu Champlon
5d11db0f52
Added support for dereferencing in mock::equal
2018-03-12 08:33:53 +01:00
Mathieu Champlon
a2d36e961a
Fixed move-only type support in constraints
2018-03-12 08:11:33 +01:00
Mathieu Champlon
d3a5d3010c
Fixed move-only type argument in actions
...
Because boost::function does not move the parameters it receives we need to use std::function instead.
2018-03-12 08:11:33 +01:00
Mathieu Champlon
6daff2167c
Added Catch integration
2017-05-29 09:12:03 +02:00
Mathieu Champlon
a22ca57253
Added MOCK_NO_AUTO_PTR to deactivate std::auto_ptr support
2017-03-20 11:43:18 +01:00
Mathieu Champlon
c847c85a77
Fixed mocking of a function returning a reference for gcc 4.1
2017-01-15 12:50:11 +01:00
Mathieu Champlon
28b010cff2
Updated version number
2016-07-17 23:23:35 +02:00
Mathieu Champlon
94bedbd653
Removed round parenthesis in signature support for compilers without variadic macros
...
VS2015 has fixed the double parenthesis trick which was allowed in function signatures.
2016-07-16 13:46:17 +02:00
Mathieu Champlon
78aa12a18d
Updated release version
2016-02-09 09:26:20 +01:00
Mathieu Champlon
506e10f76a
Added logging support for boost::optional
2016-02-08 11:25:17 +01:00
Mathieu Champlon
ffcb366633
Fixed extra semicolon warning with BOOST_GLOBAL_FIXTURE prior to Boost 1.59
2016-02-07 18:34:23 +01:00
Mathieu Champlon
86371b5695
Fixed multiply defined symbol definition for MOCK_FUNCTION included from several translation units
2015-09-08 09:22:50 +02:00
Mathieu Champlon
1ab35d8912
Fixed build errors with Boost 1.59
2015-09-08 06:41:39 +02:00
Mathieu Champlon
92c54025a7
Updated changelog
2015-05-23 22:24:14 +02:00
Mathieu Champlon
8405fe7107
Updated release date and version
2015-04-25 08:04:54 +02:00
Mathieu Champlon
d1e0c96ff3
Document how actions store data by copy
2015-04-09 07:14:18 +02:00
Mathieu Champlon
ed36823235
Added support for mocking protected member function
2015-04-08 21:54:46 +02:00
Mathieu Champlon
12a252a850
Documented limitation concerning MOCK_METHOD_TPL
2015-04-08 21:29:50 +02:00
Mathieu Champlon
712653eb99
Added inline to generated MOCK_FUNCTION
2015-04-08 21:29:49 +02:00
Mathieu Champlon
c950c24f52
Changed layout to match boost
2015-03-06 06:41:12 +01:00