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

Unified Diff: chrome/test/webdriver/automation.cc

Issue 6330012: Cookie commands for the webdriver protocol (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: minor fixes Created 9 years, 10 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/webdriver/automation.h ('k') | chrome/test/webdriver/chromedriver_tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/automation.cc
diff --git a/chrome/test/webdriver/automation.cc b/chrome/test/webdriver/automation.cc
index eda6488638561cf566e199b6727494141ab4187e..19236b070452c7058189b9443b3141a6f2b0fa10 100644
--- a/chrome/test/webdriver/automation.cc
+++ b/chrome/test/webdriver/automation.cc
@@ -112,6 +112,11 @@ void Automation::GetURL(std::string* url,
*url = gurl.possibly_invalid_spec();
}
+void Automation::GetGURL(GURL* gurl,
+ bool* success) {
+ *success = tab_->GetCurrentURL(gurl);
+}
+
void Automation::GetTabTitle(std::string* tab_title,
bool* success) {
std::wstring wide_title;
@@ -120,4 +125,29 @@ void Automation::GetTabTitle(std::string* tab_title,
*tab_title = WideToUTF8(wide_title);
}
+void Automation::GetCookies(const GURL& gurl,
+ std::string* cookies,
+ bool* success) {
+ *success = tab_->GetCookies(gurl, cookies);
+}
+
+void Automation::GetCookieByName(const GURL& gurl,
+ const std::string& cookie_name,
+ std::string* cookie,
+ bool* success) {
+ *success = tab_->GetCookieByName(gurl, cookie_name, cookie);
+}
+
+void Automation::DeleteCookie(const GURL& gurl,
+ const std::string& cookie_name,
+ bool* success) {
+ *success = tab_->DeleteCookie(gurl, cookie_name);
+}
+
+void Automation::SetCookie(const GURL& gurl,
+ const std::string& cookie,
+ bool* success) {
+ *success = tab_->SetCookie(gurl, cookie);
+}
+
} // namespace webdriver
« no previous file with comments | « chrome/test/webdriver/automation.h ('k') | chrome/test/webdriver/chromedriver_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698