mirror of https://github.com/google/googletest.git
Merge 5b3039e827 into 283c17563f
This commit is contained in:
commit
ec6abbe68e
|
|
@ -15,6 +15,8 @@ brevity, but you should do it in your own code.
|
|||
Mock classes are defined as normal classes, using the `MOCK_METHOD` macro to
|
||||
generate mocked methods. The macro gets 3 or 4 parameters:
|
||||
|
||||
Note that a mocked method can have at most 31 arguments.
|
||||
|
||||
```cpp
|
||||
class MyMock {
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ GoogleTest defines the following macros for working with mocks.
|
|||
Defines a mock method *`method_name`* with arguments `(`*`args...`*`)` and
|
||||
return type *`return_type`* within a mock class.
|
||||
|
||||
The number of arguments is limited to 31.
|
||||
|
||||
The parameters of `MOCK_METHOD` mirror the method declaration. The optional
|
||||
fourth parameter *`specs...`* is a comma-separated list of qualifiers. The
|
||||
following qualifiers are accepted:
|
||||
|
|
|
|||
Loading…
Reference in New Issue