proxygen
testing::gmock_matchers_test::IsHalfOfMatcher Class Reference

Public Member Functions

template<typename T1 , typename T2 >
bool MatchAndExplain (const tuple< T1, T2 > &a_pair, MatchResultListener *listener) const
 
void DescribeTo (ostream *os) const
 
void DescribeNegationTo (ostream *os) const
 
template<typename T1 , typename T2 >
bool MatchAndExplain (const tuple< T1, T2 > &a_pair, MatchResultListener *listener) const
 
void DescribeTo (ostream *os) const
 
void DescribeNegationTo (ostream *os) const
 
template<typename T1 , typename T2 >
bool MatchAndExplain (const tuple< T1, T2 > &a_pair, MatchResultListener *listener) const
 
void DescribeTo (ostream *os) const
 
void DescribeNegationTo (ostream *os) const
 

Detailed Description

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

Member Function Documentation

void testing::gmock_matchers_test::IsHalfOfMatcher::DescribeNegationTo ( ostream *  os) const
inline

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

5428  {
5429  *os << "are a pair where the first isn't half of the second";
5430  }
void testing::gmock_matchers_test::IsHalfOfMatcher::DescribeNegationTo ( ostream *  os) const
inline
void testing::gmock_matchers_test::IsHalfOfMatcher::DescribeNegationTo ( ostream *  os) const
inline
void testing::gmock_matchers_test::IsHalfOfMatcher::DescribeTo ( ostream *  os) const
inline

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

5424  {
5425  *os << "are a pair where the first is half of the second";
5426  }
void testing::gmock_matchers_test::IsHalfOfMatcher::DescribeTo ( ostream *  os) const
inline

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

5424  {
5425  *os << "are a pair where the first is half of the second";
5426  }
void testing::gmock_matchers_test::IsHalfOfMatcher::DescribeTo ( ostream *  os) const
inline

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

5424  {
5425  *os << "are a pair where the first is half of the second";
5426  }
template<typename T1 , typename T2 >
bool testing::gmock_matchers_test::IsHalfOfMatcher::MatchAndExplain ( const tuple< T1, T2 > &  a_pair,
MatchResultListener listener 
) const
inline

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

5414  {
5415  if (get<0>(a_pair) == get<1>(a_pair)/2) {
5416  *listener << "where the second is " << get<1>(a_pair);
5417  return true;
5418  } else {
5419  *listener << "where the second/2 is " << get<1>(a_pair)/2;
5420  return false;
5421  }
5422  }
template<typename T1 , typename T2 >
bool testing::gmock_matchers_test::IsHalfOfMatcher::MatchAndExplain ( const tuple< T1, T2 > &  a_pair,
MatchResultListener listener 
) const
inline

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

5414  {
5415  if (get<0>(a_pair) == get<1>(a_pair)/2) {
5416  *listener << "where the second is " << get<1>(a_pair);
5417  return true;
5418  } else {
5419  *listener << "where the second/2 is " << get<1>(a_pair)/2;
5420  return false;
5421  }
5422  }
template<typename T1 , typename T2 >
bool testing::gmock_matchers_test::IsHalfOfMatcher::MatchAndExplain ( const tuple< T1, T2 > &  a_pair,
MatchResultListener listener 
) const
inline

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

5414  {
5415  if (get<0>(a_pair) == get<1>(a_pair)/2) {
5416  *listener << "where the second is " << get<1>(a_pair);
5417  return true;
5418  } else {
5419  *listener << "where the second/2 is " << get<1>(a_pair)/2;
5420  return false;
5421  }
5422  }

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