DescriptionEnsure no changes to the JSONSerializer or PrefHashCalculator ever end up producing different hashes for all existing Value::Type.
The current JSON serialization used "appears" to be standard and future-proof (i.e., doesn't use pretty_print or anything silly).
However, the hashing mechanism must be strong in the face of any potential future logic changes to either JSONWriter, JSONStringValueSerializer, PrefHashCalculator. This test protects against that.
As highlighted in code comments these test hashes must never be altered to satisfy a code logic change or PrefHash* breaks.
Kept existing test hashes for list/dict values and expanded the test to all other values.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245576
Patch Set 1 : #
Total comments: 4
Patch Set 2 : review:bauerb #Messages
Total messages: 5 (0 generated)
|