Home
last modified time | relevance | path

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

/external/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.cc233 MessageDifferencer differencer; in Equals() local
235 return differencer.Compare(message1, message2); in Equals()
240 MessageDifferencer differencer; in Equivalent() local
241 differencer.set_message_field_comparison(MessageDifferencer::EQUIVALENT); in Equivalent()
243 return differencer.Compare(message1, message2); in Equivalent()
248 MessageDifferencer differencer; in ApproximatelyEquals() local
249 differencer.set_float_comparison(MessageDifferencer::APPROXIMATE); in ApproximatelyEquals()
251 return differencer.Compare(message1, message2); in ApproximatelyEquals()
256 MessageDifferencer differencer; in ApproximatelyEquivalent() local
257 differencer.set_message_field_comparison(MessageDifferencer::EQUIVALENT); in ApproximatelyEquivalent()
[all …]
Dfield_comparator.h157 bool Compare(MessageDifferencer* differencer, const Message& message1,
/external/tensorflow/tensorflow/python/framework/
Dproto_comparators.cc54 tf::protobuf::util::MessageDifferencer differencer; in EqualsGraphDef() local
57 differencer.TreatAsSet(GraphDef::descriptor()->FindFieldByName("node")); in EqualsGraphDef()
58 differencer.TreatAsSet( in EqualsGraphDef()
60 differencer.TreatAsSet( in EqualsGraphDef()
62 differencer.TreatAsSet( in EqualsGraphDef()
66 differencer.set_field_comparator(&comparator); in EqualsGraphDef()
67 return differencer.Compare(graph_def_1, graph_def_2); in EqualsGraphDef()
/external/protobuf/conformance/
Dconformance_test.cc266 MessageDifferencer differencer; in VerifyResponse() local
269 differencer.set_field_comparator(&field_comparator); in VerifyResponse()
271 differencer.ReportDifferencesToString(&differences); in VerifyResponse()
274 check = differencer.Compare(*reference_message, *test_message); in VerifyResponse()