src/gb/base/validated_context_test.cc
AssertionResult Equal(const std::vector<ContextConstraint>& a,
                      const std::vector<ContextConstraint>& b) {
  if (a.size() != b.size()) {
    return AssertionFailure()
           << "a.size (" << a.size() << ") != b.size (" << b.size() << ")";
  }
  for (int i = 0; i < static_cast<int>(a.size()); ++i) {
    if (a[i].presence != b[i].presence || a[i].type_key != b[i].type_key ||
        a[i].name != b[i].name) {
      return AssertionFailure()
             << "a[" << i << "] (" << a[i].ToString() << ") != b[" << i << "] ("
             << b[i].ToString() << ")";
    }
  }
  return AssertionSuccess();
}
// Equality operator for EXPECT_EQ support in tests.
Equality operator for EXPECT_EQ support in tests.
Equality operator for EXPECT_EQ support in tests .
AssertionResult Equal(const std::vector<ContextConstraint>& a,
                      const std::vector<ContextConstraint>& b) {
  if (a.size() != b.size()) {
    return AssertionFailure()
           << "a.size (" << a.size() << ") != b.size (" << b.size() << ")";
  }
  for (int i = 0; i < static_cast<int>(a.size()); ++i) {
    if (a[i].presence != b[i].presence || a[i].type_key != b[i].type_key ||
        a[i].name != b[i].name) {
      return AssertionFailure()
             << "a[" << i << "] (" << a[i].ToString() << ") != b[" << i << "] ("
             << b[i].ToString() << ")";
    }
  }
  return AssertionSuccess();
}
AssertionResult Equal ( const std :: vector < ContextConstraint > & a , const std :: vector < ContextConstraint > & b ) { if ( a . size ( ) != b . size ( ) ) { return AssertionFailure ( ) << " " << a . size ( ) << " " << b . size ( ) << " " ; } for ( int i = 0 ; i < static_cast < int > ( a . size ( ) ) ; ++ i ) { if ( a [ i ] . presence != b [ i ] . presence || a [ i ] . type_key != b [ i ] . type_key || a [ i ] . name != b [ i ] . name ) { return AssertionFailure ( ) << " " << i << " " << a [ i ] . ToString ( ) << " " << i << " " << b [ i ] . ToString ( ) << " " ; } } return AssertionSuccess ( ) ; }
Equality operator for EXPECT_EQ support in tests.
Equality operator for EXPECT_EQ support in tests .