template <typename F>

class OnCallSpec

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

This template class implements an ON_CALL spec.

Public Methods

void OnCallSpec<F> (const char * a_file, int a_line, const ArgumentMatcherTuple & matchers)

Constructs an OnCallSpec object from the information inside

the parenthesis of an ON_CALL() statement.

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

OnCallSpec<F> & With (const Matcher<const ArgumentTuple &> & m)

Implements the .With() clause.

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

OnCallSpec<F> & WillByDefault (const Action<F> & action)

Implements the .WillByDefault() clause.

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

bool Matches (const ArgumentTuple & args)

Returns true if and only if the given arguments match the matchers.

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

const Action<F> & GetAction ()

Returns the action specified by the user.

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