Home
last modified time | relevance | path

Searched refs:differencer (Results 1 – 5 of 5) sorted by relevance

/third_party/protobuf/src/google/protobuf/util/
Dmessage_differencer_unittest.cc81 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 …]
Dfield_comparator.cc130 bool DefaultFieldComparator::Compare(MessageDifferencer* differencer, in Compare() argument
134 return differencer->Compare(message1, message2, in Compare()
Dmessage_differencer.cc231 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 …]
Dfield_comparator.h157 bool Compare(MessageDifferencer* differencer, const Message& message1,
/third_party/protobuf/conformance/
Dconformance_test.cc280 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()