DescriptionAdd a base::ParseJson() function to help tests construct Values.
This is very similar to base::JSONReader::Read() except that it allows
trailing commas and EXPECT-fails with a good message when the json is
malformed.
I migrated two tests to use this as a demonstration that it's widely
useful and makes things more readable.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173540
Patch Set 1 #
Total comments: 5
Patch Set 2 : Move ParseJson into base::test #
Total comments: 4
Messages
Total messages: 14 (0 generated)
|