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

Issue 6330012: Cookie commands for the webdriver protocol (Closed)

Created:
9 years, 11 months ago by Joe
Modified:
9 years, 7 months ago
Reviewers:
John Grabowski, kkania
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Cookie commands for the webdriver protocol Implements the following URLs for WebDriver: /session/:sessionId/cookie (GET POST DELETE) /session/:sessionId/cookie/:name (DELETE) BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75029

Patch Set 1 #

Total comments: 29

Patch Set 2 : update #

Total comments: 22

Patch Set 3 : updates #

Total comments: 93

Patch Set 4 : if this uploads i will be impressed #

Patch Set 5 : let's try one more time #

Patch Set 6 : kdsodkoskdoskdokosdksdkso #

Total comments: 28

Patch Set 7 : dsdsdsdjsdsj #

Total comments: 14

Patch Set 8 : please review #

Total comments: 6

Patch Set 9 : minor fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+656 lines, -12 lines) Patch
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/test/webdriver/automation.h View 1 2 3 4 5 6 7 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/test/webdriver/automation.cc View 1 2 3 4 5 6 7 2 chunks +30 lines, -0 lines 0 comments Download
M chrome/test/webdriver/chromedriver_tests.py View 1 2 3 4 5 6 7 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/test/webdriver/commands/command.h View 1 2 3 4 5 6 7 1 chunk +11 lines, -6 lines 0 comments Download
M chrome/test/webdriver/commands/command.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/test/webdriver/commands/cookie_commands.h View 1 2 3 4 5 6 7 1 chunk +77 lines, -0 lines 0 comments Download
A chrome/test/webdriver/commands/cookie_commands.cc View 1 2 3 4 5 6 7 8 1 chunk +175 lines, -0 lines 0 comments Download
M chrome/test/webdriver/commands/find_element_commands.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/webdriver/commands/session_with_id.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/webdriver/commands/webdriver_command.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -1 line 0 comments Download
M chrome/test/webdriver/commands/webdriver_command.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/webdriver/cookie.h View 1 2 3 4 5 6 7 8 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/test/webdriver/cookie.cc View 1 2 3 4 5 6 7 1 chunk +148 lines, -0 lines 0 comments Download
M chrome/test/webdriver/server.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/test/webdriver/session.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -1 line 0 comments Download
M chrome/test/webdriver/session.cc View 1 2 3 4 5 6 7 3 chunks +58 lines, -0 lines 0 comments Download
M chrome/test/webdriver/webdriver_remote_tests.py View 1 2 3 4 5 6 7 3 chunks +37 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
kkania
http://codereview.chromium.org/6330012/diff/1/chrome/test/webdriver/commands/command.cc File chrome/test/webdriver/commands/command.cc (right): http://codereview.chromium.org/6330012/diff/1/chrome/test/webdriver/commands/command.cc#newcode40 chrome/test/webdriver/commands/command.cc:40: bool Command::GetDictionaryParameter(const std::string& key, can we just get rid ...
9 years, 11 months ago (2011-01-28 23:25:59 UTC) #1
Joe
http://codereview.chromium.org/6330012/diff/1/chrome/test/webdriver/commands/command.cc File chrome/test/webdriver/commands/command.cc (right): http://codereview.chromium.org/6330012/diff/1/chrome/test/webdriver/commands/command.cc#newcode40 chrome/test/webdriver/commands/command.cc:40: bool Command::GetDictionaryParameter(const std::string& key, It was like that in ...
9 years, 10 months ago (2011-02-03 10:02:05 UTC) #2
John Grabowski
http://codereview.chromium.org/6330012/diff/10001/chrome/test/webdriver/commands/command.h File chrome/test/webdriver/commands/command.h (right): http://codereview.chromium.org/6330012/diff/10001/chrome/test/webdriver/commands/command.h#newcode78 chrome/test/webdriver/commands/command.h:78: DictionaryValue** out) const; bad indent on this line? http://codereview.chromium.org/6330012/diff/10001/chrome/test/webdriver/commands/cookie_commands.cc ...
9 years, 10 months ago (2011-02-04 02:40:23 UTC) #3
kkania
http://codereview.chromium.org/6330012/diff/1/chrome/test/webdriver/commands/cookie_commands.cc File chrome/test/webdriver/commands/cookie_commands.cc (right): http://codereview.chromium.org/6330012/diff/1/chrome/test/webdriver/commands/cookie_commands.cc#newcode41 chrome/test/webdriver/commands/cookie_commands.cc:41: SET_WEBDRIVER_ERROR(response, "Failed to init Cookie Command", On 2011/02/03 10:02:05, ...
9 years, 10 months ago (2011-02-04 17:04:44 UTC) #4
kkania
looking better, hopefully we can get this done by today http://codereview.chromium.org/6330012/diff/15001/chrome/test/webdriver/automation.cc File chrome/test/webdriver/automation.cc (right): http://codereview.chromium.org/6330012/diff/15001/chrome/test/webdriver/automation.cc#newcode87 ...
9 years, 10 months ago (2011-02-08 18:35:22 UTC) #5
Joe
FYI: You should wait until I send an email for a review since I use ...
9 years, 10 months ago (2011-02-09 06:32:10 UTC) #6
kkania
http://codereview.chromium.org/6330012/diff/31015/chrome/test/webdriver/automation.cc File chrome/test/webdriver/automation.cc (right): http://codereview.chromium.org/6330012/diff/31015/chrome/test/webdriver/automation.cc#newcode88 chrome/test/webdriver/automation.cc:88: bool* success) { the indents in this file are ...
9 years, 10 months ago (2011-02-09 16:53:13 UTC) #7
John Grabowski
http://codereview.chromium.org/6330012/diff/33018/chrome/test/webdriver/automation.cc File chrome/test/webdriver/automation.cc (right): http://codereview.chromium.org/6330012/diff/33018/chrome/test/webdriver/automation.cc#newcode128 chrome/test/webdriver/automation.cc:128: *success = tab_->SetCookie(gurl, cookie); You probably also need a ...
9 years, 10 months ago (2011-02-14 21:59:06 UTC) #8
kkania
a few comments on John's comments http://codereview.chromium.org/6330012/diff/33018/chrome/test/webdriver/automation.h File chrome/test/webdriver/automation.h (right): http://codereview.chromium.org/6330012/diff/33018/chrome/test/webdriver/automation.h#newcode47 chrome/test/webdriver/automation.h:47: void GetCookies(const GURL& ...
9 years, 10 months ago (2011-02-14 22:47:08 UTC) #9
John Grabowski
http://codereview.chromium.org/6330012/diff/33018/chrome/test/webdriver/automation.h File chrome/test/webdriver/automation.h (right): http://codereview.chromium.org/6330012/diff/33018/chrome/test/webdriver/automation.h#newcode47 chrome/test/webdriver/automation.h:47: void GetCookies(const GURL& gurl, std::string* cookies, bool* success); On ...
9 years, 10 months ago (2011-02-14 22:57:09 UTC) #10
Joe
Please review on more time http://codereview.chromium.org/6330012/diff/31015/chrome/test/webdriver/commands/webdriver_command.h File chrome/test/webdriver/commands/webdriver_command.h (right): http://codereview.chromium.org/6330012/diff/31015/chrome/test/webdriver/commands/webdriver_command.h#newcode11 chrome/test/webdriver/commands/webdriver_command.h:11: #include "chrome/test/webdriver/session_manager.h" On 2011/02/09 ...
9 years, 10 months ago (2011-02-15 02:30:48 UTC) #11
kkania
LGTM
9 years, 10 months ago (2011-02-15 03:32:50 UTC) #12
John Grabowski
LGTM if you add the comments suggested here http://codereview.chromium.org/6330012/diff/34057/chrome/test/webdriver/commands/cookie_commands.cc File chrome/test/webdriver/commands/cookie_commands.cc (right): http://codereview.chromium.org/6330012/diff/34057/chrome/test/webdriver/commands/cookie_commands.cc#newcode45 chrome/test/webdriver/commands/cookie_commands.cc:45: Tokenize(cookies, ...
9 years, 10 months ago (2011-02-15 03:39:56 UTC) #13
Joe
9 years, 10 months ago (2011-02-15 21:39:26 UTC) #14
http://codereview.chromium.org/6330012/diff/34057/chrome/test/webdriver/comma...
File chrome/test/webdriver/commands/cookie_commands.cc (right):

http://codereview.chromium.org/6330012/diff/34057/chrome/test/webdriver/comma...
chrome/test/webdriver/commands/cookie_commands.cc:45: Tokenize(cookies, ";",
&tokens);
On 2011/02/15 03:39:56, John Grabowski wrote:
> Would still like a comment explaining why sometimes we tokenize on ; and
> sometimes on :

Done.

http://codereview.chromium.org/6330012/diff/34057/chrome/test/webdriver/cookie.h
File chrome/test/webdriver/cookie.h (right):

http://codereview.chromium.org/6330012/diff/34057/chrome/test/webdriver/cooki...
chrome/test/webdriver/cookie.h:22: // ToJSONString returns a string form of a
JSON object with the required
On 2011/02/15 03:39:56, John Grabowski wrote:
> ToJSONString() returns a ...

Done.

http://codereview.chromium.org/6330012/diff/34057/chrome/test/webdriver/cooki...
chrome/test/webdriver/cookie.h:23: // WebDriver tags.  Example { "name"="foo",
"value"="bar"}
The cookie is valid, it's a name value pair which is the only required arguments
for a cookie

On 2011/02/15 03:39:56, John Grabowski wrote:
> Can you use a valid Cookie as an example?  Or document that these are not the
> same as browser cookies?
>

Powered by Google App Engine
This is Rietveld 408576698