Flamefire
30d756d120
Fix unused variable warning in non-threadsafe builds
...
Make lock/scoped_lock (dummy) RAII classes which avoids warnings in clang
Make lock and wrapper moveable as they should
Make wrapper return itself as reference not copy
2018-11-29 08:43:49 +01:00
Mathieu Champlon
4a853f9952
Merge pull request #63 from mat007/tweak-ci-envs
...
Update target environments
2018-11-24 22:52:49 -08:00
Mathieu Champlon
df390cfd9d
Update target environments
2018-11-24 17:15:58 +01:00
Mathieu Champlon
4754a2a775
Merge pull request #62 from Flamefire/singleton2
...
Implement and use simple singleton
2018-11-23 22:45:48 -08:00
Alexander Grund
72e0daae5c
Implement and use simple singleton
...
Based on old boost::unit_test::singleton
2018-11-22 14:41:11 +01:00
Mathieu Champlon
d77aad128c
Merge pull request #59 from Flamefire/cpp98
...
Cpp98 compatibility
2018-11-22 02:24:52 -08:00
Alexander Grund
f402c6161e
Fix C++98 compatibility
2018-11-22 10:12:00 +01:00
Flamefire
2cde572532
Add -Wno-unused-local-typedefs to silence warnings breaking the build on travis
2018-11-22 10:12:00 +01:00
Mathieu Champlon
fb8d7abab4
Merge pull request #60 from Flamefire/coverage
...
Use boost-local for boost folder to ignore its coverage
2018-11-19 07:12:45 -08:00
Alexander Grund
c4af5d937b
Use boost-local for boost folder to ignore its coverage
2018-11-19 13:10:46 +01:00
Mathieu Champlon
e209d544c1
Merge pull request #45 from mat007/fix-ci
...
Fix CI
2018-11-16 23:08:22 -08:00
Mathieu Champlon
c9888a6326
Build only the master branch
2018-11-16 09:35:20 +01:00
Mathieu Champlon
20fcfa56ce
Fixed boost versions available on appveyor
2018-11-16 09:34:56 +01:00
Mathieu Champlon
e92f52821d
Merge pull request #46 from AudioStreamingPlatform/master
...
Corrected Catch compile issue
2018-05-29 21:43:17 +02:00
Jeppe Frandsen
016455ca40
Corrected catch.hpp
2018-05-27 13:50:33 +02:00
Mathieu Champlon
d7b1ad0800
Merge pull request #43 from mat007/fix-function-param-forward
...
Fixed parameter forwarding bug in mock functions
2018-04-08 21:59:58 +02:00
Mathieu Champlon
1e1f0da335
Fixed linkflags
2018-04-08 18:05:39 +02:00
Mathieu Champlon
cd5f911f6d
Fixed parameter forwarding bug in mock functions
2018-04-08 17:48:14 +02:00
Mathieu Champlon
d162eeb8fb
Merge pull request #41 from mat007/fix-c++17-compliance
...
Fix clang build
2018-04-08 17:47:22 +02:00
Mathieu Champlon
47784f992e
Added docker files for gcc and clang development environments
2018-04-08 15:16:49 +02:00
Mathieu Champlon
6a68fa728b
Fixed shell build script
2018-04-08 15:16:49 +02:00
Mathieu Champlon
a2647d00e9
Fixed gcc build error
2018-04-08 15:16:49 +02:00
Mathieu Champlon
20e7d50568
Fixed test failing for gcc
2018-04-08 15:16:49 +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
caef00d2e3
Fixed move in actions for gcc
2018-04-08 15:16:49 +02:00
Mathieu Champlon
35b4f570ae
Fixed clang warning
2018-04-08 15:16:48 +02:00
Mathieu Champlon
71a7f6d9c4
Fixed shell build script to exit upon error
2018-04-08 15:16:48 +02:00
Mathieu Champlon
a178fc442a
Removed stdcall tests and examples for all compilers but msvc
2018-04-08 15:16:48 +02:00
Mathieu Champlon
b8e8b6ffbf
Fixed uncaught_exceptions usage with clang
...
For some reason clang seems so believe uncaught_exceptions does not belong to the std namespace:
no member named 'uncaught_exceptions' in namespace 'std'; did you mean
simply 'uncaught_exceptions'?
I haven't found any indication confirming this, but let's just support both…
2018-04-08 15:16:48 +02:00
Mathieu Champlon
9e572eca3e
Added clang for travis
2018-04-08 15:16:48 +02:00
Mathieu Champlon
07c73ad616
Merge pull request #40 from mat007/fix-c++17-compliance
...
Fix c++17 compliance
2018-03-25 13:58:19 +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
61d5cf5634
Added /std:cxx?? to appveyor builds
...
Build for c++17 disabled as Boost has not yet released a fully Visual Studio 2017 c++17 ready version.
2018-03-25 09:30:13 +02:00
Mathieu Champlon
e1b9819829
Merge pull request #39 from mat007/fix-multi-expectations
...
Fixed perfect forwarding bug
2018-03-18 09:16:24 +01:00
Mathieu Champlon
860e072439
Fixed perfect forwarding bug
2018-03-17 22:20:04 +01:00
Mathieu Champlon
062d465ba5
Merge pull request #38 from mat007/fix-appveyor-build
...
Fixed xsltproc install in appveyor
2018-03-13 21:13:16 +01:00
Mathieu Champlon
09ab475928
Fixed xsltproc install in appveyor
2018-03-13 18:38:48 +01:00
Mathieu Champlon
86acef882c
Merge pull request #37 from mat007/fix-appveyor-build
...
Fixed xsltproc install in appveyor
2018-03-13 13:36:48 +01:00
Mathieu Champlon
a1cfc0c0b1
Fixed xsltproc install in appveyor
2018-03-13 09:25:32 +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
5795f4be70
Added Visual Studio Code configuration folder to gitignore
2018-03-12 08:33:59 +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
58b5e55bb5
Fixed alignement
2018-03-12 08:11:32 +01:00
Mathieu Champlon
5ede8262fd
Merge pull request #19 from mat007/fix-appveyor-build
...
Fix appveyor build
2018-03-09 14:26:21 +01:00
Mathieu Champlon
2a48aa1787
Added appveyor build script
2018-03-09 06:42:08 +01:00
Mathieu Champlon
61d101dd8b
Updated c++ versions to check against
2018-03-08 09:38:00 +01:00
Mathieu Champlon
179c26946c
Added mock functor in namespace test
2018-03-08 09:36:57 +01:00