DescriptionAdd an ostream operator to Value (based on JSONWriter) so that assertions
involving Value::Equals are much easier to understand. For example,
ListValue list;
DictionaryValue dict;
ASSERT_TRUE(Value::Equals(&list, &dict)) << list << "does not equal\n" << dict;
will now print
Value of: Value::Equals(&list, &dict)
Actual: false
Expected: true
[ ]
does not equal
{
}
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156226
Patch Set 1 #Patch Set 2 : . #
Total comments: 2
Patch Set 3 : remove base:: #
Messages
Total messages: 5 (0 generated)
|