Lines Matching refs:MOCK_METHOD
10 ### MOCK_METHOD {#MOCK_METHOD}
12 `MOCK_METHOD(`*`return_type`*`,`*`method_name`*`, (`*`args...`*`));` \
13 `MOCK_METHOD(`*`return_type`*`,`*`method_name`*`, (`*`args...`*`),
19 The parameters of `MOCK_METHOD` mirror the method declaration. The optional
31 Note that commas in arguments prevent `MOCK_METHOD` from parsing the arguments
39 MOCK_METHOD(std::pair<bool, int>, GetPair, ()); // Error!
40 MOCK_METHOD(bool, CheckMap, (std::map<int, double>, bool)); // Error!
43 MOCK_METHOD((std::pair<bool, int>), GetPair, ());
44 MOCK_METHOD(bool, CheckMap, ((std::map<int, double>), bool));
48 MOCK_METHOD(BoolAndInt, GetPair, ());
50 MOCK_METHOD(bool, CheckMap, (MapIntDouble, bool));
54 `MOCK_METHOD` must be used in the `public:` section of a mock class definition,
461 `NiceMock<T>` only works for mock methods defined using the `MOCK_METHOD` macro
519 `StrictMock<T>` only works for mock methods defined using the `MOCK_METHOD`