40 #ifndef GMOCK_INCLUDE_GMOCK_MORE_MATCHERS_H_
41 #define GMOCK_INCLUDE_GMOCK_MORE_MATCHERS_H_
50 # pragma warning(push)
51 # pragma warning(disable:4100)
52 #if (_MSC_VER == 1900)
55 # pragma warning(disable:4800)
61 MATCHER(IsEmpty, negation ?
"isn't empty" :
"is empty") {
65 *result_listener <<
"whose size is " << arg.size();
74 return static_cast<bool>(arg);
81 MATCHER(IsFalse, negation ?
"is true" :
"is false") {
82 return !
static_cast<bool>(arg);
92 #endif // GMOCK_INCLUDE_GMOCK_MORE_MATCHERS_H_
GTEST_API_ bool IsTrue(bool condition)
MATCHER(IsEmpty, negation?"isn't empty":"is empty")