mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Cleanup
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@487 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
207096c9df
commit
d18cc38ac1
1 changed files with 3 additions and 3 deletions
|
|
@ -182,7 +182,7 @@ namespace mock
|
||||||
<< "(" BOOST_PP_REPEAT(n, MOCK_FORMAT, BOOST_PP_DEC(n)) \
|
<< "(" BOOST_PP_REPEAT(n, MOCK_FORMAT, BOOST_PP_DEC(n)) \
|
||||||
<< ")" \
|
<< ")" \
|
||||||
<< lazy_expectations( this )
|
<< lazy_expectations( this )
|
||||||
#define MOCK_INVOKE(z, n, A) \
|
#define MOCK_INVOKE(n, A) \
|
||||||
{ \
|
{ \
|
||||||
valid_ = false; \
|
valid_ = false; \
|
||||||
for( expectations_cit it = expectations_.begin(); \
|
for( expectations_cit it = expectations_.begin(); \
|
||||||
|
|
@ -212,10 +212,10 @@ namespace mock
|
||||||
|
|
||||||
result_type operator()(
|
result_type operator()(
|
||||||
BOOST_PP_ENUM_BINARY_PARAMS(MOCK_NUM_ARGS, T, t) ) const
|
BOOST_PP_ENUM_BINARY_PARAMS(MOCK_NUM_ARGS, T, t) ) const
|
||||||
MOCK_INVOKE(, MOCK_NUM_ARGS, error_type::abort())
|
MOCK_INVOKE(MOCK_NUM_ARGS, error_type::abort())
|
||||||
|
|
||||||
void test() const
|
void test() const
|
||||||
MOCK_INVOKE(, 0,)
|
MOCK_INVOKE(0,)
|
||||||
|
|
||||||
#undef MOCK_FORMAT
|
#undef MOCK_FORMAT
|
||||||
#undef MOCK_OPERATOR
|
#undef MOCK_OPERATOR
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue