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

Unified Diff: chrome/test/pyautolib/pyauto.py

Issue 10866013: Convert the browsing_data pyauto tests to chrome tests. Remove the ClearBrowsingData automation cod… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix hang on mac 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/test/functional/test_utils.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/pyauto.py
===================================================================
--- chrome/test/pyautolib/pyauto.py (revision 152704)
+++ chrome/test/pyautolib/pyauto.py (working copy)
@@ -3314,28 +3314,6 @@
}
return self._GetResultFromJSONRequest(cmd_dict, windex=windex)
- def ClearBrowsingData(self, to_remove, time_period):
- """Clear the specified browsing data. Implements the features available in
- the "ClearBrowsingData" UI.
-
- Args:
- to_remove: a list of strings indicating which types of browsing data
- should be removed. Strings that can be in the list are:
- HISTORY, DOWNLOADS, COOKIES, PASSWORDS, FORM_DATA, CACHE
- time_period: a string indicating the time period for the removal.
- Possible strings are:
- LAST_HOUR, LAST_DAY, LAST_WEEK, FOUR_WEEKS, EVERYTHING
-
- Raises:
- pyauto_errors.JSONInterfaceError if the automation call returns an error.
- """
- cmd_dict = { # Prepare command for the json interface
- 'command': 'ClearBrowsingData',
- 'to_remove': to_remove,
- 'time_period': time_period
- }
- return self._GetResultFromJSONRequest(cmd_dict)
-
def AddSavedPassword(self, password_dict, windex=0):
"""Adds the given username-password combination to the saved passwords.
« no previous file with comments | « chrome/test/functional/test_utils.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698