summaryrefslogtreecommitdiffstats
path: root/chrome/test/pyautolib/pyautolib.h
diff options
context:
space:
mode:
authoralyssad@chromium.org <alyssad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-15 20:36:41 +0000
committeralyssad@chromium.org <alyssad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-15 20:36:41 +0000
commit731b4677ab26acf1f6813f5320ef0bec38d325b6 (patch)
tree789ec6c8bb9d2e618a94cdd7fa299b6bf39ba7c6 /chrome/test/pyautolib/pyautolib.h
parentb5e5774975c5291cff7dc3df1c2f482d2a10b389 (diff)
downloadchromium_src-731b4677ab26acf1f6813f5320ef0bec38d325b6.zip
chromium_src-731b4677ab26acf1f6813f5320ef0bec38d325b6.tar.gz
chromium_src-731b4677ab26acf1f6813f5320ef0bec38d325b6.tar.bz2
Expose cookie get/set to pyauto
Review URL: http://codereview.chromium.org/2903008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52522 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/pyautolib/pyautolib.h')
-rw-r--r--chrome/test/pyautolib/pyautolib.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/test/pyautolib/pyautolib.h b/chrome/test/pyautolib/pyautolib.h
index 6c6fc35..e2a35f1 100644
--- a/chrome/test/pyautolib/pyautolib.h
+++ b/chrome/test/pyautolib/pyautolib.h
@@ -150,6 +150,13 @@ class PyUITestBase : public UITestBase {
// Resets to the default theme. Returns true on success.
bool ResetToDefaultTheme();
+ // Sets a cookie value for a url. Returns true on success.
+ bool SetCookie(const GURL& cookie_url, const std::string& value,
+ int window_index=0, int tab_index=0);
+ // Gets a cookie value for the given url.
+ std::string GetCookie(const GURL& cookie_url, int window_index=0,
+ int tab_index=0);
+
private:
// Enables PostTask to main thread.
// Should be shared across multiple instances of PyUITestBase so that this