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

Issue 10534163: First pass at refactoring pyautolib in preparation for removing proxy dependencies. (Closed)

Created:
8 years, 6 months ago by craigdh
Modified:
8 years, 5 months ago
Reviewers:
kkania, Nirnimesh
CC:
chromium-reviews, Nirnimesh, kkania, anantha, robertshield, dyu1, dennis_jeffrey
Visibility:
Public.

Description

First pass at refactoring pyautolib and TestingAutomationProvider in preparation for removing proxy dependencies. This breaks IPC backwards compatibility. BUG=132789, 135059 TEST=functional/apptest.py, functional/browser.py, functional/navigation.py

Patch Set 1 #

Total comments: 12

Patch Set 2 : Applied Nirnimesh's suggestions. #

Total comments: 22

Patch Set 3 : Addressed comments. #

Total comments: 2

Patch Set 4 : Switched AutomationMsg_SendJSONRequest to use a browser index, now only browser_proxy uses browser … #

Total comments: 2

Patch Set 5 : Fix comments. #

Patch Set 6 : rebase #

Patch Set 7 : Previous commit was reverted. Changed IPCs to be backwards compatible with old chrome binaries. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+359 lines, -261 lines) Patch
M chrome/browser/automation/testing_automation_provider.h View 1 2 3 4 5 3 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 2 chunks +261 lines, -227 lines 0 comments Download
M chrome/common/automation_messages_internal.h View 1 2 3 4 5 6 2 chunks +9 lines, -1 line 0 comments Download
M chrome/test/automation/automation_json_requests.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/automation/browser_proxy.cc View 1 2 3 1 chunk +6 lines, -5 lines 0 comments Download
M chrome/test/functional/test_pyauto.py View 1 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/test/pyautolib/pyautolib.h View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/test/pyautolib/pyautolib.cc View 1 2 3 4 5 6 2 chunks +44 lines, -25 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
craigdh
8 years, 6 months ago (2012-06-14 18:23:57 UTC) #1
Nirnimesh
http://codereview.chromium.org/10534163/diff/1/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/10534163/diff/1/chrome/browser/automation/testing_automation_provider.cc#newcode1635 chrome/browser/automation/testing_automation_provider.cc:1635: void TestingAutomationProvider::BuildJSONHandlerMaps( The whole handler map gets initialized for ...
8 years, 6 months ago (2012-06-14 22:16:41 UTC) #2
craigdh
https://chromiumcodereview.appspot.com/10534163/diff/1/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): https://chromiumcodereview.appspot.com/10534163/diff/1/chrome/browser/automation/testing_automation_provider.cc#newcode1635 chrome/browser/automation/testing_automation_provider.cc:1635: void TestingAutomationProvider::BuildJSONHandlerMaps( On 2012/06/14 22:16:42, Nirnimesh wrote: > The ...
8 years, 6 months ago (2012-06-15 19:24:52 UTC) #3
Nirnimesh
LGTM. Thanks for writing the test. https://chromiumcodereview.appspot.com/10534163/diff/4001/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): https://chromiumcodereview.appspot.com/10534163/diff/4001/chrome/browser/automation/testing_automation_provider.cc#newcode2047 chrome/browser/automation/testing_automation_provider.cc:2047: if (!browser && ...
8 years, 6 months ago (2012-06-15 19:52:49 UTC) #4
kkania
http://codereview.chromium.org/10534163/diff/4001/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/10534163/diff/4001/chrome/browser/automation/testing_automation_provider.cc#newcode2017 chrome/browser/automation/testing_automation_provider.cc:2017: DictionaryValue* TestingAutomationProvider::ParseJSONRequestCommand( i think it would be preferable to ...
8 years, 6 months ago (2012-06-18 16:30:33 UTC) #5
craigdh
https://chromiumcodereview.appspot.com/10534163/diff/4001/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): https://chromiumcodereview.appspot.com/10534163/diff/4001/chrome/browser/automation/testing_automation_provider.cc#newcode2017 chrome/browser/automation/testing_automation_provider.cc:2017: DictionaryValue* TestingAutomationProvider::ParseJSONRequestCommand( On 2012/06/18 16:30:33, kkania wrote: > i ...
8 years, 6 months ago (2012-06-19 00:19:34 UTC) #6
kkania
http://codereview.chromium.org/10534163/diff/4001/chrome/common/automation_messages_internal.h File chrome/common/automation_messages_internal.h (right): http://codereview.chromium.org/10534163/diff/4001/chrome/common/automation_messages_internal.h#newcode955 chrome/common/automation_messages_internal.h:955: IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_SendJSONRequestWithBrowserIndex, On 2012/06/19 00:19:35, craigdh wrote: > On 2012/06/18 ...
8 years, 6 months ago (2012-06-19 16:20:11 UTC) #7
craigdh
http://codereview.chromium.org/10534163/diff/4001/chrome/common/automation_messages_internal.h File chrome/common/automation_messages_internal.h (right): http://codereview.chromium.org/10534163/diff/4001/chrome/common/automation_messages_internal.h#newcode955 chrome/common/automation_messages_internal.h:955: IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_SendJSONRequestWithBrowserIndex, On 2012/06/19 16:20:12, kkania wrote: > On 2012/06/19 ...
8 years, 6 months ago (2012-06-19 23:28:52 UTC) #8
kkania
lgtm thanks http://codereview.chromium.org/10534163/diff/17001/chrome/common/automation_messages_internal.h File chrome/common/automation_messages_internal.h (right): http://codereview.chromium.org/10534163/diff/17001/chrome/common/automation_messages_internal.h#newcode956 chrome/common/automation_messages_internal.h:956: int /* window_index */, You need to ...
8 years, 6 months ago (2012-06-20 00:19:45 UTC) #9
craigdh
http://codereview.chromium.org/10534163/diff/17001/chrome/common/automation_messages_internal.h File chrome/common/automation_messages_internal.h (right): http://codereview.chromium.org/10534163/diff/17001/chrome/common/automation_messages_internal.h#newcode956 chrome/common/automation_messages_internal.h:956: int /* window_index */, On 2012/06/20 00:19:45, kkania wrote: ...
8 years, 6 months ago (2012-06-20 00:33:16 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/craigdh@chromium.org/10534163/22001
8 years, 5 months ago (2012-06-27 22:11:58 UTC) #11
commit-bot: I haz the power
Change committed as 144610
8 years, 5 months ago (2012-06-27 23:48:25 UTC) #12
craigdh
Please take another look. Changed the IPCs to be backwards compatible with old chrome binaries ...
8 years, 5 months ago (2012-06-29 19:13:41 UTC) #13
kkania
8 years, 5 months ago (2012-07-02 17:57:00 UTC) #14
i'm not sure it's recommended practice to re-use the same issue for multiple
CLs. I've already taken a look and it lgtm. Just create a new issue and I'll
approve it.

Powered by Google App Engine
This is Rietveld 408576698