Searched refs:differencer (Results 1 – 5 of 5) sorted by relevance
/third_party/protobuf/src/google/protobuf/util/ |
D | message_differencer_unittest.cc | 81 void ExpectEqualsWithDifferencer(util::MessageDifferencer* differencer, in ExpectEqualsWithDifferencer() argument 83 differencer->set_scope(util::MessageDifferencer::FULL); in ExpectEqualsWithDifferencer() 84 EXPECT_TRUE(differencer->Compare(msg1, msg2)); in ExpectEqualsWithDifferencer() 86 differencer->set_scope(util::MessageDifferencer::PARTIAL); in ExpectEqualsWithDifferencer() 87 EXPECT_TRUE(differencer->Compare(msg1, msg2)); in ExpectEqualsWithDifferencer() 131 util::MessageDifferencer differencer; in TEST() local 136 differencer.TreatAsSet(item1->GetDescriptor()->FindFieldByName("ra")); in TEST() 137 differencer.TreatAsSet(item2->GetDescriptor()->FindFieldByName("ra")); in TEST() 142 EXPECT_TRUE(differencer.Compare(msg1, msg2)); in TEST() 144 EXPECT_FALSE(differencer.Compare(msg1, msg2)); in TEST() [all …]
|
D | field_comparator.cc | 130 bool DefaultFieldComparator::Compare(MessageDifferencer* differencer, in Compare() argument 134 return differencer->Compare(message1, message2, in Compare()
|
D | message_differencer.cc | 231 MessageDifferencer differencer; in Equals() local 233 return differencer.Compare(message1, message2); in Equals() 238 MessageDifferencer differencer; in Equivalent() local 239 differencer.set_message_field_comparison(MessageDifferencer::EQUIVALENT); in Equivalent() 241 return differencer.Compare(message1, message2); in Equivalent() 246 MessageDifferencer differencer; in ApproximatelyEquals() local 247 differencer.set_float_comparison(MessageDifferencer::APPROXIMATE); in ApproximatelyEquals() 249 return differencer.Compare(message1, message2); in ApproximatelyEquals() 254 MessageDifferencer differencer; in ApproximatelyEquivalent() local 255 differencer.set_message_field_comparison(MessageDifferencer::EQUIVALENT); in ApproximatelyEquivalent() [all …]
|
D | field_comparator.h | 157 bool Compare(MessageDifferencer* differencer, const Message& message1,
|
/third_party/protobuf/conformance/ |
D | conformance_test.cc | 280 MessageDifferencer differencer; in VerifyResponse() local 283 differencer.set_field_comparator(&field_comparator); in VerifyResponse() 285 differencer.ReportDifferencesToString(&differences); in VerifyResponse() 296 check = differencer.Compare(*reference_message, *test_message); in VerifyResponse()
|