Electroneum
Loading...
Searching...
No Matches
testing::internal::WhenDynamicCastToMatcher< To > Class Template Reference

#include <gmock-matchers.h>

Inheritance diagram for testing::internal::WhenDynamicCastToMatcher< To >:
Collaboration diagram for testing::internal::WhenDynamicCastToMatcher< To >:

Public Member Functions

 WhenDynamicCastToMatcher (const Matcher< To > &matcher)
template<typename From>
bool MatchAndExplain (From from, MatchResultListener *listener) const
Public Member Functions inherited from testing::internal::WhenDynamicCastToMatcherBase< To >
 WhenDynamicCastToMatcherBase (const Matcher< To > &matcher)
void DescribeTo (::std::ostream *os) const
void DescribeNegationTo (::std::ostream *os) const

Additional Inherited Members

Static Protected Member Functions inherited from testing::internal::WhenDynamicCastToMatcherBase< To >
static string GetToName ()
Protected Attributes inherited from testing::internal::WhenDynamicCastToMatcherBase< To >
const Matcher< To > matcher_

Detailed Description

template<typename To>
class testing::internal::WhenDynamicCastToMatcher< To >

Definition at line 2145 of file gmock-matchers.h.

Constructor & Destructor Documentation

◆ WhenDynamicCastToMatcher()

template<typename To>
testing::internal::WhenDynamicCastToMatcher< To >::WhenDynamicCastToMatcher ( const Matcher< To > & matcher)
inlineexplicit

Definition at line 2147 of file gmock-matchers.h.

Here is the call graph for this function:

Member Function Documentation

◆ MatchAndExplain()

template<typename To>
template<typename From>
bool testing::internal::WhenDynamicCastToMatcher< To >::MatchAndExplain ( From from,
MatchResultListener * listener ) const
inline

Definition at line 2151 of file gmock-matchers.h.

2151 {
2152 // TODO(sbenza): Add more detail on failures. ie did the dyn_cast fail?
2153 To to = dynamic_cast<To>(from);
2154 return MatchPrintAndExplain(to, this->matcher_, listener);
2155 }
bool MatchPrintAndExplain(Value &value, const Matcher< T > &matcher, MatchResultListener *listener)
Here is the call graph for this function:

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h