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

1359 Коммитов

Автор SHA1 Сообщение Дата
gkanwar@chromium.org 28fe69e826 Fixes exit code on invalid command to test_runner.py
NOTRY=True
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@216523 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-09 01:08:52 +00:00
gkanwar@chromium.org 7b625b79ab [Andriod] Fixes monkey command line
Adds example, usage, and changes default activity name to use the
ContentShell activity.

NOTRY=True
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@216501 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-09 00:07:12 +00:00
frankf@chromium.org 851530b32d [Android] Move content_browsertests to main waterfall/trybots.
It's passing consistently on android_fyi_dbg trybots and on FYI waterfall bots running ICS.

BUG=270144
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@216442 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-08 20:32:40 +00:00
gkanwar@chromium.org 40a653819f Converts monkey test to its own test type
NOTRY=True
BUG=223650, 263479

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@216343 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-08 01:08:14 +00:00
gkanwar@chromium.org 967be3def9 Removes unused and deprecated flags in test_runner.py
Flags:
* --profiler
* --install_apk (-I)
* --disable_assertions

NOTRY=True
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@216338 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-08 00:59:01 +00:00
craigdh@chromium.org 266cfb727a [android] Push only updated files in PushIfNeeded when few files have changed.
BUG=263857
TEST=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@216208 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-07 16:45:37 +00:00
bulach@chromium.org 4a8abc7e6f Android: adds a link to file bugs in device status check.
This will simplify both the sheriff side when detecting and filing such bugs
and also the infrastructure side when triaging such bugs.
While at it, remove obsolete link (404).

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@216171 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-07 13:02:52 +00:00
bulach@chromium.org bc34c55461 Enables (temporarily) adb trace for sharded perf tests.
This may help track down some issues with adb reliability:
- sharder: sets the env var that will be inherited by the child shards.
- run_command.py: redirect stderr (i.e., trace output) to stdout, otherwise
higher up layers get confused with the extra data.
It will be reverted soon after the data has been collected.

BUG=268450

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@216168 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-07 12:45:25 +00:00
gkanwar@chromium.org 0c95243f04 Fixes exit code when there are no host-driven tests
Undoes the temporary fix in 215986.

NOTRY=True
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@216027 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-06 23:35:34 +00:00
gkanwar@chromium.org df229b4b98 Temporary fix to make steps with no host-driven tests pass.
Currently steps with no host-driven tests are marked as failure because
no tests are found.

NOTRY=True
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@215986 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-06 21:31:47 +00:00
gkanwar@chromium.org db7c9d502b Converts host driven tests to common test_dispatcher
Also renames several files in pylib/host_driven to match the general file
naming scheme.

This change will break existing host-driven tests downstream which are run
though scripts other than test_runner.

NOTRY=True
BUG=176323

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@215944 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-06 19:10:13 +00:00
frankf@chromium.org ef3db51cba [Android] Disable some content_browsertests.
BUG=
TBR=yfriedman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@215668 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-05 20:24:18 +00:00
frankf@chromium.org cf429e7bdc [Android] Deprecate old test scripts.
Just print the new command and exit. This is in
preparation for completely removing these scripts.

BUG=
R=craigdh@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@215634 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-05 17:34:00 +00:00
craigdh@chromium.org 4266a8d0a7 [android] Clear content_browsertests profile after each run.
BUG=262175
TEST=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@215392 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-02 23:09:05 +00:00
navabi@google.com a95cc35c5e Put cleanup steps in finally block so cleanup happens after halt on failure.
The device_status_check hangs because there are still processes launched by the
buildbot script that are not cleaned up. E.g.
https://chromegw.corp.google.com/i/clank/builders/manta-sharded-official-perf-clankium/builds/2359
This makes sure the post commands are executed after halt on failure.

BUG=265578

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@215365 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-02 21:08:06 +00:00
pliard@chromium.org 51159d82e7 Fix typing error in forwarder.py.
This wasn't triggered earlier since this function is not used upstream.

TBR=bulach@chromium.org
BUG=242846

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@215287 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-02 14:56:38 +00:00
qsr@chromium.org 311d6a4359 Fix options passing.
TBR=gkanwar@chromium.org,bulach@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@215263 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-02 10:01:11 +00:00
sivachandra@chromium.org 3921896242 [Android Buildbot] Make RunCmd execute command in a dir of choice.
BUG=249997
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@215176 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-02 00:57:04 +00:00
yukishiino@chromium.org 0dba55f405 Supports FontList in Textfield.
The current interface of Textfield does not support FontList while RenderText supports FontList.  This CL supports FontList in Textfield.

The direct cause of crbug.com/263169 was that RenderText always uses the IDS_UI_FONT_FAMILY_CROS font set ignoring what font is specified for Textfield on ChromeOS.  (See https://code.google.com/p/chromium/codesearch#chromium/src/ui/views/controls/textfield/native_textfield_views.cc&q=IDS_UI_FONT_FAMILY_CROS&sq=package:chromium&type=cs&l=88 )

The Omnibox font size is carefully calculated, but the font is ignored right now.

This CL changes the following:
- Supports FontList in Textfield so Omnibox layer can specify the font set, such as IDS_UI_FONT_FAMILY_CROS, for the underlying Textfield.
- Makes NativeTextfieldViews follow the specified font set via Textfield on ChromeOS.

BUG=263169,263196
TEST=Test manually.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@215055 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-01 17:01:50 +00:00
gkanwar@chromium.org 6420b6313f Changes argument passing to use options objects
Options objects are specific to the test type, and are named tuples, so
they are also immutable.

This is a precursor to the host-driven refactor.

BUG=176323
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@215054 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-01 16:59:22 +00:00
pliard@chromium.org 96a2637a51 Fix call to _ForwardPorts() in test_runner.py.
TBR=bulach@chromium.org
BUG=242846

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@215041 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-01 15:39:49 +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
craigdh@chromium.org 08bbe7f14d [android] Fix adb_install_apk.py's printed message.
BUG=None
TEST=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@214710 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-31 13:41:20 +00:00
frankf@chromium.org 1e6a6f874f [Android] Dedup content_browsertests test setup from gtests.
- This also changes the command for running content_browsertests
  to be in line with other gtest targets
- Additional cleanup: get rid of --exe option and fall back
  to using exe if apk is not found

TEST=test_runner.py gtest -s content_browsertests
BUG=261950
R=bulach@chromium.org, craigdh@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@214421 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-30 20:14:36 +00:00
craigdh@chromium.org ba897c79d3 [android] Fix for uiautomator tests.
BUG=None
TEST=None
NOTRY=True
TBR=frankf@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@214097 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-28 08:14:07 +00:00
frankf@chromium.org caef4f9a63 [Android] Temporary fix for Monkey tests
Once host-driven tests are refactored this temporary change can be
removed.

BUG=
NOTRY=True
R=frankf@chromium.org

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

Patch from Gurtej Kanwar <gkanwar@chromium.org>.

git-svn-id: http://src.chromium.org/svn/trunk/src/build@213978 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-26 20:31:51 +00:00
craigdh@chromium.org 7fea276a3d [android] Instumentation tests determine whether to install the test apk based on Md5Sum.
This deprecates the -I switch to instrumention tests.

BUG=260084
TEST=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@213956 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-26 18:31:20 +00:00
bulach@chromium.org 22ba49ca49 Android: further fixes to bb_device_status_check.py
There's no guarantees about the data coming from the device: instead
of expecting them to be there, mark them as Unknown.

BUG=254014
R=tomhudson@google.com

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@213635 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-25 15:39:25 +00:00
sivachandra@chromium.org 32797d4294 [Android Buildbot] Add option to run only host driven Python tests.
BUG=263624
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@213558 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-25 00:23:56 +00:00
sivachandra@chromium.org 3a46cf7cdf [Android Buildbot] Make flakiness dashboard server configurable.
BUG=263071
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@213475 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-24 18:41:58 +00:00
bulach@chromium.org 7da69f8485 Android: fixes (again) bb_device_status_check.
Following crrev.com/213194, imei can be absent on some devices.

BUG=254014
NOTRY=True
TBR=navabi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@213422 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-24 13:34:40 +00:00
pdr@chromium.org a1f4b3f7de Make adb_profile_chrome work on OSX
adb_profile_chrome relies on regular expression matching to pull the
correct trace file from the device. Unfortunatey, OSX ships with
a version of sed from 2005 which doesn't support matching of newline
characters (see
http://www.culmination.org/2008/02/sed-on-mac-os-x-105-leopard/). This
patch switches to perl, making adb_profile_chrome work on OSX.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@213404 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-24 11:05:12 +00:00
bulach@chromium.org 9101b93300 Android: fixes bb_device_status_check.
Following crrev.com/213194, imei can be absent on some devices.

BUG=254014
NOTRY=True
TBR=tomhudson@google.com

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@213402 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-24 11:02:01 +00:00
frankf@chromium.org b726836a73 [Android] webkit_unit_tests should use isolate file.
Also, remove --webkit/--out-directory options which were
used to run tests from a webkit checkout

BUG=263019, 263021
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@213205 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-23 20:10:42 +00:00
navabi@google.com 0d2fc8c2a3 Reimplement device status check dashboard option.
The changes to the device status check step from the following LGTM'd CL was
lost in the move from device_status_check.py to
buildbot/bb_device_status_check.py:
https://chromiumcodereview.appspot.com/19284009/diff/24001/build/android/device_status_check.py

This CL reimplements the option in the new device status check script.

TBR=frankf@chromium.org
BUG=254014

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@213194 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-23 19:43:32 +00:00
navabi@google.com d426b21937 Revert "Temporary fix to unbreak Tot Bots"
This reverts commit 7dc3e406f017bad927e1e356dd5dd5502b879fcd.

TBR=ilevy@chromium.org
BUG=261705

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@213055 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-23 07:22:44 +00:00
gkanwar@chromium.org 0aee671b0a Fixes test tagging to just update the name
BUG=263053
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@213005 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-23 00:18:10 +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
miguelg@chromium.org 8aa91c668a Temporary fix to unbreak Tot Bots
instrumentation tot is still using GetEmulators
BUG=261705
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212866 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-22 11:05:20 +00:00
tfarina@chromium.org e6e7fffd3a Update the new path to WebKit tests data.
data directory was moved from WebKit/chromium/tests/ to web/tests/ in r154618
on Blink repository (see CL https://codereview.chromium.org/19906002/).

R=frankf@chromium.org,abarth@chromium.org
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212857 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-22 09:30:37 +00:00
yukishiino@chromium.org fc98c3d432 Fixes vertical alignment of RenderText.
(was: Issue 18848002: Shows Japanese and English mixed queries correctly.)

The CL 18848002 was reverted because the new unit test, which I added, depended on the specific fonts and didn't run well on some of platforms.

I've carefully chosen another font for the unit test, which is available on all platforms.

BUG=244323
TEST=Test manually.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212792 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-20 15:42:44 +00:00
navabi@google.com 1d652e1ca7 Do not reboot emulator.
BUG=261705

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212764 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-20 06:18:11 +00:00
frankf@chromium.org e366356116 [Android] Fix misnamed method in r212582.
TBR=pliard@chromium.org
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212761 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-20 06:09:03 +00:00
gkanwar@google.com be15ecbdeb [Android] Redesigns the sharder to allow replicated vs distributed tests
In addition, cleans up dispatch.

BUG=259063, 259128
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212663 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-19 22:08:37 +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
ilevy@chromium.org a4a384800a Fix location for android device_status_check files
This file recently moved and the relative path became
incorrect. Devices are not being stored leading to constant
warnings on the bots.

BUG=258171
R=navabi@google.com

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212516 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-19 03:06:38 +00:00
frankf@chromium.org 2c4d6c076c [Android] Disable failing content_browsertests.
BUG=
NOTRY=True
TBR=yfriedman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212502 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-19 02:00:45 +00:00
mnaganov@chromium.org 23bc4d39df Enable DMP for system Chromium WebView on Android
A couple of tweaks are needed in order to enable
compiling inside the Android tree.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212490 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-19 01:35:07 +00:00
craigdh@chromium.org 9aa62f5c51 [android] Ignore extra files on the client when comparing md5sum output.
Relands r212355 with fix for https://codereview.chromium.org/19592008/

BUG=None
TEST=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212451 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-18 22:09:36 +00:00
scherkus@chromium.org 0e67ba390c Refactor build/android/symbolize.py to function as an output filter.
Doing so will make it easy to drop in as a test logfile text filter, similar to android_commands.NewLineNormalizer.

BUG=261311

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212438 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-18 21:37:45 +00:00
craigdh@chromium.org 079482f51d [android] Retry data pushes that fail due to device busy.
BUG=261436
TEST=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212396 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-18 19:25:56 +00:00
pliard@chromium.org 587ccd0597 Revert 212337 "[android] Ignore extra files on the client when c..."
The following assertion seems to fail:
assert all(len(s) == 2 for s in split_lines), 'Invalid md5sum output'

> [android] Ignore extra files on the client when comparing md5sum output.
> 
> BUG=None
> TEST=None
> NOTRY=True
> 
> Review URL: https://chromiumcodereview.appspot.com/19675006

TBR=craigdh@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212355 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-18 14:58:36 +00:00
craigdh@chromium.org 2da081dd99 [android] Ignore extra files on the client when comparing md5sum output.
BUG=None
TEST=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212337 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-18 13:18:02 +00:00
yfriedman@chromium.org 6e2fdd075d [Android] Fix all target for managed install.
The Multiple proguards apk is a build-only test. There's no need to install it.

NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212320 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-18 10:14:55 +00:00
gkanwar@chromium.org ebfad37141 Removes device_status_check and buildbot_report
This is part of moving device_status_check and buildbot_report into the buildbot folder.

BUG=258171

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212253 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-18 04:43:47 +00:00
frankf@chromium.org f941755385 [Android] Clean up gtest filtering logic.
Apply gtest_filter option to tests obtained from the device.

BUG=246871
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212229 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-18 03:42:49 +00:00
sivachandra@chromium.org 3ed8531a63 [Android] Add option so that instrumentation tests need not flunk on failure.
BUG=249997
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212076 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-17 17:21:12 +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
navabi@google.com c488d6d296 Add option to output device status data in format for dashboard and cleanup.
Adds an option to print the device status information (i.e. online devices, offline devices and device battery levels). Example output:

<*>RESULT OnlineDevices: OnlineDevices= 2
RESULT OfflineDevices: OfflineDevice= 0
RESULT DeviceBattery: 0149CC380F016011= 99
RESULT DeviceBattery: 014E378305007013= 60

Cleanup uses AndroidCommands for calling adb shell commands rather than its own GetCmdOutput function.

BUG=254014

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212052 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-17 15:41:07 +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
gkanwar@chromium.org 4cd98b0c29 Copies device_status_check to the buildbot directory
Once downstream scripts are updated as well, the original file
can be removed, and so can pylib/buildbot_report.py

BUG=258171
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211904 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-17 02:37:07 +00:00
frankf@chromium.org 4de6796bac [Android] Some clean up around gtest packages.
Clarify the concepts of test_runner versus test_package.

BUG=
NOTRY=True
R=craigdh@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211860 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-16 22:05:47 +00:00
frankf@chromium.org 71d66503d7 [Android] Move modules_unittest to isolate.
Also:
 - Do some cleanup
 - Move isolate remap dir to src/ and clean up during test tear down

NOTRY=True
BUG=249870, 260332
R=craigdh@chromium.org, hellner@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211756 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-16 03:57:39 +00:00
fischman@chromium.org cce7a2834f android/gyp/jar_toc.py: avoid specifying conflicting flags.
http://docs.oracle.com/javase/6/docs/technotes/tools/windows/javap.html says:
-protected Shows only protected and public classes and members.  
So there's no need to specify both -protected and -public.

Needed because in JDK7 javap is more particular about its flags and rejects this
particular combination.

BUG=https://code.google.com/p/webrtc/issues/detail?id=2034

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211700 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-15 21:19:47 +00:00
tonyg@chromium.org 7fc6b79a23 [Telemetry] Cut down on the amount of log spam on the android perf bots.
The perf bots run with -v (INFO level debugging). I'm moving the noisiest
output to DEBUG level. This will make the android log output more parsable
so that the real failures are easier to spot.

Also, this cuts down on several commands running between each page.

BUG=None
TEST=smoothness and page_cycler on android

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211673 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-15 20:17:41 +00:00
mark@chromium.org 8cfaad75d1 This caused failures in ui_unittests FontListTest.Fonts_GetHeight_GetBaseline
http://build.chromium.org/p/chromium.mac/buildstatus?builder=Mac%2010.6%20Tests%20%28dbg%29%284%29&number=30356
http://build.chromium.org/p/chromium.mac/buildstatus?builder=Mac%2010.7%20Tests%20%28dbg%29%284%29&number=13543

Revert 211664 "Shows Japanese and English mixed queries correctly."

> Shows Japanese and English mixed queries correctly.
> 
> This CL respects the common height and baseline of the fonts in the given font list, and draw text according to the baseline.
> 
> The cause of vertically-misaligned queries was that
> 1. ASCII characters have 23 pixels in height
> 2. Japanese characters have 17 pixels in height
> 
> pango_layout_get_pixel_size(), which is called in RenderTextLinux::GetStringSize(), returns the above size.
> 
> Also see:
> https://docs.google.com/a/chromium.org/document/d/1e2n9lEM_usn37Pld8tMeo_qpfLRQQjkx-O1hTHi3sPo/edit?usp=sharing
> 
> BUG=244323
> TEST=Test manually.
> 
> Review URL: https://chromiumcodereview.appspot.com/18848002

TBR=yukishiino@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211669 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-15 19:17:55 +00:00
yukishiino@chromium.org 26e4193b35 Shows Japanese and English mixed queries correctly.
This CL respects the common height and baseline of the fonts in the given font list, and draw text according to the baseline.

The cause of vertically-misaligned queries was that
1. ASCII characters have 23 pixels in height
2. Japanese characters have 17 pixels in height

pango_layout_get_pixel_size(), which is called in RenderTextLinux::GetStringSize(), returns the above size.

Also see:
https://docs.google.com/a/chromium.org/document/d/1e2n9lEM_usn37Pld8tMeo_qpfLRQQjkx-O1hTHi3sPo/edit?usp=sharing

BUG=244323
TEST=Test manually.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211664 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-15 18:30:17 +00:00
peter@chromium.org c6757a86ab Chromium Android layout test bots should be using "android" as the platform.
The platform has been renamed from "chromium-android" to "android" in
the past week, which was causing the layout test runner to fail with a
fatal error. Correct this.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211640 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-15 14:55:13 +00:00
frankf@chromium.org 59d420b4cc [Android] Convert more test targets to use isolate.
BUG=249870
TBR=ben@chromium.org, acolwell@chromium.org, joi@chromium.org, enne@chromium.org, mark@chromium.org, jam@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211547 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-13 04:43:55 +00:00
gkanwar@google.com c68e1d466f Adds errors on extra positional args
BUG=259651

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211478 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-12 23:22:57 +00:00
bulach@chromium.org 5910deb4cb Telemetry / Android: symbolize crashstack.
Use all the tools to get as much information as possible:
- print the logcat
- try to symbolize it
- try to symbolize tombstones

BUG=223572

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211459 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-12 21:11:18 +00:00
sivachandra@chromium.org d70217d122 [Android] Refactor buildbot tests so that they can be used downstream.
I refactored in the wrong way in r211209 (https://chromiumcodereview.appspot.com/18325030/). This CL fixes that. Note that r211209 is not broken; it is just not usable downstream.

BUG=249997
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211454 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-12 21:05:48 +00:00
scherkus@chromium.org 432ba7d5c8 Update build/android/symbolize.py to match base/debug/stack_trace_android.cc format.
BUG=259554

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211449 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-12 20:17:54 +00:00
scherkus@chromium.org 475ab8ba5e Remove executable bit from files checked in r211419.
TBR=jam

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211429 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-12 18:35:14 +00:00
scherkus@chromium.org 6ea84eda52 Check in missing build/android/symbolize.py test files from r211134.
R=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211419 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-12 17:38:40 +00:00
frankf@chromium.org 5b0ed2d5ac [Android] Use isolate remap instead of check.
- Instead of parsing *.isolated files, use isolate remap
to create a temporary dependency dir.
- Add an exclusion list to filter dependecies at a finer grain
than what's specified in isolate files.
- Convert base_unittests and unit_tests to use isolate. 

This adds an additional 50MB to the dependency size due
to many small directories not specified in the exclusion list.

BUG=249870

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211350 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-12 06:58:43 +00:00
navabi@google.com 052b0cec3f Deploy adb reconnect on disconnect daemon on WebKit (ContentShell) Android bot.
NOTRY=True
BUG=256353

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211283 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-12 01:40:09 +00:00
simonhatch@chromium.org 2b7052817e Unset some environment vars so they can be set up via the bisect script.
BUG=
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211214 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-11 21:10:41 +00:00
sivachandra@chromium.org 83a253d9aa [Android] Refactor so that few pieces can be reused downstream.
BUG=249997
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211209 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-11 20:51:58 +00:00
pliard@chromium.org 145a27fabe Kill forwarder2 host daemon in python_test_sharder.py during setup.
This is normally done at the shard level in shard.py but python_test_sharder.py
doesn't seem to use that code.

BUG=242846

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211206 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-11 20:42:29 +00:00
sivachandra@chromium.org 8748740460 [Android] Add bot id for an x86 fyi and try builders
BUG=170542
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211202 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-11 20:23:40 +00:00
bulach@chromium.org 3dec338d37 Android: uses at least 3 samples for surface stats.
Follow-up on crrev.com/204593, fixes the bucket calculation.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211196 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-11 19:59:49 +00:00
craigdh@chromium.org 75cd762559 [android] Fix suite error message.
BUG=None
TEST=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211156 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-11 17:55:51 +00:00
bulach@chromium.org f1d8a9af48 Android: adds stack symbolization utilities.
asan_symbolize.py is used for the logcat stacks using the special ASan format.
tombstones.py is used to manage tombstones files in devices.
symbolize.py is used for stack traces generated by base/debug/stack_trace_android.cc

BUG=234973

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211134 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-11 16:17:56 +00:00
gkanwar@google.com 383770ce5d Fixes dispatch files to return exit codes in several places
BUG=170477

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211084 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-11 11:49:33 +00:00
frankf@chromium.org 4f9db973ff [Android] Tests now log to stdout instead of stderr.
NOTRY=True
BUG=258596

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@210967 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-10 23:29:21 +00:00
frankf@chromium.org 060818c956 [Android] Remove deps list for obsolete test targets.
NOTRY=True
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@210892 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-10 18:35:56 +00:00
bulach@chromium.org 0c82936bb8 Android: follow up on crrev.com/210749
Fixes python-driven tests.

BUG=170477, 258171
TBR=frankf

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@210859 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-10 16:31:52 +00:00
gkanwar@google.com b7f504a41e Updates the test runner script exit codes
The script now returns exit codes based on what occurred in the
test. Exit codes:
0 -- normal
1 -- fail/crash
88 -- warning

In addition, the scripts now handle DeviceUnresponsiveError by
returning a warning exit code overall, rather than silently moving
on.

BUG=170477, 258171

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@210749 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-10 04:57:10 +00:00
joaodasilva@chromium.org 3dd0b1b22f Avoid forwarding the test HTTP port twice.
base_test_runner.BaseTestRunner already forwards port 8000; avoid doing that
again in instrumentation.test_runner.TestRunner again, which confuses the
forwarder.

BUG=242846

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@210666 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-09 23:42:14 +00:00
bulach@chromium.org d3ea847751 SurfaceStats / Telemetry: calculate FPS in different frame buckets.
Instead of just calculating FPS over all frames returned by SurfaceFlinger,
use the last 90% and the last 50% as well.
This allow us to have a better representation and skip the "setup" stage.

BUG=256340

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@210583 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-09 17:04:15 +00:00
pliard@chromium.org b48bb4cd34 Reland r210268: "Improve forwarder2 setup/tear down in telemetry."
This CL kills the host_forwarder daemon before running the tests and also makes
Forwarder.Close() unmap the previously mapped ports.

BUG=242846
TBR=bulach@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@210574 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-09 15:44:02 +00:00
nduca@chromium.org e94f646c94 Print adb missing warning to stderr, not stdout
R=bulach

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@210563 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-09 14:27:12 +00:00
kkimlabs@chromium.org 19333597df [Android] Add an gyp option to disable generating v14 resources script.
Currently, we are generating v14 layout and style resources from v17
resources by replacing Start and End attributes to Left and Right
attributes. However, it is not necessary for all cases, so make an
option to disable generate_v14_compatible_resources.py script and
only verify that there is no RTL attributes in the pre-v17 resources.

BUG=247049

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@210555 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-09 14:07:51 +00:00
gkanwar@google.com 0c42207094 Relands test_runner.py, updates buildbot scripts
Relands 210035 ("Creates a new test running script test_runner.py"),
and updates the buildbot scripts to point to the test_runner.py script,
so the buildbots don't get deprecated warnings.

BUG=248351

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@210538 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-09 09:03:26 +00:00
hellner@chromium.org 51157755a5 WebRTC: adds webrtc specific unit tests to test_runner.py and gtest_config.py for running them in a chromium workspace.
BUG=https://code.google.com/p/webrtc/issues/detail?id=1882

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@210534 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-09 08:50:41 +00:00
pliard@chromium.org 1be95894f5 Revert "Improve forwarder2 setup/tear down in telemetry."
This reverts r210268 which made some tests fail downstream.

TBR=bulach@chromium.org,mvanouwerkerk@chromium.org
BUG=210268

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@210311 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-05 15:45:50 +00:00
pliard@chromium.org 982dbd5ac1 Make port unmapping errors non fatal.
In some cases port unmapping can fail. This should not be fatal nor need client
recovery code.

This can happen when multiple instances of the Forwarder class try to map/unmap
a same port. While the host_forwarder daemon supports that, the python wrapper
didn't.

R=bulach@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@210306 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-05 14:33:32 +00:00
pliard@chromium.org c664eec31b Reland "Add --serial-id option to host_forwarder."
This relands r209945.

r242846 slightly changed the CLI <-> device daemon message sequence which made
the following check fail in case the device daemon was started but already
running on the device: device_forwarder_main.cc:10: CHECK_GT(bytes_read, 0).

This was actually caused by an unexposed long standing issue in daemon.cc.
ConnectToUnixDomainSocket() is performing a hand check to make sure that the
CLI is connecting to the forwarder daemon. While doing this hand check, rather
than only reading the expected fixed-size message, the function was reading all
the available bytes in the socket thus consuming the client data.

BUG=242846
R=bulach@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@210273 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-05 07:42:02 +00:00
pliard@chromium.org 749841ee04 Improve forwarder2 setup/tear down in telemetry.
This CL kills the host_forwarder daemon before running the tests and also makes
Forwarder.Close() unmap the previously mapped ports.

BUG=242846
R=bulach@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@210268 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-05 07:04:59 +00:00
ilevy@chromium.org 56f6e3c191 Revert 210035 "Creates a new test running script test_runner.py"
Causes android buildbots to spew deprecation warnings.

> Creates a new test running script test_runner.py
> 
> This new script serves as a unified entry point for all tests. The
> existing scripts are now just wrappers around the new script. Old
> commands should thus still work, but you can now make use of the
> new script to run various types of tests.
> 
> There are a few TODOs left:
> * Add options to run Monkey tests.
> 
> Miscellaneous notes:
> * --python_test_root is now a required flag when Python host-driven
>   tests are being run.
> 
> BUG=248351
> 
> Review URL: https://chromiumcodereview.appspot.com/15942016

TBR=gkanwar@google.com

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@210251 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-05 02:29:05 +00:00
frankf@chromium.org db842742f6 [Android] Partial revert of r209283.
Generating isolated files from test runners is not thread-safe.

BUG=257133
TBR=craigdh@chromium.org
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@210079 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-04 00:12:44 +00:00
gkanwar@google.com 40f6a425e6 Creates a new test running script test_runner.py
This new script serves as a unified entry point for all tests. The
existing scripts are now just wrappers around the new script. Old
commands should thus still work, but you can now make use of the
new script to run various types of tests.

There are a few TODOs left:
* Add options to run Monkey tests.

Miscellaneous notes:
* --python_test_root is now a required flag when Python host-driven
  tests are being run.

BUG=248351

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@210035 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-03 20:31:43 +00:00
pliard@chromium.org 39645d8cfc Revert "Add --serial-id option to host_forwarder."
This reverts revision 209945.

TBR=peter@chromium.org
BUG=242846

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209959 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-03 11:47:24 +00:00
pliard@chromium.org 9e9405df5f Add --serial-id option to host_forwarder.
This moves the forwarder's control channel set up logic (which can be
considered as an internal implementation detail) from the Python script to the
host_forwarder binary.

This also changes the command line interface for the host_forwarder and
device_forwarder binaries.

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

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209945 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-03 10:21:26 +00:00
sivachandra@chromium.org 41aae7d2a7 [Android] Remove few redundent pieces added in CL 17114007
This CL removes certain redundant pieces which should have been removed in https://chromiumcodereview.appspot.com/17114007/ but were missed.

BUG=249997

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209932 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-03 08:49:47 +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
sivachandra@chromium.org 5f0b7670bf [Android] Refactor the buildbot scripts to prepare for downstream usage.
BUG=249997

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209694 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-02 14:02:15 +00:00
bulach@chromium.org 3f285ee2a8 Android: adds an option to print all sharded steps.
This is necessary to decouple buildbots and the app repository.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209681 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-02 12:14:38 +00:00
hashimoto@chromium.org a4f7f2082c Add missing executable bits for get_device_configuration.py
Resulted in buildbot failures:
http://build.chromium.org/p/chromium/builders/Linux/builds/40444

BUG=None
TEST=check_perms.py
TBR=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209624 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-02 06:47:48 +00:00
cjhopman@chromium.org ea831049c4 [Android] Add an action to check/record attached devices
When doing a gyp_managed_install, we install APKs to the attached
device. Currently this can fail in many ways (no device attached,
multiple devices attached, device offline, device doesn't have root,
etc.). In addition, we need to detect changes to the attached device
(particularly when the device is switched, when an APK is
 uninstalled/updated).

The current approach is to check all this information in the action
interacting with the device. This means that when there is some
problem we print the same warning messages for every APK that is built,
and, in some cases, multiple times for each APK. Also, we have to run
every install/push action every build because we detect changes to the
attached device in that action.

This change creates a new build action, "get device configurations".
This action inspects the attached devices, filters out offline devices,
filters out devices without root, and then writes a configuration
file with the id+metadata for the first non-filtered device. This
configuration is then used by each of the build steps that interacts
with the device. This consolidates all the device checking to a single
place, and the build actions don't need to do any checking. In
addition, to detect changes in the attached device, we only need to run
this single action every build and the install/push actions will only
change when the device/metadata changes.

Also, with this change we can now gracefully handle the case where
multiple devices are attached (currently just write the configuration
for the first valid device and install to that one).

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209582 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-02 01:52:33 +00:00
aurimas@chromium.org a405188195 Remove the OWNERS that no longer work on the project.
Remove jcivelli@, and nileshagrawal@ who no longer work
on Chrome for Android.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209531 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-01 23:02:18 +00:00
bulach@chromium.org 8abee74061 Android: disables DiagnosticsModelTest.RunAll
This test is timing out on android
(it eventually runs very close to the 120s timeout and passes, so it looks like the
flakyness is more about the size than the test itself).

BUG=256259
TBR=cpu@chromium.org
NOTRY=TRUE

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209439 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-01 15:38:37 +00:00
bulach@chromium.org ad0e02313f Android: disable content_browsertests SignalTest.
Started failing at crrev.com/209404

BUG=256238
TBR=hubbe@chromium.org
NOTRY=TRUE

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209433 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-01 14:47:05 +00:00
bulach@chromium.org 031e072db9 Android: disables IndexedDBBrowserTestWithCorruptLevelDB.DestroyTest.
Started failing after crrev.com/208579

BUG=256184
TBR=dgrogan@chromium.org
NOTRY=TRUE

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209414 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-01 11:32:18 +00:00
bulach@chromium.org 2c905384fa Android: fixes content_browsertests.
Following crrev.com/209345, a couple of files have been deleted / renamed.

TBR=fsamuel@chromium.org
BUG=
NOTRY=TRUE

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209410 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-01 11:15:24 +00:00
tfarina@chromium.org 3da67c9559 Reland "components/webdata: Break the dependency on chrome/test/base"
This was reverted because it broke android, because I forgot to remove
a line from build/android/pylib/gtest/test_runner.py

BUG=181277
TBR=joi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209348 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-29 21:15:48 +00:00
frankf@chromium.org a66bbda1c0 [Android] Enable using isolate files to get a list of data dependencies to push to the device.
Convert base_unittests to isolate.

BUG=249870

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209283 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-29 13:00:45 +00:00
wangxianzhu@chromium.org 0872b7c4ef Upstream adb_profile_chrome
This is for external developers to profile official chrome build.

The default package name is changed to "com.android.chrome".

NOTRY=true
BUG=255178

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209195 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-28 18:22:22 +00:00
kinuko@chromium.org 4a8e0f2aec Revert 209071 "components/webdata: Break the dependency on chrom..."
2nd try.

> components/webdata: Break the dependency on chrome/test/base
> 
> BUG=181277
> TBR=joi@chromium.org
> 
> Review URL: https://codereview.chromium.org/17788002

TBR=tfarina@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209116 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-28 07:01:21 +00:00
kinuko@chromium.org 506a8c0595 Revert 209112 "Revert 209071 "components/webdata: Break the depe..."
Broke the tree.

> Revert 209071 "components/webdata: Break the dependency on chrom..."
> 
> speculative revert to see if it fixes the android bots.
> 
> > components/webdata: Break the dependency on chrome/test/base
> > 
> > BUG=181277
> > TBR=joi@chromium.org
> > 
> > Review URL: https://codereview.chromium.org/17788002
> 
> TBR=tfarina@chromium.org
> 
> Review URL: https://codereview.chromium.org/18177003

TBR=sail@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209115 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-28 06:49:06 +00:00
sail@chromium.org 4da6525040 Revert 209071 "components/webdata: Break the dependency on chrom..."
speculative revert to see if it fixes the android bots.

> components/webdata: Break the dependency on chrome/test/base
> 
> BUG=181277
> TBR=joi@chromium.org
> 
> Review URL: https://codereview.chromium.org/17788002

TBR=tfarina@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209112 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-28 05:52:10 +00:00
tfarina@chromium.org c159595028 components/webdata: Break the dependency on chrome/test/base
BUG=181277
TBR=joi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209071 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-28 02:19:34 +00:00
sivachandra@chromium.org acae236b73 [Android] Add a flag to skip provisioning check during device status check.
This is required for a downstream bot which builds Android from source and flashes it with every build.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@208902 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-27 12:47:18 +00:00
cjhopman@chromium.org ba517b8506 [Android] Support building standalone APK in component build
Many people's workflows assume that they can install the APK created in
out/Debug/apks. With the component build that APK is actually an
"incomplete" APK that cannot be manually installed (or rather causes
obscure errors when manually installed).

This change does two things. First, it moves the "incomplete" APK
output to out/Debug/<package_name>/<ApkName>.apk. This should prevent
accidental installs of the "incomplete" APK. Second, it introduces an
option (create_standalone_apk) that when doing a component build, if
set, will merge the shared libraries into the "incomplete" APK to
create a standalone APK. This standalone APK will be created in
out/Debug/apks/.

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207345

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207516

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@208529 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-25 18:42:07 +00:00
sievers@chromium.org f95796af59 Disable PageStateSerializationTest.BackwardsCompat_v11
BUG=254034

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@208528 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-25 18:41:26 +00:00
wjia@chromium.org 750459f031 Move create_standalone_apk.py into build/android/gyp/.
The create_standalone_apk.py should be in build/android/gyp/.

TBR=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@208378 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-25 03:27:48 +00:00
darin@chromium.org f23ed67f05 Re-implement PageState serialization without a Blink API dependency.
WebHistoryItem serialization is now split into two parts.  PageState (i.e., encoded string)to ExplodedPageState, and ExplodedPageState to WebHistoryItem.  This way we can generate ExplodedPageState in the browser process without a dependency on Blink API.

This CL drops support for version 1-10 of the format.  I confirmed with laforge@ that the usage of such old versions of Chrome is minimal enough.

I've included code to extract file paths from the "document state" vector of strings.  This code just has to be consistent with the way document state was generated in versions 11 through 13 of the format.  Version 14 has the file path vector included directly in the serialized data.

Gone is the serializers ability to write out different versions of the format.  That code existed to support testing as we would write out old versions and test our ability to read them.  Instead, I've captured some serialized snapshots at different versions, and I just test that we can read them.  I've included code for generating a snapshot as a test case that by default returns early.  (This way the code doesn't bit-rot.)

R=jamesr@chromium.org,tsepez@chromium.org
BUG=237243

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@208367 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-25 03:10:24 +00:00
wjia@chromium.org 22e10e1e19 Fix check_perms for r208246
Reland https://codereview.chromium.org/17569006/ with check_perms fix.

Support using loadable module for libpeerconnection on Android.

Borrowed create_standalone_apk_action.gypi, create_standalone_apk.py and finalize_apk_action.gypi from https://codereview.chromium.org/14843017/ with some minor fix in create_standalone_apk_action.gypi.

For some cases where libpeerconnection needs to be a loadable module, we need to add libpeerconnection.so into Chrome_apk.
This patch takes 2 steps:
1. build chrome with libpeer_target_type=loadable_module.
2. add libpeerconnection.so into the apk file.

TEST=run gyp: GYP_DEFINES="$GYP_DEFINES libpeer_target_type=loadable_module" build/gyp_chromium
build chrome
re-run gyp: GYP_DEFINES="$GYP_DEFINES libpeer_target_type=loadable_module" CHROMIUM_GYP_FILE="build/android/chrome_with_libs.gyp" build/gyp_chromium
build chrome_with_libs
install Chrome-with-libs.apk and it works for https://apprtc.appspot.com

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@208304 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-24 23:44:40 +00:00
abodenha@chromium.org 3ee66a772b Revert 208246 "Support using loadable module for libpeerconnecti..."
Caused check_perms failure on Linux ChromiumOS.
See http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Full/builds/21371

> Support using loadable module for libpeerconnection on Android.
> 
> Borrowed create_standalone_apk_action.gypi, create_standalone_apk.py and finalize_apk_action.gypi from https://codereview.chromium.org/14843017/ with some minor fix in create_standalone_apk_action.gypi.
> 
> For some cases where libpeerconnection needs to be a loadable module, we need to add libpeerconnection.so into Chrome_apk.
> This patch takes 2 steps:
> 1. build chrome with libpeer_target_type=loadable_module.
> 2. add libpeerconnection.so into the apk file.
> 
> TEST=run gyp: GYP_DEFINES="$GYP_DEFINES libpeer_target_type=loadable_module" build/gyp_chromium
>      build chrome
>      re-run gyp: GYP_DEFINES="$GYP_DEFINES libpeer_target_type=loadable_module" CHROMIUM_GYP_FILE="build/android/chrome_with_libs.gyp" build/gyp_chromium
>      build chrome_with_libs
>      install Chrome-with-libs.apk and it works for https://apprtc.appspot.com
> 
> R=cjhopman@chromium.org, mallinath@chromium.org, tommi@chromium.org
> 
> Review URL: https://codereview.chromium.org/17569006

TBR=wjia@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@208285 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-24 22:58:03 +00:00
wjia@chromium.org e13c37b8d0 Support using loadable module for libpeerconnection on Android.
Borrowed create_standalone_apk_action.gypi, create_standalone_apk.py and finalize_apk_action.gypi from https://codereview.chromium.org/14843017/ with some minor fix in create_standalone_apk_action.gypi.

For some cases where libpeerconnection needs to be a loadable module, we need to add libpeerconnection.so into Chrome_apk.
This patch takes 2 steps:
1. build chrome with libpeer_target_type=loadable_module.
2. add libpeerconnection.so into the apk file.

TEST=run gyp: GYP_DEFINES="$GYP_DEFINES libpeer_target_type=loadable_module" build/gyp_chromium
     build chrome
     re-run gyp: GYP_DEFINES="$GYP_DEFINES libpeer_target_type=loadable_module" CHROMIUM_GYP_FILE="build/android/chrome_with_libs.gyp" build/gyp_chromium
     build chrome_with_libs
     install Chrome-with-libs.apk and it works for https://apprtc.appspot.com

R=cjhopman@chromium.org, mallinath@chromium.org, tommi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@208246 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-24 18:54:11 +00:00
navabi@google.com f23eaf8c99 Turn off devices with low battery and don't fail device status step.
BUG=224004

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@208088 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-22 21:05:50 +00:00
frankf@chromium.org ea8da93716 [Android] Do not fail if adb push returns no output.
This is the case for empty files.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@208015 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-22 07:07:36 +00:00
gkanwar@google.com 82ccaa9576 The ADT bundle link was 404'ing. This updates the link to the newer version of the ADT bundle which is up on the Android site.
BUG=252776

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207980 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-22 00:45:25 +00:00
bulach@chromium.org 9e1c1b5236 Android / Telemetry: use android-chromium-testshell instead of content-shell.
Follow up on https://codereview.chromium.org/15115005/
Install ChromiumTestShell instead of ContentShell

BUG=237057
R=ilevy@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207779 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-21 10:01:08 +00:00
navabi@google.com 945b5aa823 Create sdcard image for emulator.
The emulator bot currently fails when waiting for the sdcard. The emulator does
not fail when the emulator has an sdcard image present. This CL creates and adds
the sdcard image for emulators.

TBR=cmp@chromium.org
BUG=164911

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207760 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-21 08:59:20 +00:00
skyostil@chromium.org 177d7747cd android: Always initialize 'log' variable
Always initialize the 'log' variable to avoid an unbound local error
when dealing with exceptions.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207648 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-21 00:02:49 +00:00
frankf@chromium.org 41346e07f3 [Android] Log the size of data transerred to device.
BUG=252047
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207641 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-20 23:47:25 +00:00
dfalcantara@chromium.org 458e6b0e2b Revert "[Android] Support building standalone APK in component build"
This breaks the Android component build.

This reverts commit 125e64a9eb6406446fb864aea9fa887521f19616.
>> [Android] Support building standalone APK in component build
>>
>> Many people's workflows assume that they can install the APK created in
>> out/Debug/apks. With the component build that APK is actually an
>> "incomplete" APK that cannot be manually installed (or rather causes
>> obscure errors when manually installed).
>>
>> This change does two things. First, it moves the "incomplete" APK
>> output to out/Debug/<package_name>/<ApkName>.apk. This should prevent
>> accidental installs of the "incomplete" APK. Second, it introduces an
>> option (create_standalone_apk) that when doing a component build, if
>> set, will merge the shared libraries into the "incomplete" APK to
>> create a standalone APK. This standalone APK will be created in
>> out/Debug/apks/.
>>
>> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207345
>>
>> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207516

BUG=
R=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207587 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-20 21:42:06 +00:00
tedchoc@chromium.org 33a0c60572 Print a nicer error if installing an APK fails when you have not run adb root.
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207585 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-20 21:37:03 +00:00
cjhopman@chromium.org f00dfb88a8 [Android] Support building standalone APK in component build
Many people's workflows assume that they can install the APK created in
out/Debug/apks. With the component build that APK is actually an
"incomplete" APK that cannot be manually installed (or rather causes
obscure errors when manually installed).

This change does two things. First, it moves the "incomplete" APK
output to out/Debug/<package_name>/<ApkName>.apk. This should prevent
accidental installs of the "incomplete" APK. Second, it introduces an
option (create_standalone_apk) that when doing a component build, if
set, will merge the shared libraries into the "incomplete" APK to
create a standalone APK. This standalone APK will be created in
out/Debug/apks/.

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207345

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207516 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-20 19:51:29 +00:00
skyostil@google.com 283725629a Revert 207345 "[Android] Support building standalone APK in comp..."
This broke building of ChromeTest.apk. See:

http://chromegw.corp.google.com/i/clank.tot/builders/instrumentation-yakju-clankium-tot/builds/11555/steps/chrome_smoke_instrumentation_tests/logs/stdio

> [Android] Support building standalone APK in component build
> 
> Many people's workflows assume that they can install the APK created in
> out/Debug/apks. With the component build that APK is actually an
> "incomplete" APK that cannot be manually installed (or rather causes
> obscure errors when manually installed).
> 
> This change does two things. First, it moves the "incomplete" APK
> output to out/Debug/<package_name>/<ApkName>.apk. This should prevent
> accidental installs of the "incomplete" APK. Second, it introduces an
> option (create_standalone_apk) that when doing a component build, if
> set, will merge the shared libraries into the "incomplete" APK to
> create a standalone APK. This standalone APK will be created in
> out/Debug/apks/.
> 
> Review URL: https://chromiumcodereview.appspot.com/14843017

TBR=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207439 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-20 15:31:28 +00:00
ericwilligers@chromium.org ca2c32e94a Allow for lists of lists when summarizing performance results
Using page-repeat and pageset-repeat options in commands like
tools/perf/run_measurement --browser=release --page-repeat=2 --pageset-repeat=3 blink_perf third_party/WebKit/PerformanceTests/Parser/html-parser.html
previously let to a crash in _MeanAndStdDevFromList.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207426 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-20 14:02:41 +00:00
frankf@chromium.org 0b6cf35f21 [Android] Fix _WatchTestOutput after r207099
BUG=
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207387 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-20 10:17:32 +00:00
cjhopman@chromium.org 5f50a8a77e [Android] Add GetDescription and defer calculating device_utc_offset
First, only get the device's utc offset when it is actually needed. Calculating
this offset takes about 100ms on a typical device. The build scripts assume
that creating an instance of AndroidCommands is not so expensive. Instead,
defer calculating this value until it is actually requested. There are
currently several cases where the build scripts call adb directly instead of
through android_commands just to avoid this extra cost.

Second, add a GetDescription method to get a (mostly) user-readable description
of the device.

TBR=frankf@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207371 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-20 09:09:02 +00:00
cjhopman@chromium.org 7ad7e2169a [Android] Support building standalone APK in component build
Many people's workflows assume that they can install the APK created in
out/Debug/apks. With the component build that APK is actually an
"incomplete" APK that cannot be manually installed (or rather causes
obscure errors when manually installed).

This change does two things. First, it moves the "incomplete" APK
output to out/Debug/<package_name>/<ApkName>.apk. This should prevent
accidental installs of the "incomplete" APK. Second, it introduces an
option (create_standalone_apk) that when doing a component build, if
set, will merge the shared libraries into the "incomplete" APK to
create a standalone APK. This standalone APK will be created in
out/Debug/apks/.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207345 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-20 07:58:19 +00:00
frankf@chromium.org b5f7fef472 [Android] Clear adb logcat during adb_logcat_monitor startup.
BUG=249039
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207175 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-19 04:06:26 +00:00
frankf@chromium.org 07aa4d053f [Android] Fix pexpect ordering to get the correct logs.
TBR=craigdh@chromium.org
NOTRY=True
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207099 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-18 22:39:08 +00:00
digit@chromium.org eacb40c9e0 adb_gdb: Minor improvements
This patch improves the Android-specific adb_gdb debugging scripts
in several minor ways:

- It ensures that the temporary directory is always removed when
  the script exits, even whe it is interrupted with Ctrl-C.

- It ensures that if --pull-libs is interrupted by a Ctrl-C,
  the build.prop in /tmp/$USER-adb-gdb-libs/ is erased, forcing
  a --pull-libs operation in the next invokation, instead of keeping
  a portion of the libraries in a bad state.

- It adds a --su-prefix=<prefix> option, to be able to use tools
  like 'su' on rooted production devices. This is useful when the
  installed app is not debuggable (e.g. a release build), and there
  is no way to run ADB as root.

BUG=NONE

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@206990 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-18 14:24:42 +00:00
scherkus@chromium.org 95c61febc4 Strip out \r characters from pexpect's log capture before adding the results.
BUG=250002

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@206960 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-18 12:49:52 +00:00
nileshagrawal@chromium.org 9e8dfa6f4c Android: Disable failing test ResourceFetcherTests.ResourceFetcherDownload.
BUG=248796
NOTRY=true
R=cjhopman

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@206747 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-17 17:51:11 +00:00
dmazzoni@chromium.org 0bc173bef8 Fix and re-enable accessibility tests on Android
BUG=249887
TBR=nileshagrawal

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@206685 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-17 08:23:26 +00:00
sivachandra@chromium.org cdb142d31b [Android] Refactor bb_host_steps to prepare for downstream usage.
- Refactored bb_host_steps.py to take a list of steps.
- Moved run step logic into bb_utils

BUG=249997
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@206555 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-15 04:52:26 +00:00
nileshagrawal@chromium.org 0948159a50 Android: Disable DumpAccessibilityTreeTest tests.
These are failing since they were enabled on Android.
BUG=249887
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@206489 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-14 20:44:55 +00:00
frankf@chromium.org 8ed5588845 [Android] Fix uiautomator test runner after r206096
TBR=craigdh@chromium.org
NOTRY=True
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@206257 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-14 00:54:26 +00:00
frankf@chromium.org 815682d8c9 [Android] Separate concepts of pushing test data and installing test apk.
--skip-deps-push will now only bypass the former.

BUG=
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@206096 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-13 16:53:29 +00:00
frankf@chromium.org d0ed4fca01 [Android] Log the timeout used for each instrumentation test.
BUG=
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205980 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-12 23:56:44 +00:00
ilevy@chromium.org 848bf8f26e Switch android clang bots to component build
BUG=243007

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205933 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-12 21:17:33 +00:00
navabi@google.com 5bab7e0c61 Do not send alerts on slow install and make the step fail on < 15% battery.
The slow install errors were happening too often causing too many alert emails.
A few bots have had device battery problems. E.g.
http://build.chromium.org/p/chromium.perf/builders/Android%20GN
The device status step will fail when charge is < 15%, allowing devices to
recharge before running more tests on them, and thus avoiding devices turning
off and needing someone to go to the clab to restart the devices.

TBR=cmp@chromium.org
BUG=224004

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205912 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-12 20:18:54 +00:00
craigdh@chromium.org 2e2ae050b0 [android] Remove timeout for instrumentation tests.
NOTRY=True
BUG=248612
TEST=None

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205815 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-12 16:33:08 +00:00
ilevy@chromium.org 9962083d66 Fix android buildbot presubmit
Remove android deps dependence in presubmit,
fixing presubmit on CQ.

TBR=iannucci
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205728 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-12 05:30:28 +00:00
nileshagrawal@chromium.org f4e3d317d4 Android: Disable failing ResourceFetcherTests.
BUG=248796
R=mariakhomenko@chromium.org
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205707 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-12 03:40:05 +00:00
sivachandra@chromium.org 9bdf14a1a4 Add an Android perf bisect bots and its host steps.
BUG=245361
R=ilevy@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205641 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-11 21:42:33 +00:00
nileshagrawal@chromium.org 0d5059c857 Android: Don't push layout_tests data for content browser tests.
These tests are now deleted. See: crbug.com/247459

Also disable some tests which were enabled but not fixed.
See: https://codereview.chromium.org/16268011

BUG=238485
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205638 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-11 21:26:57 +00:00
frankf@chromium.org 81d0e1a89d [Android] Add --skip-deps-push to test scripts.
This bypasses syncing any deps to the device to speed up
the developer workflow.
    
BUG=243447
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205317 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-10 21:50:48 +00:00
frankf@chromium.org 6f58026f56 [Android] Add a check in sharder for an empty test list.
BUG=245915
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205249 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-10 18:31:01 +00:00
ilevy@chromium.org 81ce891cbd Port remaining android buildbot code into python
- Run envsetup.sh and retrieve environment rather than wrapping
   commands in a bash shell. Consolidate remaining PATH code.
   This also cleans up the preamble output.
- Port android landmine code to python.
- Simplified testing command layout in bb_run_bot.
- Change bb_run_bot_test to run in parallel.
- Fixed bug where dbg clobber affects release bot using same checkout
- Made step names more similar to other chromium bots.
- Consolidated factory-prop and build-prop parsing code.

BUG=176126
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205244 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-10 17:53:25 +00:00
jochen@chromium.org 5190b79d5d Remove InProcessBrowserLayoutTest, since we now run layout tests in content_shell
R=jam@chromium.org
BUG=247459

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205166 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-10 08:39:04 +00:00
jochen@chromium.org 66a0e74788 Stop running worker layout tests as browser tests
R=dimich@chromium.org, jam@chromium.org
BUG=247459

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205164 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-10 08:34:41 +00:00
jochen@chromium.org fbababb99a Stop running filesystem and blob layout tests as browser tests
R=jam@chromium.org
BUG=247459

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205163 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-10 08:31:42 +00:00
ilevy@chromium.org 4dd925eef6 [Android] Remove Reboot devices step
Consolidate these commands into provision_devices.

TBR=sivachandra@chromium.org
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205118 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-09 13:07:32 +00:00
sivachandra@chromium.org 7460772c72 Do not alert if devices with user/eng Android builds are not provisioned.
BUG=245058

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205021 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-08 05:02:45 +00:00
frankf@chromium.org 469fd5fdc7 [Android] Fix import error in browsertests/dispatch.py
NOTRY=True
TBR=nileshagrawal@chromium.org
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204991 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-08 00:32:15 +00:00
sivachandra@chromium.org 9baabbd90d Add a new script bb_host_steps.py which handles all host side steps.
BUG=154525
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204970 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-07 23:14:39 +00:00
kkimlabs@chromium.org 198e305912 [Android] Skip generating v14 resources if already a version is specified.
If a version is already specified for resources, (e.g., layout-v20/), it shouldn't
be generating v14 compatible resource from it, because it's an explicit intention
to apply only to that version. The exception is for style resources due to the reason
explained at here https://codereview.chromium.org/16125003/.

BUG=247049

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204910 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-07 20:28:51 +00:00
jochen@chromium.org 2fdf6974c0 Stop running media layout tests as browser tests
R=jam@chromium.org,shadi@chromium.org
BUG=247459

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204813 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-07 13:39:42 +00:00
bulach@chromium.org a3f4ed5c97 Android: removes pylib.constants.CHROME_DIR.
Follow up from crrev.com/204357, it has now rolled downstream
so it's safe to remove the constant.

BUG=
TEST=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204812 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-07 13:39:24 +00:00
skyostil@chromium.org 31a36bca7c Android: support glob-style gtest filters with content browser tests
This patch makes it possible to use glob-style gtest filters with
the content browser tests. An example of such a filter is
WebGLConformanceTest.*, which should cause all the WebGL conformance
tests to be run.

Previously the gtest filter was passed directly to the test executable,
causing it to run all matching tests successively in the same process.
Normally this would be fine, but with content browsertests we must run
each test in a fresh process to avoid issues with double initialization.

The fix is to expand the filter to a flat list of tests in the test
dispatcher. After this, the tests are sharded and run in exactly the
same way as when no gtest filter is provided.

BUG=138226

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204680 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-07 00:50:14 +00:00
scherkus@chromium.org 40fe9d6ad1 Enable MediaSourceTest.* content_browsertests on Android.
Sprinkling a little command line flag magic reveals these tests actually pass!

BUG=243843

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204634 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-06 22:44:08 +00:00
bulach@chromium.org e2e48ad7b8 Android / Telemetry: make surface_stats_collector more robust.
Rather than failing the entire test suite, report empty data when
surface stats is unavailable.

BUG=246730

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204593 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-06 21:10:34 +00:00
bulach@chromium.org df2043b890 Android: renames pylib.constants.CHROME_DIR to DIR_SOURCE_ROOT.
Following comments from https://codereview.chromium.org/14882007/,
let's keep it consistent with base/base_paths.

BUG=
TEST=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204357 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-05 23:28:09 +00:00
michaelbai@chromium.org 5fd094a7ab Main changes are
- Rename ContentVideoViewContextDelegate to ContentVideoViewClient, instead of having the getContext() method, passing the context to ContentVideoView when it is created.

- Add getContentVideoViewClient method in ContentViewClient, so it will be created when it actually used.



BUG=http://b/8315237

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204353 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-05 23:26:35 +00:00
bulach@chromium.org 551095c595 Android: allows using adb from a chromium checkout without envsetup.sh
Following comments on https://chromiumcodereview.appspot.com/15891002,
rather than setting the path in pylib.__init__, set it via constants and android_commands.py.
Note that android_commands calls into third_party/android_testrunner, which then
uses adb directly, so it still needs to tweak os.environ.path.

BUG=242960
TEST=./build/android/run_tests.py -s cc_perftests

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204341 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-05 21:16:21 +00:00
navabi@google.com f2ee63ec18 Use full path to apk install script and CheckInstall apk.
Allows device status check to be run from any directory after envsetup.sh has
been run. Also fix for declaring fail_step_lst when there are no online devices.

TBR=cmp@chromium.org
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204208 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-05 08:22:45 +00:00
pasko@chromium.org f827de2a8c AndroidPerf: log max CPU index when running tests
BUG=246515

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204098 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-05 00:16:38 +00:00
navabi@google.com 15d1a1ddf8 This is a less aggressive patch than the description below. The original was reverted for breaking the Android tests bot (https://codereview.chromium.org/16299003).
Removes check install step and moves it into the device status check. This will allow us to examine Android install speeds, which have recently caused timeout problems when installing large APK's. Unlike the original CL, low install speed only causes a warning (i.e. does not fail the step). The step fails if the battery of an online device is less than 5%.

BUG=230970, 224004, 242237

---------------------------------------------------
Original CL:
Move CheckInstall to device status and fail on low install speed and battery.

Removes the recently added CheckInstall step and moves the checking to the
device status check step. Recently, devices will install very slowly causing
tests to fail with device problems. We have also seen battery issues. The new
device status check step will fail if any devices install unreasonably slow
(i.e. < 800 KB/s) or have critically low battery level (i.e. < 5%).

BUG=230970, 224004, 242237

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203587

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204013 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-04 19:19:46 +00:00
ilevy@chromium.org 7bcd0abbf9 Add src configuration for Android user build bot
This bot will run tests on an unrooted phone.

Clean up bb_run_bot.py
- use default args for BotConfig objects
- exclusively use slave props for extra_gyp_defines

BUG=236409
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@203853 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-04 05:54:12 +00:00
justinlin@chromium.org 8d10053b9a Disable DeferredImageDecoderTest.drawScaledIntoSkPicture until blink roll.
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@203783 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-03 22:16:48 +00:00
justinlin@chromium.org 81dba6dddf Revert 203587 "Move CheckInstall to device status and fail on lo..."
Broke android tests.

> Move CheckInstall to device status and fail on low install speed and battery.
> 
> Removes the recently added CheckInstall step and moves the checking to the
> device status check step. Recently, devices will install very slowly causing
> tests to fail with device problems. We have also seen battery issues. The new
> device status check step will fail if any devices install unreasonably slow
> (i.e. < 800 KB/s) or have critically low battery level (i.e. < 5%).
> 
> BUG=230970, 224004, 242237
> 
> Review URL: https://chromiumcodereview.appspot.com/16110005

TBR=navabi@google.com
Review URL: https://codereview.chromium.org/16299003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@203594 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-01 06:42:15 +00:00
navabi@google.com b5ff01f371 Move CheckInstall to device status and fail on low install speed and battery.
Removes the recently added CheckInstall step and moves the checking to the
device status check step. Recently, devices will install very slowly causing
tests to fail with device problems. We have also seen battery issues. The new
device status check step will fail if any devices install unreasonably slow
(i.e. < 800 KB/s) or have critically low battery level (i.e. < 5%).

BUG=230970, 224004, 242237

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@203587 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-01 04:55:00 +00:00
phajdan.jr@chromium.org 37f0db60a4 Reconfigure fyi-tests-dbg-ics-gn to do a local build
as opposed to downloading a Lucid build.

BUG=175998
R=ilevy@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@203481 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-31 21:31:10 +00:00
kkimlabs@chromium.org 321aafd7a8 [Android] Raise a compile time error if style resource is under values/
Using paddingStart in style resource under values/ will cause crashes
on certain devices (crbug.com/243794). So Raise an error at compile time
if style resource exists under values/.

BUG=243952

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@203229 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-30 21:38:59 +00:00
frankf@chromium.org 6d3a2b7f06 [chromedriver] Install ChromiumTestShell on the android FYI bot.
BUG=
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@203081 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-30 05:11:41 +00:00
wangxianzhu@chromium.org a80cb34016 Disable StackContainer.BufferAlignment
NOTRY=true
BUG=245043
TBR=ilevy@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@203021 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-30 00:25:17 +00:00
qsr@chromium.org 5a27adb121 Adding option to use gdbtui instead of gdb to adb_gdb
R=digit@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@202855 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-29 13:51:02 +00:00
kkimlabs@chromium.org 79904c8a49 [Android] Generate v14 style resource from values-v17/ not values/.
If styles.xml has paddingStart and exists in values/, it will cause
crashes on Galaxy Tab&Note because style resources are not overrided by
the generated styles.xml (generate_v14_compatible_resources.py), which is to
avoid crashes on Galaxy Tab&Note (crbug.com/235118). So make
generate_v14_compatible_resource.py use styles.xml under values-v17/ not values/

BUG=243952

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@202812 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-29 08:04:51 +00:00
jchaffraix@chromium.org 5604e4d8c8 Windows perf bots: fixes android pylib initialization.
Following crrev.com/202558, android's pylib was initialized on platforms that didn't need.
Check for platform and also make it safer to use should there be problems with "which".

BUG=242960
R=tonyg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@202669 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-28 22:25:07 +00:00
bulach@chromium.org 9e4b7b9838 Android: allows using adb from a chromium checkout without envsetup.sh
There are situations like running tests where it's not necessary to run envsetup.sh.
However, build/android/pylib requires adb to be in the path.
Rather than requiring envsetup, it can be smart enough to set the path itself.

BUG=242960

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@202558 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-28 14:27:33 +00:00
torne@chromium.org 9c5c0adda3 Android WebView: use right variable for android src dir.
The Android build system already defines $(PWD) to be the top of the
source directory as an absolute path, so there's no need for us to
define our own $(GYP_ABS_ANDROID_TOP_DIR) which was being used
incorrectly in some other cases. Replace it in GYP_DEFINES.

BUG=
R=mnaganov@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@202530 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-28 11:03:42 +00:00
digit@chromium.org f6ea8d5cc0 Remove obsolete gnu libstdc++ from the Android build.
For old historical reasons, the GNU libstdc++ headers and libraries
were used in the Android build, in addition to the STLport ones.

This is no longer necessary, so remove them from the build files.

BUG=NONE

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@202402 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-27 13:02:10 +00:00
asanka@chromium.org 2c3dd1b346 Android: Disable download resumption tests
BUG=215894
BUG=243823
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@202251 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-25 01:24:38 +00:00
dfalcantara@chromium.org 25036528ae Disable WebrtcBrowserTest.CallWithDataAndLaterAddMedia on Android
It's been timing out since it's been re-enabled.

TBR=yfriedman@chromium.org
BUG=175683

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@202161 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-24 20:39:25 +00:00
dfalcantara@chromium.org 6e7ba31431 Disable MediaSourceTests on Android
They've been failing on the Android FYI bots since they were introduced.

TBR=yfriedman
BUG=243843

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@202146 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-24 19:34:24 +00:00
navabi@google.com e1b0b25194 Print the serial number of the device that timed out.
Many of our bots have multiple devices. Specify the device that timed out.

BUG=242237

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@202127 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-24 18:27:26 +00:00
frankf@chromium.org 196b7e7880 [Android] Force stop test app before launch (start -S)
Also:
 - Wait for launch to complete (start -W)
 - Move some direct adb calls to android_commands.py

NOTRY=True
BUG=243074

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@201929 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-23 23:36:18 +00:00
dfalcantara@chromium.org 4c482d21dc Let Android port access properly sized images
Depends on assets in http://crrev.com/15136005, which had to be separated because of the trybots.

With the way things are currently set up, Chrome on Android can't access properly
sized image resources:
* The APK only packages the mostly unused 100% resources (none of
  the larger 200% assets)
* The bitmaps don't scale properly when they're converted to Java bitmaps because
  the Java code knows nothing about the resource's expected dimensions on different
  devices
* The Chromium resource loading system doesn't allow us to take advantage of
  Android's resource loading schemes (drawable directories for different screen
  sizes, RTL support, etc.).

Instead of #ifdefing out practically everything in the theme_resources.grd file,
this CL introduces a map between the chromium resource IDs and Android drawables,
allowing us to load up the correctly sized Android assets.

The template system is bootstrapped with the InfoBar and WebsiteSettingsUI icon
assets.

TBR=jochen
BUG=237034,238668

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@201328 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-21 17:32:27 +00:00
ilevy@chromium.org 3c6c0b2021 Fix WebKit Android buildbot script.
Was trying to run a command with a int as an arg.

BUG=239515
TBR=dpranke

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@201147 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-20 22:00:39 +00:00
phajdan.jr@chromium.org dab091a528 GTTF: Convert WebContentsImplBrowserTest to use EmbeddedTestServer.
This eliminates a whole class of problems with SpawnedTestServer
failing to start.

BUG=96594, 230200
R=avi@chromium.org, satorux@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@201099 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-20 16:45:38 +00:00
cjhopman@chromium.org 1753c2d759 [Android] Fix proguard
Gyp supports only very limited ways of changing behavior based upon
CONFIGURATION_NAME. Particularly, it does not support the way that was
supposed to enable/disable use of proguard.

Instead of trying to switch behavior in gyp, instead pass
CONFIGURATION_NAME, proguard_enabled, and
proguard_enabled_dex_input_path to dex.py and switch the behavior
there.

This also extracts the dex actions into build/android/dex_action.gypi
and uses that for the actions in both build/java.gypi and
build/java_apk.gypi.

BUG=240837

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@200958 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-18 02:33:37 +00:00
torne@chromium.org 3560a932f2 Android WebView: tidy up library dependencies.
The comment in android_webview.gyp about static library dependencies not
being handled correctly is incorrect, and the workaround not necessary:
the problem was just that I wasn't using link_settings correctly. Remove
the workaround and instead add proper dependencies in the places that
actually use cpufeatures and cutils (ashmem). This doesn't change the
generated makefiles but makes more logical sense.

BUG=
R=digit@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@200806 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-17 13:46:10 +00:00
mkosiba@chromium.org 31d2af7df2 [android_webview] Fix shell launch script again.
In r195135 I accidentally reverted the fix that was landed in
r192348. This is reverting the accidental revert.

BUG=None
NOTRY=True
R=benm@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@200776 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-17 09:36:55 +00:00
mkosiba@chromium.org 64d8c3e6a7 [android_webview] Add a command line setter tool.
This adds a command line setter tool very similar to the ones already
present for content shell and testshell.

BUG=None
TESTS=None
NOTRY=true
R=benm@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@200775 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-17 09:36:27 +00:00
henrika@chromium.org 62b5b27b5a Disabling failing/crashing webkit_unit_tests.
It seems like a set of WebKit tests are failing on Android bots and I had to disable them as sheriff. I was not sure who to assign the issue to but trchen@ has done modifications in this are and might be able to reassign to a better resource.

TBR=trchen@chromium.org
BUG=241730

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@200774 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-17 09:31:50 +00:00
digit@chromium.org e1c77a52b3 Do not use $ANDROID_TOOLCHAIN set by envsetup.sh.
This reverts the changes from commit 6394facfcd6150a69be418212f1caff2f6639540
and instead improves the adb_gdb script to properly auto-detect the right
location of the toolchain binaries.

This means that on a Linux 64-bit systems, it will first try to find the
64-bit binaries, and if not available, will fallback to 32-bit ones.

Tested with the default toolchain from third_party/android_tools/ndk/
(64-bit) and with --ndk-dir=/path/to/android-ndk-r8d (32-bit).

Also remove "gdb_apk" and "gdb_content_shell" which were obsoleted by
"adb_gdb" and "adb_gdb_content_shell", respectively.

BUG=none
R=yfriedman@chromium.org,navabi@chromium.org,wangxianzhu@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@200547 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-16 16:19:41 +00:00
pliard@chromium.org 9b8b7b0c95 Use a single Python Forwarder instance for each base test runner instance.
This is achieved by having BaseTestRunner instantiate a single Forwarder
instance and inject it into SpawningServer.

This makes the test server spawner instance use an already configured Forwarder
instance for every single unit test rather than instantiating Forwarder every
time (which also meant unnecessarily running 'adb forward' for every single
unit test).

Note that this CL also makes Forwarder thread-safe. This is due to the fact
that the test server spawner does its work on a worker thread and not to the
fact that a single Forwarder instance can be shared accross multiple shards as
one could think.

BUG=229685,239014
R=bulach@chromium.org, craigdh@chromium.org, frankf@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@200500 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-16 09:25:16 +00:00
cjhopman@chromium.org e2f9224298 [Android] Pass -p to mkdir commands
These commands should not fail if the parent directory does not exist.
Pass -p so that all the parent directories are also made.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@200456 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-16 05:14:05 +00:00
cjhopman@chromium.org f13445c6a5 [Android] Only always trigger stripping with component build
With the component build we need to always trigger stripping because we
can't specify the inputs correctly at gyp time. This is not required
for the non-component build.

Also, slightly refactor strip_native_libraries.gypi and its users to
make it more clear what variables are being used by the .gypi.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@200422 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-16 02:40:29 +00:00
zmo@chromium.org 2a89c2ccfb Change gpu blacklists from json resource to const string.
Since we no longer do realtime blacklist update, so the need to keep it as a independent json file is no longer there.

BUG=
TEST=content_unitests
R=apatrick@chromium.org, piman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@200315 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-15 18:14:31 +00:00
skyostil@chromium.org 27f0610f11 Make it possible to run WebGL conformance tests on Android
This patch implements the following changes to make it possible to run
the WebGL conformance test suite on Android:

    1. Copy WebGL test data files to the device.

    2. When running the conformance test, turn on WebGL with the
    --enable-webgl command line flag.

    3. Avoid validating the PCI vendor and device ids for the GPU because
    Android has no such concept.

With these changes, you can run the WebGL conformance test by first
building content_browsertests_apk, removing the WebGL exclusion from 
build/android/pylib/gtest/filter/content_browsertests_disabled and then executing:

    $ build/android/run_browser_tests.py -f WebGLConformanceTest.*

BUG=138226

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@200298 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-15 16:46:55 +00:00
pliard@chromium.org cd400c2477 Add device port unmapping support to forwarder2.
There used not to be any way to unmap a previously forwarded port. Since
the host and device forwarder processes are kept alive during a whole test
suite, both the host and device ended up with an unnecessarily high amount of
unused open sockets. That is source of flakiness (e.g. too many opened file
descriptors).

This adds an UnmapDevicePort() method to the Python Forwarder wrapper class and
modifies the native forwarder2 to accept a negative port on the command line.
When a negative port is provided, the host forwarder tries to unmap that port
(that was mapped previously).

BUG=229685,239014
R=bulach@chromium.org, digit@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@200257 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-15 13:55:08 +00:00
miu@chromium.org 32001034b5 Fix flaky test: Enable RenderWidgetHostViewBrowserTest.CopyFromBackingStore.
Added a spin-wait to cause the test to wait for the browser to create the BackingStore via its normal mechanism.

...and then I went ahead and refactored and cleaned up all the code.  I did not add any significant additional testing.  We will want to do this in a follow-up change.  However, I did get rid of the #ifdef OS_XXX pragmas, so the tests will attempt to run on all platforms, not just Mac and Win, and use the CanXXX() methods to determine which features are supported for testing.

BUG=224351

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@200226 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-15 10:00:13 +00:00
navabi@chromium.org d60aa9d062 Stop build on failed device status check, apk install and add CheckInstall step.
BUG=230970,236035
R=ilevy@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@200020 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-14 17:15:30 +00:00
pliard@chromium.org 04a99455e5 Speedup net_unittests on Android by 30%.
The Chrome test server spawner (running on the host) was sleeping way too much.
Note that ideally we should move away from polling but this still sounds like a
reasonable short term improvement.

R=bulach@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@199949 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-14 08:33:18 +00:00
cjhopman@chromium.org 4f9327e94b [Android] Only reinstall test apk if needed
When running tests, we should only be reinstalling the test apk if it
is different than the one currently installed. So, before reinstalling,
query the package manager for the path to the installed apk, and then
only reinstall if the md5sum of the installed apk differs from the one
we are about to install.

NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@199835 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-13 22:23:49 +00:00
pliard@chromium.org 8bc47d8bdf Workaround ADB port allocation issue.
BUG=239014
R=bulach@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@199711 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-13 12:48:06 +00:00
wangxianzhu@chromium.org a4820b81b7 Use $ANDROID_TOOLCHAIN set by envsetup.sh in adb_gdb and gdb_apk
After recent upgradation to third_party/android_tools/ndk, there is no
linux-x86 toolchain directory any more, but linux-x86_64 instead. This
causes failure of adb_gdb and gdb_apk which hard-coded linux-x86
in the scripts. As envsetup.sh already set correct $ANDROID_TOOLCHAIN,
now use it in the scripts instead of the hardcoded one.

BUG=none
NOTRY=true (presubmit passed)

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@199567 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-10 23:14:37 +00:00
kkimlabs@chromium.org 557496ab19 [Android] Auto-generate only necessary v14 resources.
V14 Resource auto-generation was introduced by crbug.com/235118.
However, some resources doesn't use v17 attributes, so we don't
need to generate for all resources.

BUG=239742

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@199564 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-10 23:11:34 +00:00
petarj@mips.com 099ba5cb01 [MIPS] Fix correct toolchain_dir for MIPS/Android builds
After recent change in android_tools to update ndk, the scripts can reuse
android_host_arch variable for MIPS too. This is important, as the release
now contains 64-bit host toolchain set.

BUG=130022
TEST=build content_shell_apk

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@199492 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-10 16:40:47 +00:00
kkimlabs@chromium.org 692dfe3270 [Android] Warning if Left/Right attributes are used in layout and style xmls.
Since crbug.com/235118, Left/Right attributes are deprecated in favor of Start/End.
So warn if it contains Left/Right.

BUG=239606

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@199452 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-10 10:49:12 +00:00
cjhopman@chromium.org 9370079412 [Android] With gyp_managed_install no device is only a warning
Before running any action that interacts with the device, check that 
one is actually attached. If not, print a big warning and skip the action.

BUG=235521
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@199263 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-09 20:24:25 +00:00
mkosiba@chromium.org e72ab1e31a [android] Fix the adb_gdb script.
The ndk under third_party was updated to not contain the 32-bit toolchains
but the script continues to reference those.

BUG=
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@199234 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-09 17:25:15 +00:00
bulach@chromium.org 3f4c87a0ed Android: fixes option to exclude specific annotated Android instrumentation tests.
Broken at https://chromiumcodereview.appspot.com/14704006/
Wrong number of parameters in run_uiautomator_tests.py

BUG=169875, 239410
NOTRY=True
TBR=sivachandra@chromium.org,craigdh@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@199201 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-09 12:50:46 +00:00
bulach@chromium.org 5c6dbf2fee Android: fixes option to exclude specific annotated Android instrumentation tests.
Broken at https://chromiumcodereview.appspot.com/14704006/
If the excluded option is empty, it wasn't running any tests.

BUG=169875,239410
NOTRY=True
TBR=sivachandra@chromium.org,craigdh@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@199178 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-09 10:43:10 +00:00
sivachandra@chromium.org 882047eecb Add option to exclude specific annotated Android instrumentation tests.
BUG=169875

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@199170 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-09 09:19:44 +00:00
bulach@chromium.org 78fd0046d3 Android: disables WebRTCInternalsBrowserTest.WithRealPeerConnectionCall.
This test was already disabled but the name has changed in r198976.

BUG=181069
NOTRY=True
TBR=nileshagrawal@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@199165 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-09 08:32:45 +00:00
kkimlabs@chromium.org 369f32f18b [Android] Auto-generate v14 style xml resources from the exisitng v17 style resources.
In addition to the previous v14 layout xml auto-generation patch,
(https://codereview.chromium.org/14476011/#ps69001)
this patch adds style xml resource auto-generation.

BUG=235118

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198947 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-08 18:32:49 +00:00
sivachandra@chromium.org 5e50ec4cf4 Alert on zero online devices when last devices file is missing or empty.
BUG=238535

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198931 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-08 17:52:00 +00:00
shashishekhar@chromium.org 1775cb6e7c Fix unit test runner to exit with error when no devices are attached.
BUG=238474

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198914 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-08 16:02:56 +00:00
mnaganov@chromium.org f0edaf1bf4 [Android] Remove "Chrome" and "View" personalities
The content layer code is now by default operates in the "Chrome" mode.
All WebView customizations are applied in the android_webview layer.

BUG=b/8296421
R=benm@chromium.org, bulach@chromium.org, jochen@chromium.org, joth@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198877 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-08 11:59:57 +00:00
mnaganov@chromium.org fc9ab97f55 [Android] Move zoom controls management into WebView
Chrome for Android doesn't use zoom controls, so it makes sense
to move all the related code into android_webview.

However, as visibility of zoom controls is controlled from the
internals of ContentView*, we are providing hooks through a new
delegate interface.

BUG=b/8296421
R=benm@chromium.org, joth@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198862 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-08 07:56:16 +00:00
navabi@chromium.org 980032d878 Revert 194601 "Android: Enable content_browsertests by default."
> Android: Enable content_browsertests by default.
> 
> BUG=138275
> 
> Review URL: https://codereview.chromium.org/13445005

TBR=nileshagrawal@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198770 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-07 18:39:18 +00:00
tonyg@chromium.org f84304a69d [Telemetry] Escape URLs in "Pages:" list.
They must match the trace names printed by PrintPerfResult, which are also
escaped with the same method.

This patch allows the buildbot log processor to work with the updated page
cyclers.

BUG=None
TEST=tools/perf/run_multipage_benchmarks --browser=system page_cycler tools/perf/page_sets/intl_es_fr_pt-BR.json --pageset-repeat=2
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198765 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-07 17:58:28 +00:00
pliard@chromium.org d16dbcb858 Revert "Make IsHostPortUsed() handle ports bound by foreign UIDs."
This is a speculative revert to see if it fixes the flakiness on the Android
testers.

TBR=bulach@chromium.org,shashishekhar@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198735 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-07 16:25:36 +00:00
pliard@chromium.org ac64e2091f Make IsHostPortUsed() handle ports bound by foreign UIDs.
lsof -np is not able (permission denied when running as non-root to be exact)
to retrieve file descriptor information for processes running under a different
UID. This can make IsHostPortUsed() return false when the provided port is
actually used.
Trying to connect to a port rather than binding it should not introduce any
side-effect on the system that could affect next runs as the TODO suggested. It
is also always sane not to depend on an external process (lsof) output format.

BUG=229685
R=bulach@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198683 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-07 12:16:31 +00:00
pliard@chromium.org a0dda3eabf Disable IndexedDBBrowserTestWithMissingSSTFile.DestroyTest on Android.
TBR=dgrogan@chromium.org
BUG=233118

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198681 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-07 12:14:01 +00:00
ilevy@chromium.org e3df4886c6 Add asan=1 gyp defines to asan bot
Fixes asan bot and uses slave_props for extra_gyp_defines.

BUG=160952
TBR=iannucci@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198674 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-07 09:27:47 +00:00
ilevy@chromium.org 34cd9052a4 Switch Asan bot to builder-tester
src/ side of the change.

The data is it transferring is large (2GB)
and it is not used enough to merit the increased
throughput from a split configuration.

BUG=160952
TBR=iannucci@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198673 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-07 08:43:54 +00:00
dimich@chromium.org 73b6dc5294 Fix infinite loop caused by ElideText()
BUG=238405
R=ben@chromium.org, mmoss@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198545 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-06 21:39:13 +00:00
kkimlabs@chromium.org 8c5a209101 [Android] Auto-generate RTL layout xmls from existing layout xmls.
There are several attributes introduced in API 17, mostly for BiDi(RTL) support, e.g., paddingStart.
    This build script will generate another set of resource that is API 14 compatible by
    converting those API 17 attributes to API 14 attributes, e.g., paddingStart -> paddingLeft.
    The goal of this script is for programmers to use those attributes without worrying
    about backward-compatibility care and related bugs. About the bugs, please refer to crbug.com/235118 .
    
    BUG=235118

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198325 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-04 15:47:16 +00:00
alecflett@chromium.org 595ba2d4cc Move components/zip to third_party/zip
Move components to zip as per the discussion here:
https://groups.google.com/a/chromium.org/d/topic/chromium-dev/MgbMTQCNzR0/discussion

BUG=
R=agl@chromium.org, gavinp@chromium.org, jam@chromium.org, joi@chromium.org

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197964

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198222 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-03 23:02:57 +00:00