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

Unified Diff: chrome/test/pyautolib/pyautolib.h

Issue 2903008: Expose cookie get/set to pyauto (Closed)
Patch Set: Final Created 10 years, 5 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/cookies.py ('k') | chrome/test/pyautolib/pyautolib.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/pyautolib.h
diff --git a/chrome/test/pyautolib/pyautolib.h b/chrome/test/pyautolib/pyautolib.h
index 6c6fc3590f6b3288fd5e29a219740e1639a0b459..e2a35f1891500ed10b9077ba96c8a16cef8a2459 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
« no previous file with comments | « chrome/test/functional/cookies.py ('k') | chrome/test/pyautolib/pyautolib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698