DescriptionAdd 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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287689
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287805
Patch Set 1 : #
Total comments: 3
Patch Set 2 : Augment AttackPreferencesOnDisk() #Patch Set 3 : add more tests and solidify framework #Patch Set 4 : merge up to r286900 #Patch Set 5 : tweak for OFFICIAL_BUILDs #
Total comments: 4
Patch Set 6 : Introduce GetProtectionLevelFromTrialGroup() to cleanup constructor #
Total comments: 8
Patch Set 7 : nits #Patch Set 8 : special early return for Chrome OS to temporarily workaround unknown issue #Patch Set 9 : no domain check in browser tests #Patch Set 10 : more chrome os fixes and tweaks #Patch Set 11 : fix unreachable code error in official builds #
Messages
Total messages: 29 (0 generated)
|