| 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(¤t_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(¤t_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;
|
|
|
|
|