Add integration browser tests for settings hardening.
commit589fdd618386f6ee04f7a1fd8b14f6db7e44a18e
authorgab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 6 Aug 2014 05:48:23 +0000 (6 05:48 +0000)
committergab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 6 Aug 2014 05:48:23 +0000 (6 05:48 +0000)
treed1bc3e001d538660a49c9ea013128c77adfa2b42
parente03dc01dbfee786620c21944dc393ce89b8b34c4
Add integration browser tests for settings hardening.

This CL introduces the PrefHashBrowserTestBase fixture which these tests are based on.

This fixture (in conjunction with the new PREF_HASH_BROWSER_TEST macro) provides an easy way to override 3 methods in order to:
 1) Setup Chrome as desired in a PRE_ test.
 2) Attack Preferences while Chrome isn't running.
 3) Relaunch Chrome and verify reaction to attacks.

The fixture+macro also parametrizes every test such that they are ran in every SettingsEnforcement trial group.

A few pieces were resurrected from the old PrefHashBrowserTest used to test unloaded profile seeding prior to http://crrev.com/277209

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287689 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/prefs/chrome_pref_service_factory.cc
chrome/browser/prefs/tracked/pref_hash_browsertest.cc [new file with mode: 0644]
chrome/chrome_tests.gypi