Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6449)

Unified Diff: chrome/test/functional/policy.py

Issue 10873082: Converted policy.PolicyTest.ClearSiteDataOnExit pyauto test to a browser_test. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: . Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | content/public/test/browser_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/policy.py
diff --git a/chrome/test/functional/policy.py b/chrome/test/functional/policy.py
index 559486d2366eba6065afcfb5cda3ed353b30ac03..e7c6cd2a335ac62ca74d2f4e3b4dc66da0402148 100755
--- a/chrome/test/functional/policy.py
+++ b/chrome/test/functional/policy.py
@@ -628,32 +628,6 @@ class PolicyTest(policy_base.PolicyTestBase):
expect_retval=True),
msg='The force install extension was never installed.')
- def testClearSiteDataOnExit(self):
- """Verify the ClearSiteDataOnExit policy is taking effect.
-
- Install a cookie and make sure the cookie gets removed on browser restart
- when the policy is set.
- """
- cookie_url = 'http://example.com'
- cookie_val = 'ponies=unicorns'
- self.SetCookie(pyauto.GURL(cookie_url),
- cookie_val + ';expires=Wed Jan 01 3000 00:00:00 GMT')
-
- # Cookie should be kept over restarts.
- self.RestartBrowser(clear_profile=False)
- self.assertEqual(
- cookie_val, self.GetCookie(pyauto.GURL(cookie_url)),
- msg='Cookie on ' + cookie_url + ' does not match ' + cookie_val + '.');
-
- # With the policy set, the cookie should be gone after a restart.
- self.SetUserPolicy({
- 'ClearSiteDataOnExit': True
- })
- self.RestartBrowser(clear_profile=False)
- self.assertFalse(
- self.GetCookie(pyauto.GURL(cookie_url)),
- msg='Cookie present on ' + cookie_url + '.');
-
if __name__ == '__main__':
pyauto_functional.Main()
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | content/public/test/browser_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698