40#ifndef GOOGLEMOCK_INCLUDE_GMOCK_GMOCK_MORE_MATCHERS_H_
41#define GOOGLEMOCK_INCLUDE_GMOCK_GMOCK_MORE_MATCHERS_H_
53#if defined(_MSC_VER) && (_MSC_VER == 1900)
67 template <
typename MatcheeContainerType>
69 MatchResultListener* listener)
const {
73 *listener <<
"whose size is " << c.size();
83 void DescribeTo(std::ostream* os)
const { *os <<
"is empty"; }
93inline PolymorphicMatcher<internal::IsEmptyMatcher>
IsEmpty() {
101MATCHER(IsTrue, negation ?
"is false" :
"is true") {
102 return static_cast<bool>(arg);
109MATCHER(IsFalse, negation ?
"is true" :
"is false") {
110 return !
static_cast<bool>(arg);
113#if defined(_MSC_VER) && (_MSC_VER == 1900)
Definition gmock-more-matchers.h:64
bool MatchAndExplain(const MatcheeContainerType &c, MatchResultListener *listener) const
Definition gmock-more-matchers.h:68
bool MatchAndExplain(const char *s, MatchResultListener *listener) const
Definition gmock-more-matchers.h:78
void DescribeNegationTo(std::ostream *os) const
Definition gmock-more-matchers.h:85
void DescribeTo(std::ostream *os) const
Definition gmock-more-matchers.h:83
#define MATCHER(name, description)
#define GTEST_DISABLE_MSC_WARNINGS_PUSH_(warnings)
Definition gtest-port.h:360
#define GTEST_DISABLE_MSC_WARNINGS_POP_()
Definition gtest-port.h:361
Definition gmock-actions.h:151
PolymorphicMatcher< internal::IsEmptyMatcher > IsEmpty()
Definition gmock-more-matchers.h:93