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

Issue 2972913002: [Chromedriver] Support long command line on Android (Closed)

Created:
3 years, 5 months ago by johnchen
Modified:
3 years, 5 months ago
Reviewers:
jbudorick
CC:
chromium-reviews, johnchen+watch_chromium.org, cbentzel+watch_chromium.org, net-reviews_chromium.org, Kereliuk
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Chromedriver] Support long command line on Android On Android devices, ChromeDriver used to use shell "echo" command to send Chrome command line to the device. Adb limits the length of the command line that can be sent this way, ranging from less than 1000 characters to about 4000 characters, depending on the Adb version. To allow longer command line to be used, ChromeDriver now uses Adb file transfer protocol to send the command line file to the device. This is the same underlying protocol used by "adb push" command. BUG=727979 Review-Url: https://codereview.chromium.org/2972913002 Cr-Commit-Position: refs/heads/master@{#486815} Committed: https://chromium.googlesource.com/chromium/src/+/4e04992e510213a402ea51649a6e9a45ff1a5f10

Patch Set 1 #

Total comments: 4

Patch Set 2 : Incorporate review feedbacks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -15 lines) Patch
M chrome/test/chromedriver/chrome/adb_impl.cc View 1 2 chunks +21 lines, -14 lines 0 comments Download
M chrome/test/chromedriver/net/adb_client_socket.h View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/test/chromedriver/net/adb_client_socket.cc View 1 3 chunks +137 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
johnchen
jbudorick@: Could you please take a look? This change allows ChromeDriver users to use longer ...
3 years, 5 months ago (2017-07-05 22:20:21 UTC) #2
johnchen
jbudorick@: Could you please take a look at this CL? Thanks.
3 years, 5 months ago (2017-07-10 15:46:33 UTC) #3
jbudorick
Looks pretty good. https://codereview.chromium.org/2972913002/diff/1/chrome/test/chromedriver/chrome/adb_impl.cc File chrome/test/chromedriver/chrome/adb_impl.cc (right): https://codereview.chromium.org/2972913002/diff/1/chrome/test/chromedriver/chrome/adb_impl.cc#newcode146 chrome/test/chromedriver/chrome/adb_impl.cc:146: return Status(kUnknownError, "Failed to set command ...
3 years, 5 months ago (2017-07-13 15:25:30 UTC) #4
johnchen
Thanks for the feedback. I've updated the CL.
3 years, 5 months ago (2017-07-13 18:58:18 UTC) #5
johnchen
jbudorick@: Do you have any further concerns about this CL? Thanks.
3 years, 5 months ago (2017-07-14 17:59:50 UTC) #10
jbudorick
On 2017/07/14 17:59:50, johnchen wrote: > jbudorick@: Do you have any further concerns about this ...
3 years, 5 months ago (2017-07-14 18:08:56 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2972913002/20001
3 years, 5 months ago (2017-07-14 18:16:16 UTC) #13
commit-bot: I haz the power
3 years, 5 months ago (2017-07-14 18:23:36 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/4e04992e510213a402ea51649a6e...

Powered by Google App Engine
This is Rietveld 408576698