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

Unified Diff: chrome/test/webdriver/commands/cookie_commands.cc

Issue 6532008: Fix chromium-style compile error that got in the tree since yesterday. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for Feb 17th 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/commands/cookie_commands.h ('k') | chrome/test/webdriver/cookie.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/commands/cookie_commands.cc
diff --git a/chrome/test/webdriver/commands/cookie_commands.cc b/chrome/test/webdriver/commands/cookie_commands.cc
index 8021fa078658daf906dc5ce750c1c3917236f42f..04b96376169e4548165e00ea80e21e41a369c627 100644
--- a/chrome/test/webdriver/commands/cookie_commands.cc
+++ b/chrome/test/webdriver/commands/cookie_commands.cc
@@ -17,6 +17,12 @@
namespace webdriver {
+CookieCommand::CookieCommand(const std::vector<std::string>& path_segments,
+ const DictionaryValue* const parameters)
+ : WebDriverCommand(path_segments, parameters) {}
+
+CookieCommand::~CookieCommand() {}
+
bool CookieCommand::Init(Response* const response) {
if (WebDriverCommand::Init(response)) {
if (session_->GetURL(&current_url_)) {
@@ -30,6 +36,18 @@ bool CookieCommand::Init(Response* const response) {
return false;
}
+bool CookieCommand::DoesDelete() {
+ return true;
+}
+
+bool CookieCommand::DoesGet() {
+ return true;
+}
+
+bool CookieCommand::DoesPost() {
+ return true;
+}
+
void CookieCommand::ExecuteGet(Response* const response) {
// TODO(JMikhail): Add GetJSONCookies to automation proxy since
// GetCookies does not return the necessary information
@@ -125,6 +143,13 @@ void CookieCommand::ExecuteDelete(Response* const response) {
response->set_status(kSuccess);
}
+NamedCookieCommand::NamedCookieCommand(
+ const std::vector<std::string>& path_segments,
+ const DictionaryValue* const parameters)
+ : WebDriverCommand(path_segments, parameters) {}
+
+NamedCookieCommand::~NamedCookieCommand() {}
+
bool NamedCookieCommand::Init(Response* const response) {
if (WebDriverCommand::Init(response)) {
if (!session_->GetURL(&current_url_)) {
@@ -148,6 +173,14 @@ bool NamedCookieCommand::Init(Response* const response) {
return false;
}
+bool NamedCookieCommand::DoesDelete() {
+ return true;
+}
+
+bool NamedCookieCommand::DoesGet() {
+ return true;
+}
+
void NamedCookieCommand::ExecuteGet(Response* const response) {
std::string cookie;
« no previous file with comments | « chrome/test/webdriver/commands/cookie_commands.h ('k') | chrome/test/webdriver/cookie.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698