proxygen
testing::gmock_matchers_test::NewEvenMatcherImpl Class Reference
Inheritance diagram for testing::gmock_matchers_test::NewEvenMatcherImpl:
testing::MatcherInterface< T > testing::MatcherInterface< T > testing::MatcherInterface< T > testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface testing::MatcherDescriberInterface

Public Member Functions

virtual bool MatchAndExplain (int x, MatchResultListener *listener) const
 
virtual void DescribeTo (ostream *os) const
 
virtual bool MatchAndExplain (int x, MatchResultListener *listener) const
 
virtual void DescribeTo (ostream *os) const
 
virtual bool MatchAndExplain (int x, MatchResultListener *listener) const
 
virtual void DescribeTo (ostream *os) const
 
- Public Member Functions inherited from testing::MatcherInterface< T >
virtual bool MatchAndExplain (T x, MatchResultListener *listener) const =0
 
virtual bool MatchAndExplain (T x, MatchResultListener *listener) const =0
 
virtual bool MatchAndExplain (T x, MatchResultListener *listener) const =0
 
- Public Member Functions inherited from testing::MatcherDescriberInterface
virtual ~MatcherDescriberInterface ()
 
virtual void DescribeTo (::std::ostream *os) const =0
 
virtual void DescribeNegationTo (::std::ostream *os) const
 
virtual ~MatcherDescriberInterface ()
 
virtual void DescribeTo (::std::ostream *os) const =0
 
virtual void DescribeNegationTo (::std::ostream *os) const
 
virtual ~MatcherDescriberInterface ()
 
virtual void DescribeTo (::std::ostream *os) const =0
 
virtual void DescribeNegationTo (::std::ostream *os) const
 

Detailed Description

Definition at line 280 of file gmock-matchers_test.cc.

Member Function Documentation

virtual void testing::gmock_matchers_test::NewEvenMatcherImpl::DescribeTo ( ostream *  os) const
inlinevirtual

Definition at line 294 of file gmock-matchers_test.cc.

294  {
295  *os << "is an even number";
296  }
virtual bool testing::gmock_matchers_test::NewEvenMatcherImpl::MatchAndExplain ( int  x,
MatchResultListener listener 
) const
inlinevirtual

Definition at line 282 of file gmock-matchers_test.cc.

References testing::MatchResultListener::stream().

282  {
283  const bool match = x % 2 == 0;
284  // Verifies that we can stream to a listener directly.
285  *listener << "value % " << 2;
286  if (listener->stream() != NULL) {
287  // Verifies that we can stream to a listener's underlying stream
288  // too.
289  *listener->stream() << " == " << (x % 2);
290  }
291  return match;
292  }
Definition: InvokeTest.cpp:58
virtual bool testing::gmock_matchers_test::NewEvenMatcherImpl::MatchAndExplain ( int  x,
MatchResultListener listener 
) const
inlinevirtual

Definition at line 282 of file gmock-matchers_test.cc.

References testing::MatchResultListener::stream().

282  {
283  const bool match = x % 2 == 0;
284  // Verifies that we can stream to a listener directly.
285  *listener << "value % " << 2;
286  if (listener->stream() != NULL) {
287  // Verifies that we can stream to a listener's underlying stream
288  // too.
289  *listener->stream() << " == " << (x % 2);
290  }
291  return match;
292  }
Definition: InvokeTest.cpp:58
virtual bool testing::gmock_matchers_test::NewEvenMatcherImpl::MatchAndExplain ( int  x,
MatchResultListener listener 
) const
inlinevirtual

Definition at line 282 of file gmock-matchers_test.cc.

References testing::MatchResultListener::stream().

282  {
283  const bool match = x % 2 == 0;
284  // Verifies that we can stream to a listener directly.
285  *listener << "value % " << 2;
286  if (listener->stream() != NULL) {
287  // Verifies that we can stream to a listener's underlying stream
288  // too.
289  *listener->stream() << " == " << (x % 2);
290  }
291  return match;
292  }
Definition: InvokeTest.cpp:58

The documentation for this class was generated from the following file: