template <typename To>

class WhenDynamicCastToMatcherBase

Defined at line 2052 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

Implements the WhenDynamicCastTo

<T

>(m) matcher that matches a pointer or

reference that matches inner_matcher when dynamic_cast

<T

> is applied.

The result of dynamic_cast

<To

> is forwarded to the inner matcher.

If To is a pointer and the cast fails, the inner matcher will receive NULL.

If To is a reference and the cast fails, this matcher returns false

immediately.

Protected Members

const Matcher<To> matcher_

Public Methods

void WhenDynamicCastToMatcherBase<To> (const Matcher<To> & matcher)

Defined at line 2054 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

void DescribeTo (::std::ostream * os)

Defined at line 2057 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

void DescribeNegationTo (::std::ostream * os)

Defined at line 2062 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

Protected Methods

std::string GetToName ()

Defined at line 2070 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h