40 #ifndef GOOGLEMOCK_INCLUDE_GMOCK_GMOCK_MORE_MATCHERS_H_ 41 #define GOOGLEMOCK_INCLUDE_GMOCK_GMOCK_MORE_MATCHERS_H_ 54 #pragma warning(disable : 4100) 55 #if (_MSC_VER == 1900) 58 #pragma warning(disable : 4800) 70 template <
typename MatcheeContainerType>
72 MatchResultListener* listener)
const {
76 *listener <<
"whose size is " << c.size();
86 void DescribeTo(std::ostream* os)
const { *os <<
"is empty"; }
96 inline PolymorphicMatcher<internal::IsEmptyMatcher>
IsEmpty() {
105 return static_cast<bool>(arg);
112 MATCHER(IsFalse, negation ?
"is true" :
"is false") {
113 return !
static_cast<bool>(arg);
122 #endif // GOOGLEMOCK_INCLUDE_GMOCK_GMOCK_MORE_MATCHERS_H_
GTEST_API_ bool IsTrue(bool condition)
void DescribeTo(std::ostream *os) const
bool MatchAndExplain(const char *s, MatchResultListener *listener) const
void DescribeNegationTo(std::ostream *os) const
PolymorphicMatcher< internal::IsEmptyMatcher > IsEmpty()
MATCHER(IsTrue, negation ? "is false" :"is true")
bool MatchAndExplain(const MatcheeContainerType &c, MatchResultListener *listener) const