Updated documentation

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@606 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2013-03-08 08:01:34 +00:00
parent 5e3e0e8b8b
commit a7cdc82a59
2 changed files with 15 additions and 0 deletions

View file

@ -6,6 +6,7 @@ Not yet released
* Added variadic macro support for MOCK_FUNCTION and the MOCK_METHOD family
* Added variadic macro support for MOCK_BASE_CLASS and MOCK_FUNCTOR
* Added round parenthesis support for signatures for MOCK_FUNCTION, MOCK_FUNCTOR and the MOCK_METHOD family
* Added MOCK_CONVERSION_OPERATOR_TPL, MOCK_CONST_CONVERSION_OPERATOR_TPL and MOCK_NON_CONST_CONVERSION_OPERATOR_TPL
[endsect]

View file

@ -313,6 +313,10 @@ Synopsis :
MOCK_CONST_CONVERSION_OPERATOR( type, identifier )
MOCK_NON_CONST_CONVERSION_OPERATOR( type, identifier )
MOCK_CONVERSION_OPERATOR_TPL( type, identifier ) // must be used if the signature uses a template parameter of the class
MOCK_CONST_CONVERSION_OPERATOR_TPL( type, identifier ) // must be used if the signature uses a template parameter of the class
MOCK_NON_CONST_CONVERSION_OPERATOR_TPL( type, identifier ) // must be used if the signature uses a template parameter of the class
Example :
MOCK_CLASS( mock_class )
@ -321,6 +325,16 @@ Example :
MOCK_CONST_CONVERSION_OPERATOR( const std::string&, conversion_to_string )
};
Example :
template< typename T >
MOCK_CLASS( mock_class )
{
MOCK_CONVERSION_OPERATOR_TPL( T, conversion_to_T ) // the _TPL variants must be used if the signature includes a template parameter of the class
MOCK_CONST_CONVERSION_OPERATOR( const std::string&, const_conversion_to_string )
MOCK_NON_CONST_CONVERSION_OPERATOR( const std::string&, const_conversion_to_string )
};
[endsect]
[section Functor]