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

Issue 5572001: Send screenshots back to the client for debugging (Closed)

Created:
10 years ago by Joe
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Send screenshots back to the client for debigging BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=79721

Patch Set 1 : update #

Patch Set 2 : for review #

Total comments: 8

Patch Set 3 : update 3 #

Patch Set 4 : fixed function names and migrated code to new desktop #

Total comments: 1

Patch Set 5 : fixed nit #

Total comments: 11

Patch Set 6 : for review, still need to add a few more tests #

Total comments: 32

Patch Set 7 : fix for comments #

Patch Set 8 : added tests which compare against a reference md5 hash #

Total comments: 40

Patch Set 9 : update for ken's comments #

Total comments: 2

Patch Set 10 : changed PageSnapshotTaker to use JSON interface #

Total comments: 20

Patch Set 11 : fixed kens comments #

Total comments: 4

Patch Set 12 : fixed newlines #

Total comments: 1

Patch Set 13 : deprecated api #

Patch Set 14 : removed functions #

Total comments: 1

Patch Set 15 : fix for merge conflicts #

Patch Set 16 : Added todo #

Patch Set 17 : got an http500 error last time #

Patch Set 18 : need to push again to make sure rietveld didn't screw up #

Unified diffs Side-by-side diffs Delta from patch set Stats (+377 lines, -85 lines) Patch
M chrome/browser/automation/automation_provider_observers.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +34 lines, -18 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/automation_messages_internal.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -1 line 0 comments Download
M chrome/test/automation/automation_json_requests.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/test/automation/automation_json_requests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/test/automation/automation_proxy_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -34 lines 0 comments Download
M chrome/test/automation/tab_proxy.cc View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -4 lines 0 comments Download
M chrome/test/webdriver/automation.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/webdriver/automation.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/test/webdriver/chromedriver_tests.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +51 lines, -1 line 0 comments Download
M chrome/test/webdriver/commands/command.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -3 lines 0 comments Download
M chrome/test/webdriver/commands/command.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/webdriver/commands/create_session.cc View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -1 line 0 comments Download
M chrome/test/webdriver/commands/response.h View 1 2 3 4 5 6 7 8 9 3 chunks +19 lines, -2 lines 0 comments Download
M chrome/test/webdriver/commands/response.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +26 lines, -0 lines 0 comments Download
A chrome/test/webdriver/commands/screenshot_command.h View 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/test/webdriver/commands/screenshot_command.cc View 1 2 3 4 5 6 1 chunk +49 lines, -0 lines 0 comments Download
M chrome/test/webdriver/commands/webdriver_command.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/test/webdriver/server.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +4 lines, -1 line 0 comments Download
M chrome/test/webdriver/session.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +13 lines, -9 lines 0 comments Download
M chrome/test/webdriver/session.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +54 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
John Grabowski
http://codereview.chromium.org/5572001/diff/12001/chrome/test/webdriver/automation.h File chrome/test/webdriver/automation.h (right): http://codereview.chromium.org/5572001/diff/12001/chrome/test/webdriver/automation.h#newcode46 chrome/test/webdriver/automation.h:46: void CaptureEntirePageAsPNG(const FilePath& path, bool* success); Return bool? Presumably ...
9 years, 10 months ago (2011-02-14 22:13:59 UTC) #1
Paweł Hajdan Jr.
Drive-by with testing-related comments. Please fix them and let me do another review before committing. ...
9 years, 10 months ago (2011-02-15 08:54:35 UTC) #2
kkania
http://codereview.chromium.org/5572001/diff/28001/chrome/test/webdriver/commands/response.cc File chrome/test/webdriver/commands/response.cc (right): http://codereview.chromium.org/5572001/diff/28001/chrome/test/webdriver/commands/response.cc#newcode58 chrome/test/webdriver/commands/response.cc:58: const std::string& file, int line) { add a 'const ...
9 years, 10 months ago (2011-02-24 22:05:02 UTC) #3
kkania
my comments were on the second patch. Let me know when you fix and upload ...
9 years, 10 months ago (2011-02-25 23:56:02 UTC) #4
Joe
http://codereview.chromium.org/5572001/diff/28001/chrome/test/webdriver/commands/response.cc File chrome/test/webdriver/commands/response.cc (right): http://codereview.chromium.org/5572001/diff/28001/chrome/test/webdriver/commands/response.cc#newcode58 chrome/test/webdriver/commands/response.cc:58: const std::string& file, int line) { On 2011/02/24 22:05:02, ...
9 years, 9 months ago (2011-03-02 02:21:25 UTC) #5
Joe
the screen commands didn't get uploaded with the patch. I will re-upload the patch again ...
9 years, 9 months ago (2011-03-02 09:34:17 UTC) #6
Paweł Hajdan Jr.
Code I commented in the drive-by LGTM, thanks! http://codereview.chromium.org/5572001/diff/44001/chrome/test/webdriver/session.h File chrome/test/webdriver/session.h (right): http://codereview.chromium.org/5572001/diff/44001/chrome/test/webdriver/session.h#newcode154 chrome/test/webdriver/session.h:154: void ...
9 years, 9 months ago (2011-03-03 14:43:42 UTC) #7
kkania
couple overall questions: 1) I noticed you de-inlined some stuff, which is good. But why ...
9 years, 9 months ago (2011-03-07 18:15:17 UTC) #8
Joe
http://codereview.chromium.org/5572001/diff/45003/chrome/test/webdriver/chromedriver_tests.py File chrome/test/webdriver/chromedriver_tests.py (right): http://codereview.chromium.org/5572001/diff/45003/chrome/test/webdriver/chromedriver_tests.py#newcode133 chrome/test/webdriver/chromedriver_tests.py:133: def testScreenCapture refreshed On 2011/03/07 18:15:17, kkania wrote: > ...
9 years, 9 months ago (2011-03-11 22:12:48 UTC) #9
kkania
http://codereview.chromium.org/5572001/diff/53001/chrome/test/automation/automation_json_requests.cc File chrome/test/automation/automation_json_requests.cc (right): http://codereview.chromium.org/5572001/diff/53001/chrome/test/automation/automation_json_requests.cc#newcode6 chrome/test/automation/automation_json_requests.cc:6: include base/file_path http://codereview.chromium.org/5572001/diff/53001/chrome/test/automation/automation_json_requests.h File chrome/test/automation/automation_json_requests.h (right): http://codereview.chromium.org/5572001/diff/53001/chrome/test/automation/automation_json_requests.h#newcode13 chrome/test/automation/automation_json_requests.h:13: #include ...
9 years, 9 months ago (2011-03-11 23:43:15 UTC) #10
kkania
http://codereview.chromium.org/5572001/diff/56004/chrome/browser/automation/automation_provider_observers.cc File chrome/browser/automation/automation_provider_observers.cc (right): http://codereview.chromium.org/5572001/diff/56004/chrome/browser/automation/automation_provider_observers.cc#newcode1678 chrome/browser/automation/automation_provider_observers.cc:1678: use_json_interface_(use_json_interface){} space before {} http://codereview.chromium.org/5572001/diff/56004/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/5572001/diff/56004/chrome/browser/automation/testing_automation_provider.cc#newcode2054 ...
9 years, 9 months ago (2011-03-16 18:19:10 UTC) #11
Joe
http://codereview.chromium.org/5572001/diff/56004/chrome/browser/automation/automation_provider_observers.cc File chrome/browser/automation/automation_provider_observers.cc (right): http://codereview.chromium.org/5572001/diff/56004/chrome/browser/automation/automation_provider_observers.cc#newcode1678 chrome/browser/automation/automation_provider_observers.cc:1678: use_json_interface_(use_json_interface){} On 2011/03/16 18:19:10, kkania wrote: > space before ...
9 years, 9 months ago (2011-03-17 00:15:25 UTC) #12
kkania
I am almost ready to give approval. However, since we want to patch this into ...
9 years, 9 months ago (2011-03-17 18:35:11 UTC) #13
Joe
http://codereview.chromium.org/5572001/diff/56005/chrome/browser/automation/automation_provider_observers.cc File chrome/browser/automation/automation_provider_observers.cc (right): http://codereview.chromium.org/5572001/diff/56005/chrome/browser/automation/automation_provider_observers.cc#newcode1739 chrome/browser/automation/automation_provider_observers.cc:1739: dict.SetBoolean("result", success); On 2011/03/17 18:35:11, kkania wrote: > change ...
9 years, 9 months ago (2011-03-18 00:33:32 UTC) #14
Paweł Hajdan Jr.
Driving-by again, it seems there are new changes in chrome/browser/automation introduced after my last review. ...
9 years, 9 months ago (2011-03-18 10:51:34 UTC) #15
kkania
http://codereview.chromium.org/5572001/diff/56005/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/5572001/diff/56005/chrome/browser/automation/testing_automation_provider.cc#newcode4986 chrome/browser/automation/testing_automation_provider.cc:4986: AutomationJSONReply(this,reply_message) On 2011/03/18 00:33:32, Joe wrote: > On 2011/03/17 ...
9 years, 9 months ago (2011-03-18 19:18:22 UTC) #16
Joe
With Ken's help I removed the duplication and made some improvements http://codereview.chromium.org/5572001/diff/70002/chrome/browser/automation/automation_provider_observers.cc File chrome/browser/automation/automation_provider_observers.cc (right): ...
9 years, 9 months ago (2011-03-22 20:47:15 UTC) #17
kkania
LGTM; just fix the comments I gave and wait for Pawel http://codereview.chromium.org/5572001/diff/79004/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): ...
9 years, 9 months ago (2011-03-22 21:08:56 UTC) #18
Joe
http://codereview.chromium.org/5572001/diff/79004/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/5572001/diff/79004/chrome/browser/automation/testing_automation_provider.cc#newcode4988 chrome/browser/automation/testing_automation_provider.cc:4988: AutomationJSONReply(this, reply_message).SendSuccess(NULL); On 2011/03/22 21:08:56, kkania wrote: > this ...
9 years, 9 months ago (2011-03-22 22:08:19 UTC) #19
kkania
http://codereview.chromium.org/5572001/diff/75016/chrome/test/webdriver/chromedriver_tests.py File chrome/test/webdriver/chromedriver_tests.py (right): http://codereview.chromium.org/5572001/diff/75016/chrome/test/webdriver/chromedriver_tests.py#newcode38 chrome/test/webdriver/chromedriver_tests.py:38: you forgot to add a newline here http://codereview.chromium.org/5572001/diff/75016/chrome/test/webdriver/chromedriver_tests.py#newcode195 chrome/test/webdriver/chromedriver_tests.py:195: ...
9 years, 9 months ago (2011-03-22 22:14:29 UTC) #20
Joe
http://codereview.chromium.org/5572001/diff/75016/chrome/test/webdriver/chromedriver_tests.py File chrome/test/webdriver/chromedriver_tests.py (right): http://codereview.chromium.org/5572001/diff/75016/chrome/test/webdriver/chromedriver_tests.py#newcode38 chrome/test/webdriver/chromedriver_tests.py:38: sorry about that On 2011/03/22 22:14:29, kkania wrote: > ...
9 years, 9 months ago (2011-03-22 22:39:50 UTC) #21
Paweł Hajdan Jr.
Thank you, just one more cleanup bit to do. http://codereview.chromium.org/5572001/diff/76008/chrome/test/automation/tab_proxy.cc File chrome/test/automation/tab_proxy.cc (left): http://codereview.chromium.org/5572001/diff/76008/chrome/test/automation/tab_proxy.cc#oldcode750 chrome/test/automation/tab_proxy.cc:750: ...
9 years, 9 months ago (2011-03-23 18:01:57 UTC) #22
Joe
marked the IPC message as deprecated and removed the handler On 2011/03/23 18:01:57, Paweł Hajdan ...
9 years, 9 months ago (2011-03-28 18:45:40 UTC) #23
Paweł Hajdan Jr.
9 years, 9 months ago (2011-03-28 19:13:10 UTC) #24
LGTM with a comment, thank you!

http://codereview.chromium.org/5572001/diff/86001/chrome/common/automation_me...
File chrome/common/automation_messages_internal.h (right):

http://codereview.chromium.org/5572001/diff/86001/chrome/common/automation_me...
chrome/common/automation_messages_internal.h:1433: // similar functionality.
nit: Please also add TODO(phajdan.jr) to remove it.

Powered by Google App Engine
This is Rietveld 408576698