template <typename R, typename... Args>
class TypedExpectation
Defined at line 877 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
Implements an expectation for the given function type.
Public Methods
void TypedExpectation<R (Args...)> (FunctionMocker<F> * owner, const char * a_file, int a_line, const std::string & a_source_text, const ArgumentMatcherTuple & m)
Defined at line 887 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
void ~TypedExpectation<R (Args...)> ()
Defined at line 899 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
TypedExpectation<R (Args...)> & With (const Matcher<const ArgumentTuple &> & m)
Implements the .With() clause.
Defined at line 910 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
TypedExpectation<R (Args...)> & Description (std::string name)
Do not rely on this for correctness.
This is only for making human-readable test output easier to understand.
Defined at line 929 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
TypedExpectation<R (Args...)> & Times (const Cardinality & a_cardinality)
Implements the .Times() clause.
Defined at line 935 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
TypedExpectation<R (Args...)> & Times (int n)
Implements the .Times() clause.
Defined at line 941 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
TypedExpectation<R (Args...)> & InSequence (const Sequence & s)
Implements the .InSequence() clause.
Defined at line 944 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
TypedExpectation<R (Args...)> & InSequence (const Sequence & s1, const Sequence & s2)
Defined at line 954 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
TypedExpectation<R (Args...)> & InSequence (const Sequence & s1, const Sequence & s2, const Sequence & s3)
Defined at line 957 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
TypedExpectation<R (Args...)> & InSequence (const Sequence & s1, const Sequence & s2, const Sequence & s3, const Sequence & s4)
Defined at line 961 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
TypedExpectation<R (Args...)> & InSequence (const Sequence & s1, const Sequence & s2, const Sequence & s3, const Sequence & s4, const Sequence & s5)
Defined at line 965 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
TypedExpectation<R (Args...)> & After (const ExpectationSet & s)
Implements that .After() clause.
Defined at line 972 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
TypedExpectation<R (Args...)> & After (const ExpectationSet & s1, const ExpectationSet & s2)
Defined at line 984 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
TypedExpectation<R (Args...)> & After (const ExpectationSet & s1, const ExpectationSet & s2, const ExpectationSet & s3)
Defined at line 987 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
TypedExpectation<R (Args...)> & After (const ExpectationSet & s1, const ExpectationSet & s2, const ExpectationSet & s3, const ExpectationSet & s4)
Defined at line 991 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
TypedExpectation<R (Args...)> & After (const ExpectationSet & s1, const ExpectationSet & s2, const ExpectationSet & s3, const ExpectationSet & s4, const ExpectationSet & s5)
Defined at line 995 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
TypedExpectation<R (Args...)> & WillOnce (OnceAction<F> once_action)
Preferred, type-safe overload: consume anything that can be directly
converted to a OnceAction, except for Action
<F
> objects themselves.
Defined at line 1003 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
template <int&... ExplicitArgumentBarrier, typename = void>
TypedExpectation<R (Args...)> & WillOnce (Action<F> action)
Fallback overload: accept Action
<F
> objects and those actions that define
`operator Action
<F
>` but not `operator OnceAction
<F
>`.
This is templated in order to cause the overload above to be preferred
when the input is convertible to either type.
Defined at line 1018 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
TypedExpectation<R (Args...)> & WillRepeatedly (const Action<F> & action)
Implements the .WillRepeatedly() clause.
Defined at line 1033 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
TypedExpectation<R (Args...)> & RetiresOnSaturation ()
Implements the .RetiresOnSaturation() clause.
Defined at line 1058 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
const ArgumentMatcherTuple & matchers ()
Returns the matchers for the arguments as specified inside the
EXPECT_CALL() macro.
Defined at line 1073 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
const Matcher<const ArgumentTuple &> & extra_matcher ()
Returns the matcher specified by the .With() clause.
Defined at line 1076 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
const Action<F> & repeated_action ()
Returns the action specified by the .WillRepeatedly() clause.
Defined at line 1081 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
void MaybeDescribeExtraMatcherTo (::std::ostream * os)
If this mock method has an extra matcher (i.e. .With(matcher)),
describes it to the ostream.
Defined at line 1085 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-spec-builders.h
Friends
template <typename Function>
class FunctionMocker