Definition at line 161 of file gmock-matchers_test.cc.
◆ GreaterThanMatcher()
testing::gmock_matchers_test::GreaterThanMatcher::GreaterThanMatcher |
( |
int | rhs | ) |
|
|
inlineexplicit |
◆ DescribeTo()
virtual void testing::gmock_matchers_test::GreaterThanMatcher::DescribeTo |
( |
ostream * | os | ) |
const |
|
inlinevirtual |
◆ MatchAndExplain()
virtual bool testing::gmock_matchers_test::GreaterThanMatcher::MatchAndExplain |
( |
int | lhs, |
|
|
MatchResultListener * | listener ) const |
|
inlinevirtual |
Definition at line 169 of file gmock-matchers_test.cc.
170 {
171 const int diff = lhs - rhs_;
173 *listener <<
"which is " <<
diff <<
" more than " << rhs_;
174 }
else if (
diff == 0) {
175 *listener << "which is the same as " << rhs_;
176 } else {
177 *listener <<
"which is " << -
diff <<
" less than " << rhs_;
178 }
179
180 return lhs > rhs_;
181 }
void diff(const std::string &a, const std::string &b)
The documentation for this class was generated from the following file: