Add macros to StatementMacros

This commit is contained in:
Alexander Grund 2020-09-15 14:22:58 +02:00
parent e1ac66a4c1
commit 035ad716bf
No known key found for this signature in database
GPG key ID: E92C451FC21EF13F
35 changed files with 5224 additions and 1208 deletions

View file

@ -27,8 +27,11 @@ void function(base_class&); // the function will call 'method' with a functor to
#include <boost/test/auto_unit_test.hpp>
namespace {
MOCK_BASE_CLASS(mock_class, base_class){ MOCK_METHOD(method, 1) };
}
MOCK_BASE_CLASS(mock_class, base_class)
{
MOCK_METHOD(method, 1)
};
} // namespace
BOOST_AUTO_TEST_CASE(how_to_invoke_a_functor_passed_as_parameter_of_a_mock_method)
{