mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Tweaked documentation
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@769 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
96f5d1959a
commit
88451b7c02
2 changed files with 3 additions and 3 deletions
|
|
@ -96,7 +96,7 @@ class base
|
|||
|
||||
struct name : base, mock::object // equivalent to using MOCK_BASE_CLASS
|
||||
{
|
||||
typedef base base_type; // this is required for MOCK_METHOD to work when not using MOCK_BASE_CLASS
|
||||
typedef base base_type; // this is required for the shortest form of MOCK_METHOD to work when not using MOCK_BASE_CLASS
|
||||
};
|
||||
//]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,6 +42,8 @@ Synopsis :
|
|||
MOCK_CLASS( name ) // defines a class
|
||||
MOCK_BASE_CLASS( name, base ) // defines a class deriving from a base class
|
||||
|
||||
The preferred form for defining a mock class is with using MOCK_CLASS and MOCK_BASE_CLASS, however using a regular struct or class is also perfectly fine.
|
||||
|
||||
Example :
|
||||
|
||||
[class_example_1]
|
||||
|
|
@ -58,8 +60,6 @@ Example :
|
|||
|
||||
[class_example_4]
|
||||
|
||||
The preferred form for defining a mock class is with using MOCK_CLASS and MOCK_BASE_CLASS, however equivalent alternatives exist without the macros.
|
||||
|
||||
Example :
|
||||
|
||||
[class_example_5]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue