Граф коммитов

14 Коммитов

Автор SHA1 Сообщение Дата
jbudorick 1d6d74dfbc [Android] Fix new pylint errors in build/android/.
BUG=434544

Review URL: https://codereview.chromium.org/727543003

Cr-Original-Commit-Position: refs/heads/master@{#304812}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0f77e966d5fa7d854772e63a64d0ab518c2bd3e8
2014-11-19 15:41:56 +00:00
danduong 5e04c0772a If no device specified, get the first device found
This makes adb_reverse_forwarder.py a little more convenient
to use.

BUG=429859

Review URL: https://codereview.chromium.org/684383004

Cr-Original-Commit-Position: refs/heads/master@{#302548}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a21bde9f055f3ed2cfc36f3022cabad0e44831b0
2014-11-04 02:15:01 +00:00
jbudorick@chromium.org 13b8cb19e8 [Android] Change object types from AndroidCommands to DeviceUtils in build/android/.
BUG=267773

Review URL: https://codereview.chromium.org/221823011

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263055 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-10 19:37:30 +00:00
craigdh@chromium.org 436edf51e9 [android] Relands: Adds constants.GetBuildDirectory() and converts test scripts to use it.
BUG=260494
TEST=None
NOTRY=True

Review URL: https://chromiumcodereview.appspot.com/23494039

git-svn-id: http://src.chromium.org/svn/trunk/src/build@222313 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-09-10 18:29:03 +00:00
johnme@chromium.org 802e2f3b10 Revert 221736 "[android] Adds constants.GetOutDirectory() and co..."
Consistently causing WebKit Android (Nexus4) to fail provision_devices.

> [android] Adds constants.GetOutDirectory() and converts test scripts to use it.
> 
> BUG=260494
> TEST=None
> NOTRY=True
> 
> Review URL: https://chromiumcodereview.appspot.com/22903016

TBR=craigdh@chromium.org

Review URL: https://codereview.chromium.org/23926012

git-svn-id: http://src.chromium.org/svn/trunk/src/build@222008 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-09-09 11:36:03 +00:00
craigdh@chromium.org babb42acc8 [android] Adds constants.GetOutDirectory() and converts test scripts to use it.
BUG=260494
TEST=None
NOTRY=True

Review URL: https://chromiumcodereview.appspot.com/22903016

git-svn-id: http://src.chromium.org/svn/trunk/src/build@221736 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-09-06 18:11:02 +00:00
pliard@chromium.org 5df58990ce Reland r212020: Move Python setup/tear down logic into Forwarder ...
The initial attempt caused flakiness (random deadlocks). It turns out that
testserver.py was inheriting undesirable file descriptors when it was spawned
(including file lock file descriptors). Closing the unnecessary file
descriptors between fork() and exec() solves the problem.

Forwarder used to be a pain to setup/tear down across all the various
harnesses.
This CL should hopefully solve these issues by hiding these
implementation details. The host daemon is now killed once the first time that
the Forwarder class is used and the daemon running on the devices is also
killed the first time a port is forwarded for a specific device.

TBR=bulach@chromium.org
BUG=242846

Review URL: https://codereview.chromium.org/20824008

git-svn-id: http://src.chromium.org/svn/trunk/src/build@215023 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-01 13:45:46 +00:00
pliard@chromium.org 014efa0322 Revert "Reland r212020: Move Python setup/tear down logic into Forwarder ..."
This reverts r212020 which caused some timeouts on the net_unittests every ~15
builds.

Conflicts:
	build/android/pylib/base/test_dispatcher.py
	build/android/pylib/instrumentation/test_runner.py
	chrome/test/chromedriver/run_py_tests.py

TBR=bulach@chromium.org
BUG=262573,242846

Review URL: https://codereview.chromium.org/19844006

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212888 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-22 15:56:17 +00:00
pliard@chromium.org 5f1683c854 Reland r212020: Move Python setup/tear down logic into Forwarder ...
Forwarder used to be a pain to setup/tear down across all the various
harnesses.
This CL should hopefully solve these issues by hiding these
implementation details. The host daemon is now killed once the first time that
the Forwarder class is used and the daemon running on the devices is also
killed the first time a port is forwarded for a specific device.

TBR=bulach@chromium.org
BUG=242846

Review URL: https://codereview.chromium.org/19550004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212582 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-19 13:30:16 +00:00
pliard@chromium.org d54c891907 Revert 212020 "Move Python setup/tear down logic into Forwarder ..."
This causes flakiness on the Android debug tester bot.

> Move Python setup/tear down logic into Forwarder itself.
> 
> Forwarder used to be a pain to setup/tear down across all the various
> harnesses.
> This CL should hopefully solve these issues by hiding these implementation
> details. The host daemon is now killed once the first time that the Forwarder
> class is used and the daemon running on the devices is also killed the first
> time a port is forwarded for a specific device.
> 
> BUG=242846
> R=bulach@chromium.org, frankf@chromium.org
> 
> Review URL: https://codereview.chromium.org/18086004

TBR=pliard@chromium.org

Review URL: https://codereview.chromium.org/19576005

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212054 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-17 15:52:49 +00:00
pliard@chromium.org 3f132b998d Move Python setup/tear down logic into Forwarder itself.
Forwarder used to be a pain to setup/tear down across all the various
harnesses.
This CL should hopefully solve these issues by hiding these implementation
details. The host daemon is now killed once the first time that the Forwarder
class is used and the daemon running on the devices is also killed the first
time a port is forwarded for a specific device.

BUG=242846
R=bulach@chromium.org, frankf@chromium.org

Review URL: https://codereview.chromium.org/18086004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212020 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-17 13:42:57 +00:00
pliard@chromium.org d2e41f8965 Remove unnecessary host parameter in forwarder.
While it is nice to be able to specify the destination host when setting up a
redirection, this functionality is never used.
This cleanup is needed for some upcoming changes in forwarder2.

BUG=242846

Review URL: https://chromiumcodereview.appspot.com/18522003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209756 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-02 19:50:26 +00:00
skyostil@chromium.org e60abb3091 [Android] Fix Android port forwarder command line tool
The port forwarder command line tool was broken as
https://chromiumcodereview.appspot.com/12211070 made Forwarder require a
valid valgrind tool instance to be passed in. Fix the problem by
giving Forwarder a default tool.

NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/12262011

git-svn-id: http://src.chromium.org/svn/trunk/src/build@182239 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-02-13 16:27:11 +00:00
skyostil@chromium.org d86e3175aa [Android] Add a command line tool for reverse port forwarding
This patch adds a command line interface to
build/android/pylib/forwarder.py. It allows an Android device to access
services running on the host machine or elsewhere. This is essentially
the reverse of "adb forward".


Review URL: https://chromiumcodereview.appspot.com/11828051

git-svn-id: http://src.chromium.org/svn/trunk/src/build@176372 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-11 16:37:17 +00:00