Lines Matching refs:mock
4 with mock objects. To use them, add `#include <gmock/gmock.h>`.
16 Defines a mock method *`method_name`* with arguments `(`*`args...`*`)` and
17 return type *`return_type`* within a mock class.
54 `MOCK_METHOD` must be used in the `public:` section of a mock class definition,
65 code that exercises the mock object.
95 Restricts the expectation to apply only to mock function calls whose arguments
125 Specifies how many times the mock function call is expected.
154 Specifies that the mock function call is expected in a certain sequence.
184 Specifies that the mock function call is expected to occur after one or more
189 The mock function call is expected to occur after all of the given expectations.
225 Specifies the mock function's actual behavior when invoked, for a single
258 Specifies the mock function's actual behavior when invoked, for all subsequent
352 Restricts the specification to only mock function calls whose arguments as a
383 Specifies the default behavior of a matching mock function call.
418 type). For mock functions with a return type of `T`, this default value is
440 Represents a mock object that suppresses warnings on
442 template parameter `T` is any mock class, except for another `NiceMock`,
450 For example, the following code suppresses warnings on the mock `my_mock` of
461 `NiceMock<T>` only works for mock methods defined using the `MOCK_METHOD` macro
462 directly in the definition of class `T`. If a mock method is defined in a base
471 Represents a mock object that generates warnings on
473 template parameter `T` is any mock class, except for another `NiceMock`,
481 For example, the following code generates warnings on the mock `my_mock` of type
498 Represents a mock object that generates test failures on
500 template parameter `T` is any mock class, except for another `NiceMock`,
508 For example, the following code generates a test failure on the mock `my_mock`
519 `StrictMock<T>` only works for mock methods defined using the `MOCK_METHOD`
520 macro directly in the definition of class `T`. If a mock method is defined in a
562 Represents a mock function call expectation as created by
577 Represents a set of mock function call expectations.