class Mock

Defined at line 364 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h

Utilities for manipulating mock objects.

Public Methods

void AllowLeak (const void * mock_obj)

Tells Google Mock to ignore mock_obj when checking for leaked

mock objects.

bool VerifyAndClearExpectations (void * mock_obj)

Verifies and clears all expectations on the given mock object.

If the expectations aren't satisfied, generates one or more

Google Test non-fatal failures and returns false.

bool VerifyAndClear (void * mock_obj)

Verifies all expectations on the given mock object and clears its

default actions and expectations. Returns true if and only if the

verification was successful.

bool IsNaggy (void * mock_obj)

Returns whether the mock was created as a naggy mock (default)

bool IsNice (void * mock_obj)

Returns whether the mock was created as a nice mock

bool IsStrict (void * mock_obj)

Returns whether the mock was created as a strict mock

Friends

template <typename MockClass>
class StrictMockImpl
template <typename MockClass>
class NaggyMockImpl
template <typename MockClass>
class NiceMockImpl
template <typename F>
class FunctionMocker
class UntypedFunctionMockerBase