Mathieu Champlon
cd5f911f6d
Fixed parameter forwarding bug in mock functions
2018-04-08 17:48:14 +02:00
Mathieu Champlon
4455222a62
Removed support for directly mocking a protected member function
...
Taking a function pointer on a base member protected function is actually invalid.
This could work with a pointer on the derived class member function, that is &derived::method instead of &base::method however there is no way to pass the derived class from MOCK_BASE_CLASS to the mock::detail::base helper if template classes are to be supported.
Anyway the now documented workaround is simple enough and the same as for private member functions.
As a side note the changes from ed36823235 might not be needed any more…
2018-04-08 15:16:49 +02:00
Mathieu Champlon
860e072439
Fixed perfect forwarding bug
2018-03-17 22:20:04 +01:00
Mathieu Champlon
176b9bdc01
Merge pull request #35 from mat007/support-move-only-types-as-arguments
...
Support move only types as arguments
2018-03-12 19:21:54 +01: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
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
179c26946c
Added mock functor in namespace test
2018-03-08 09:36:57 +01:00
Mathieu Champlon
c950c24f52
Changed layout to match boost
2015-03-06 06:41:12 +01:00
mat007
02468ee43a
Added multi-constraint
...
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@772 860be788-9bd5-4423-9f1e-828f051e677b
2015-03-01 11:29:03 +00:00
mat007
086a42e432
Added thread-safety
...
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@730 860be788-9bd5-4423-9f1e-828f051e677b
2014-05-20 05:56:27 +00:00
mat007
53e67c0a81
Changed MOCK_DESTRUCTOR and MOCK_*CONVERSION_OPERATOR to support different calling conventions
...
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@707 860be788-9bd5-4423-9f1e-828f051e677b
2014-02-07 14:26:21 +00:00
mat007
0609c6c1fa
Forced MOCK_ERROR_POLICY to mock_error across all tests to prevent ODR violation
...
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@697 860be788-9bd5-4423-9f1e-828f051e677b
2013-11-13 09:42:55 +00:00
mat007
c697b48802
Fixed regression
...
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@665 860be788-9bd5-4423-9f1e-828f051e677b
2013-05-21 09:21:52 +00:00
mat007
8919e56678
Removed duplicate test
...
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@657 860be788-9bd5-4423-9f1e-828f051e677b
2013-05-20 10:48:54 +00:00
mat007
48f577182e
Refactoring
...
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@626 860be788-9bd5-4423-9f1e-828f051e677b
2013-04-23 22:48:25 +00:00
mat007
2b6356c435
Cleanup
...
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@604 860be788-9bd5-4423-9f1e-828f051e677b
2013-03-08 08:01:10 +00:00
mat007
87ea27b96c
Removed duplicated test case
...
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@602 860be788-9bd5-4423-9f1e-828f051e677b
2013-03-08 08:00:46 +00:00
mat007
cc0a24a939
Trying to work around spurious warning with gcc
...
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@543 860be788-9bd5-4423-9f1e-828f051e677b
2012-08-01 11:19:42 +00:00
mat007
7e4eb18cb0
Added test for BOOST_PP_COMMA() in MOCK_BASE_CLASS
...
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@506 860be788-9bd5-4423-9f1e-828f051e677b
2012-07-22 07:11:25 +00:00
mat007
ec1f6a4738
Changed file headers to simplify Boost.Mock generation
...
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@466 860be788-9bd5-4423-9f1e-828f051e677b
2012-06-16 20:44:10 +00:00
mat007
3358ddda0e
Changed project layout
...
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@460 860be788-9bd5-4423-9f1e-828f051e677b
2012-06-15 21:14:48 +00:00