template <typename InnerMatcher>
class PointerMatcher
Defined at line 1991 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
Implements the Pointer(m) matcher
Implements the Pointer(m) matcher for matching a pointer that matches matcher
m. The pointer can be either raw or smart, and will match `m` against the
raw pointer.
Public Methods
void PointerMatcher<InnerMatcher> (const InnerMatcher & matcher)
Defined at line 1993 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
template <typename PointerType>
Matcher<PointerType> operator testing::Matcher<type-parameter-1-0> ()
This type conversion operator template allows Pointer(m) to be
used as a matcher for any pointer type whose pointer type is
compatible with the inner matcher, where type PointerType can be
either a raw pointer or a smart pointer.
The reason we do this instead of relying on
MakePolymorphicMatcher() is that the latter is not flexible
enough for implementing the DescribeTo() method of Pointer().
Defined at line 2004 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h