Add test for reading v2 golden PrefixSet file.
commitb173fba9edc71058028b0d6e7f6903452fea2f90
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 18 Apr 2014 00:31:03 +0000 (18 00:31 +0000)
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 18 Apr 2014 00:31:03 +0000 (18 00:31 +0000)
tree7445fa3a82d533a7b2ec2ea3b011df5c07e3b854
parent526119d986e2c074568b97be4de4f53efdb2b196
Add test for reading v2 golden PrefixSet file.

Previous version changes used manually constructed files.  Put in place
infrastructure to use a golden file, which should be more robust to future
version changes.

Since |shared_prefixes_| is randomly generated, PrefixSetRef
persists the version used in generating the golden file.  Later
code can use ReadReferencePrefixes() as source material for
generating future golden files.

BUG=172527

Review URL: https://codereview.chromium.org/237673011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264687 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/safe_browsing/prefix_set_unittest.cc
chrome/test/data/SafeBrowsing/PrefixSetRef [new file with mode: 0644]
chrome/test/data/SafeBrowsing/PrefixSetVersion2 [new file with mode: 0644]