From a82a5b275ccda4dceaa864835983f97478f3dd2b Mon Sep 17 00:00:00 2001 From: mat007 Date: Sat, 14 Jan 2012 16:43:09 +0000 Subject: [PATCH] Cleanup git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@405 860be788-9bd5-4423-9f1e-828f051e677b --- src/libraries/turtle/mock.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/libraries/turtle/mock.hpp b/src/libraries/turtle/mock.hpp index 49bf6a0..f6b6f56 100644 --- a/src/libraries/turtle/mock.hpp +++ b/src/libraries/turtle/mock.hpp @@ -82,23 +82,23 @@ namespace detail #define MOCK_CLASS(T) \ struct T : mock::object #define MOCK_FUNCTOR(f, S) \ - mock::detail::functor< S > f, f##configure + mock::detail::functor< S > f, f##_mocker #define MOCK_MOCKER(t) \ - t##configure( mock::detail::root, BOOST_PP_STRINGIZE(t) ) + t##_mocker( mock::detail::root, BOOST_PP_STRINGIZE(t) ) #define MOCK_ANONYMOUS_MOCKER(t) \ - t##configure( mock::detail::root, "?." ) + t##_mocker( mock::detail::root, "?." ) #define MOCK_METHOD_EXPECTATION(S, t) \ - mutable mock::function< S > t##expectation; \ - mock::function< S >& t##configure( const mock::detail::context&, \ + mutable mock::function< S > t##_mocker_; \ + mock::function< S >& t##_mocker( const mock::detail::context&, \ boost::unit_test::const_string instance ) const \ { \ - mock::detail::configure( *this, t##expectation, \ + mock::detail::configure( *this, t##_mocker_, \ instance.substr( 0, instance.rfind( BOOST_PP_STRINGIZE(t) ) ), \ mock::detail::type_name( typeid( *this ) ), \ BOOST_PP_STRINGIZE(t) ); \ - return t##expectation; \ + return t##_mocker_; \ } #define MOCK_SIGNATURE(M) \ @@ -153,7 +153,7 @@ namespace detail MOCK_METHOD_EXPECTATION(T(), t) #define MOCK_FUNCTION_STUB(F, n, S, t, s) \ - s mock::function< S >& t##configure( mock::detail::context& context, \ + s mock::function< S >& t##_mocker( mock::detail::context& context, \ boost::unit_test::const_string instance ) \ { \ static mock::function< S > f; \