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

1088 Коммитов

Автор SHA1 Сообщение Дата
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
tedchoc@chromium.org 294001797c [Testing] Be more aggressive when killing android processes via ADB.
Without -9, this was not killing the forwarder.

BUG=237820
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198212 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-03 22:13:03 +00:00
cjhopman@chromium.org 434f25bba4 [Android] Fix md5sum for component build
In the component build, the device executable requires shared libraries
to run. When building, use build/android/native_app_dependencies.gypi
to copy the executable+libraries to a dist directory.

Then, in android_commands.py we need to copy that directory to the
device and specify LD_LIBRARY_PATH when running the executable.

NOTRY=true
BUG=158821

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198183 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-03 21:04:39 +00:00
zmo@chromium.org a629a3a4b2 Some fix for gpu driver bug list.
I am sure this is not the cause why the list has ni effects in Android, but they need to be fixed anyway.

BUG=227162
TEST=
R=gman

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@198038 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-03 02:28:21 +00:00
sivachandra@chromium.org cc28b7d656 Add bot config for Android component builder.
BUG=178878

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@197262 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-30 04:42:59 +00:00
nileshagrawal@chromium.org 20207caf61 Android: Enable FileUtilProxyTest.Touch and PlatformFile.TouchGetInfoPlatformFile.
BUG=86494

These are passing. 
TBR=jar@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@197099 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-29 18:59:07 +00:00
bulach@chromium.org 2f92b2fa64 Android: fixes LD_LIBRARY_PATH for ASan tool.
This was broken by r194833.

BUG=235131

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@197088 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-29 18:22:38 +00:00
digit@chromium.org e21bd3a133 Android: Re-enable three Breakpad unit tests that were previously failing.
The tests were fixed by the following already-rolled upstream Breakpad patch:

  https://breakpad.appspot.com/540002/

BUG=165916

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@197039 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-29 15:06:55 +00:00
petarj@mips.com ec5fa9e4ad [MIPS] Support to build libchromeview for MIPS-Android
Small set of changes in gyp files to enable build for libchromeview for
MIPS-Android.
It also includes minor change in base/debug/stack_trace_android.cc to
redefine SIGSTKFLT for MIPS, since MIPS does not have SIGSTKFLT.

BUG=130022
TEST=build libchromeview

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@196938 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-27 04:10:26 +00:00
ohrn@opera.com 730278964e Introduce arm_version to allow building for armv5, v6 or v7.
This patch deprecates armv7 and adds arm_version that takes an integer
value representing the ARM architecture level.

In addition arm_arch, arm_tune, arm_fpu, arm_float_abi and arm_thumb can
be set to fine tune CPU related compiler flags, defaults are provided for
ARM versions 5 to 7.

BUG=234135

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@196702 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-26 12:06:54 +00:00
palmer@chromium.org ed3e070e26 Differentiate between VERIFY_FAILED and VERIFY_INCORRECT_KEY_USAGE.
VERIFY_FAILED means general failure to validate the X.509 chain at all,
which is not what we want when eKU is incorrectly.

BUG=233150

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@196500 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-25 21:29:56 +00:00
mnaganov@chromium.org 641b0ec99c [Android WebView] Move the most of WebSettings into AwSettings
Historically, WebSettings management is used to be in the ContentSettings class,
while only WebView actually needs it. Chrome for Android is only interested in
the value of the "JavaScript enabled" setting.

This change leaves zoom-related settings intact, as moving them will require
decoupling of the ZoomManager class from the ContentView* family of classes,
which deserves a separate change.

BUG=b/8296421

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@196399 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-25 15:10:05 +00:00
cjhopman@chromium.org a23902746b [Android] Make gyp/apk_install.py resilient to user actions
If a user reinstalls/uninstalls/etc an APK, then the next build of that
APK should always install it (regardless of whether the md5sum of the
inputs matches the recording or not).

Adds an option to CheckCallAndRecord to force the call.

NOTRY=true
BUG=158821,234048

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@196170 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-24 17:17:10 +00:00
bulach@chromium.org 9c582ad0c3 Android: extracts "repo_utils.py" from flakiness_dashboard_results_uploader.py.
Small reusable module.

BUG=
TEST=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@196112 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-24 10:31:33 +00:00
cjhopman@chromium.org cb62e03343 [Android] Set build.is.packaging.debug correctly
The string "build.target" was being used rather than the variable-expanded
"${build.target}".

NOTRY=true
BUG=234546

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@196104 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-24 09:17:19 +00:00
navabi@google.com 393cf603b8 Increase internal space on AVD's from 200M to 800M.
The increase will allow installing multiple channels of Chrome for Android on
the emulator devices.

BUG=164911

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@196062 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-24 07:10:32 +00:00
nileshagrawal@chromium.org d702004bdd Android: Enable webrtc internals browser test.
BUG=181069

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@196046 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-24 05:22:23 +00:00
abarth@chromium.org 7f6e009df9 Remove references to TestWebKitAPI
TestWebKitAPI no longer contains any tests. Once we've removed all references
to it, we can delete it.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@195972 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-24 01:35:43 +00:00
cjhopman@chromium.org 823fb4b3e4 [Android] Use CONFIGURATION_NAME-specific device folders
If the device folder is not specific to debug/release, then switching
configurations changes the state on the device without updating the
corresponding records on the host (i.e. it only updates the ones for
that configuration).

NOTRY=true
BUG=158821

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@195852 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-23 18:30:26 +00:00
nileshagrawal@chromium.org c324109ec3 Android: Disable flaky content_browsertests.
These are flaky on the relase bot.
BUG=233118
R=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@195826 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-23 17:27:56 +00:00
jam@chromium.org 50b768f4c7 Convert the remaining test_shell_tests to content_browsertests.
DomOperationsTests.*, DomSerializerTests.* and ResourceFetcherTests.* depended on TestShell loading URLs correctly. That couldn't be done with RenderViewTest harness since ResourceDispatcher code isn't hooked up. I added a mechanism for the browser test harness to run code on the renderer thread when running in --single-process mode. That way a "browser test" can poke at the renderer code. single-process mode doesn't work on Linux Aura, so disabled those tests there for now (bug 234172). DomSerializerTests.* fail on  Android. They never ran there before since test_shell_tests never worked there, so just disabled them there with a note to investigate.

Note CppBoundClassTest is trivial and doesn't depend on loading, so I just made it a RenderViewTest.

I removed plugin_tests.cc:
-PluginTest.Refresh won't work with sharding. It's for a use case we don't care much about anyways, so a regression, if it happens, isn't critical.
-PluginTest.DeleteFrameDuringEvent is a duplicate of PluginTest.SelfDeletePluginInvokeInSynchronousMouseUp
-PluginTest.ForceReload is for in process plugins (i.e. test shell), doesn't apply to our multi-process plugins
-PluginTest.PluginVisibilty is currently disabled and failing. I thought about porting it and fixing it, but it seemed low priority since it'd be flaky to test this with our multi-process plugins. This code also doesn't change anymore, and if we had a regression we would catch this pretty quickly. If we regress we can write a test then.

mock_spellcheck_unittest.cc: was testing a mock object used in TestShell. Since TestShell is going away, there's no need for this test. if the object breaks and no existing tests break, then it's a non-issue.

memory_file_util.cc wasn't used other than in its unittest. I removed the code and its test.

CppBoundClassTest.* could be converted to a RenderViewTest. The remaining tests (HostVarTrackerTest.*, papiPluginInstanceTest.*, PpapiCustomInterfaceFactoryTest.*, QuotaFileIOTest.*, WebkitGlueUserAgentTest.* were converted to content_unittests.

I will delete the unused webkit/data in a follow up patch (try servers are failing on applying the delete).

BUG=126514,234172,111601,51622

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@195701 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-23 03:08:12 +00:00
cjhopman@chromium.org 56da9a9a88 [Android] Only set recommended flags if they are unset
This allows developers to force the values of individual flags in their
chrome/supplement.gypi. Add documentation for how a user can do that.

Also add a comment about the fastbuild option, but do not ever set it
by default.

NOTRY=true
BUG=158821

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@195334 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-19 23:27:06 +00:00
nileshagrawal@chromium.org d118ac9c35 Android: Disable more flaky browsertests.
BUG=233118
R=yfriedman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@195297 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-19 21:55:25 +00:00
cjhopman@chromium.org fdc31e70fc [Android] Add native library to strip inputs
If the native library changes, we should re-strip/copy it. Add it to the inputs
so that we do that.

BUG=158821

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@195274 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-19 20:56:53 +00:00
ppi@chromium.org f1f47821cb Enable net_unittests that rely on device time settings on Android.
Since http://crbug.com/164180 is now fixed, we can enable ~10
unittests that depend on the device time settings and were
failing exclusively on bots.

BUG=160756

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@195225 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-19 17:48:48 +00:00
mkosiba@chromium.org 3e43d8b90e [android] Resize the android_webview if it's 0x0 initially.
This changes the content size update path for android_webview to use
the preferred size RenderView mechanism instead of the
CompositorFrameMetadata.
The reason for the change is due to the fact that the CompositorFrameMetadata
is not updated when the view size is 0x0, which is a common use case
for the WebView when it's layout mode is set to "wrap content".

BUG=b/8187850
TEST=AndroidWebViewTests

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@195135 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-19 12:46:38 +00:00
cjhopman@chromium.org b88f8946bf [Android] Use a script on the device for creating library symlinks
On new versions of Android, re-installing an APK creates a new /lib/
folder for native libraries. This means we need to recreate all the
symlinks in that directory (not just the ones that have changed).

To make all these links quickly, it should run as a single adb command.
To make that simple, we first create a simple script that, when run,
creates all the symlinks for an APK. Then, after any install, we send a
single adb command to run that script.

This also requires that the apk_install script only triggers its 
dependents when it actually installs an apk.

BUG=158821

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@195124 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-19 09:16:13 +00:00
nileshagrawal@chromium.org f51930a028 Disable newly added WebRTCInternalsBrowserTest.withRealPeerConnectionCall for android.
BUG=181069,230997

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@195093 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-19 08:02:01 +00:00
nileshagrawal@chromium.org b7abcf5d27 Revert 194991 "[Android] Fix null-build broken by https://codere..."
Breaks the strip step.

> [Android] Fix null-build broken by https://codereview.chromium.org/14322004/
> 
> The change unintentionally made the "always re-run strip" logic apply to
> non-component build as well. Restored the original logic.
> 
> BUG=158821
> NOTRY=true
> 
> Review URL: https://chromiumcodereview.appspot.com/14057015

TBR=yfriedman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@195092 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-19 07:16:58 +00:00
yfriedman@chromium.org ec1c07ebc5 [Android] Fix null-build broken by https://codereview.chromium.org/14322004/
The change unintentionally made the "always re-run strip" logic apply to
non-component build as well. Restored the original logic.

BUG=158821
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@194991 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-18 20:20:36 +00:00
pliard@chromium.org 33b99155a9 Disable IndexedDBLayoutTest.* on Android.
The content_browser test suite has been recently graduated to the main
waterfall and a few tests are failing.

BUG=233118
TBR=nileshagrawal@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@194909 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-18 13:07:47 +00:00
pliard@chromium.org 7d6954c4d6 Disable IndexedDBBrowserTest.* on Android.
The content_browser test suite has been recently graduated to the main
waterfall and a few tests are failing.

BUG=233118,232997
TBR=nileshagrawal@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@194880 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-18 11:20:20 +00:00
bulach@chromium.org b18d1833d5 Android: disables a few more content_browser_tests.
This test suite have been recently graduated to the main waterfall,
and a few tests are failing.

BUG=233118
TBR=nileshagrawal@chromium.org
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@194871 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-18 10:11:30 +00:00
bulach@chromium.org d90b2bf15f Android: disables a few content_browser_tests.
This test suite have been recently graduated to the main waterfall,
and a few tests are failing.

BUG=233118
TBR=nileshagrawal@chromium.org
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@194868 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-18 09:38:52 +00:00
yfriedman@chromium.org 84c9f35d43 [Android] Fix forwarder for the component build
Repurposes the gyp scripts for processing native libraries for an apk and use them for a native library (i.e. forwarder).

Additionally, adjusts the forwarder python script to set LD_LIBRARY_PATH when invoking the forwarder.

BUG=158821

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@194833 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-18 07:23:26 +00:00
yongsheng.zhu@intel.com e693bf4145 Add gdb script for android webview test shell
For the convenience of debugging android webview test shell

TEST=
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@194797 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-18 06:02:40 +00:00
cjhopman@chromium.org 54e9b7827d [Android] Only write the ordered libraries file when it changes
This action is triggered whenever the top-level library is re-linked. This file
being touched then triggers generating a Java file, and then
rebuilding/installing the APK. This is all unnecessary.

Instead, only write this file if the output has changed. Then, since the ninja
generator uses restat=1, dependent actions will only be retriggered when this
actual changes (almost never).

BUG=158821

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@194780 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-18 05:31:24 +00:00
nileshagrawal@chromium.org 2db58d2107 Android: Disable flaky IndexedDBLayoutTest.IndexTests
BUG=232997
R=yfriedman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@194732 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-18 00:15:34 +00:00
nileshagrawal@chromium.org 2df263671d Android: Enable content_browsertests by default.
BUG=138275

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@194601 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-17 15:54:36 +00:00
cjhopman@chromium.org 4a21c3e8a0 [Android] Refactor md5_check + add tests
This adds a function md5_check.CallAndRecordIfStale that makes the
common (and currently only) use of Md5Checker much simpler (i.e just
call this function). All the users of md5_check are updated to use this
function, and everything else in md5_check is no longer part of the
public API.

Also, adds tests for the md5_check module. These are only run manually currently.

BUG=158821

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@194377 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-16 17:05:20 +00:00
nileshagrawal@chromium.org 8a9c8990e9 Revert "Android: Disable IndexdbLayoutTests."
This reverts commit 5a15944557b69146ffc54bde0456f9b915f2ff3c.

Revert "[content shell] gracefully deal with process switches"

This reverts commit 76857ccccfca012ce38be0a5a73efe90a81cf441.

Reverting https://codereview.chromium.org/13998012 to fix indexeddblayout tests for android.
BUG=231568,111316

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@194245 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-15 22:15:56 +00:00
nileshagrawal@chromium.org 3c95be3c44 Android: Disable IndexdbLayoutTests.
BUG=231568
TBR=jochen@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@194227 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-15 20:57:02 +00:00
cjhopman@chromium.org 5da41d20c3 [Android] Add recommended.gypi with recommended settings
This gypi includes the recommended gyp settings for Chrome for Android
development, as well as instructions for using the settings.

NOTRY=true
BUG=158821

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@194219 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-15 20:13:17 +00:00
cjhopman@chromium.org fe471aa1f9 [Android] Create and use .TOC files for jars
The native component build creates .TOC files for each of the native
libraries. These files contain the compile-time visible API of the
corresponding library. That is, if something changes in the native
library that could have an effect on linking of dependent libraries,
then that change will be reflected in the .TOC file. Then, these .TOC
files can be used to determine if linking of dependents is required.

This change brings that same magic to Java.

When building a .jar, we also create a .jar.TOC that includes the
signatures for public/protected classes/functions/variables (including
the values for constants since they can be inlined dependents).

When compiling a Java library, use an Md5Checker over the .java files
and the classpaths .jar.TOC (using the .jar if the .TOC isn't available
as is currently the case for prebuilt jars).

BUG=158821

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@194080 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-13 02:49:36 +00:00
nileshagrawal@chromium.org ad7b94108f Android: Make number of test retries configurable.
BUG=230113

This also reduces the default number of retries from 3 to 2.
So we will now run a test 3 times before giving up (instead of 4).

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@194078 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-13 02:39:54 +00:00
nileshagrawal@chromium.org d468e87934 Android: Disable failing webrtc browser tests.
BUG=181069

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@194017 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-12 21:31:01 +00:00
frankf@chromium.org f031a793cd [Android] Split uiautomator test runner from instrumentation.
Also, some minor refactoring.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193967 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-12 18:28:28 +00:00
nileshagrawal@chromium.org cf3b2bc716 Android: Push content/test/data/media for content_browsertests.
BUG=138275

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193964 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-12 18:08:20 +00:00
aurimas@chromium.org 0bb332df6a [Android] Moving input related files to a separate input/ directory.
Cleaning up the content/public/android/java/src/.. ../content/browser/
directory by moving input related classes to a separate directory.

BUG=230059
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193760 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-11 21:38:49 +00:00
cjhopman@chromium.org 6260898c10 [Android] Build gtest APKs like other APKs
After much work, we can build gtest APKs without first transforming .java files, resource files, or the AndroidManifest.xml. We can directly use java_apk.gypi and build like all other APKs.

Do that.

Also, native_test_apk.xml was the last user of common.xml and sdk-targets.xml, and so those can now be removed.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193576 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-11 04:47:10 +00:00
sivachandra@chromium.org 6e0fb000e0 Add a new Android bot id for LKGR clobber builder.
BUG=164196


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193529 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-11 01:23:54 +00:00
cjhopman@chromium.org c9a3a7737d [Android] Split Ant -package and -package-resources
Splits apk-package.xml into apk-package.xml and
apk-package-resources.xml and adds a new gyp action for
package-resources.

This continues the simplification of gyp actions (i.e. each individual
action should be simple).

Also, allows more accurate specification of inputs for
-package-resources vs -package (and allows -package-resources to be
done in parallel with javac/dex/etc.).

BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193491 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-10 23:10:17 +00:00
frankf@chromium.org 6581cc7d40 [Android] Reduce test logging verbosity to INFO on buildbots.
Also, the output of host commands are now at DEBUG level.

BUG=160320

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193479 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-10 22:38:59 +00:00
frankf@chromium.org 3c02155a87 [Android] Add OWNERS file for build/android/pylib
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193446 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-10 20:29:52 +00:00
navabi@google.com ae91e70089 Fix AVD configuration and defaults based on dogfooder input.
I have worked with a couple developers to dogfood the installation and running
of AVD's using the build/android scripts. The following suggestions have been
taken are are implemented by this change:
 - Use configuration of AVD for Galaxy Nexus by Google as default config
   - allows developers to use software keyboard
   - uses the Galaxy Nexus skin with Back/Home/Apps buttons at bottom
 - Defaults (one x86 AVD) are printed on the help page
 - Does not require virtualization support for ARM emulator (only x86)

BUG=164911


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193281 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-10 01:55:31 +00:00
craigdh@chromium.org 63cae74975 [Android] Thread names reflect the device serial number they are associated with.
BUG=160320
TEST=Ran the tests and unittests

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193274 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-10 00:43:10 +00:00
craigdh@chromium.org b8c3a75578 [Android] Switch all subprocess.Popen calls to use a temporary file and other Python bug workarounds.
BUG=224382
TEST=Ran tests.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193273 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-10 00:38:06 +00:00
cjhopman@chromium.org 9a5e20f44c [Android][Reland] Extract signing+zipaligning to python
Continued de-antification. This one is pretty straightforward.

Landed in https://chromiumcodereview.appspot.com/13427020
Reverted in https://codereview.chromium.org/13866023/

TBR=yfriedman@chromium.org
BUG=158821

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193238 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-09 22:22:15 +00:00
viettrungluu@chromium.org feef0f12c7 Revert 193160 "[Android] Extract signing+zipaligning to python"
> [Android] Extract signing+zipaligning to python
> 
> Continued de-antification. This one is pretty straightforward.
> 
> BUG=158821
> 
> 
> Review URL: https://chromiumcodereview.appspot.com/13427020

TBR=cjhopman@chromium.org
Review URL: https://codereview.chromium.org/13866023

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193182 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-09 19:50:12 +00:00
nileshagrawal@chromium.org d831aa8832 Android: Disable failing AudioLayoutTests.
BUG=138275

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193174 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-09 19:15:59 +00:00
cjhopman@chromium.org 6c1656d8d8 [Android] Extract signing+zipaligning to python
Continued de-antification. This one is pretty straightforward.

BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193160 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-09 18:39:03 +00:00
craigdh@chromium.org 2bc0ff70bc [android] Improve logging output.
BUG=160320
TEST=ran the tests

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193143 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-09 18:00:32 +00:00
nileshagrawal@chromium.org 26fc908b7e Android: Disable webrtc internals browser tests.
BUG=181069

They are failing while trying to load the chrome:://webrtc-internals
Most
 likely the resources needed to load the page are not present

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193141 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-09 17:50:05 +00:00
nileshagrawal@chromium.org 434e1c7d0d Android: Avoid multiple data file pushes for unittests
This also fixes failures in content_unittests and components_unittests when they are run separately.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193039 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-09 08:46:27 +00:00
shouqun.liu@intel.com d1213999be Android: fixes emulator support in unit test scripts.
* Catch exception in CheckKVM in case kvm-ok is not available.
* Add abi option for launching emulator.

This patch is contributed by Wu Hengzhi (hengzhix.wu@intel.com).

BUG=
TEST=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193019 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-09 05:40:41 +00:00
cjhopman@chromium.org aa5f147971 Add modified time checking to strip_library_for_apk.py
Often this action is triggered and only actually needs to strip few/no
native libraries (i.e if only base.so changes there is no need to strip
all the other libraries). Add modified time checking to this action.

Since the input files are very large, using md5 checking is too slow
(i.e. it is not much, if any, faster than just doing the strip).

BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193003 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-09 04:27:23 +00:00
nileshagrawal@chromium.org 1bccb640d1 Android: Fix data path for components/test/data/zip
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192859 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-08 19:27:38 +00:00
nileshagrawal@chromium.org ce7e119803 Android: Also push media files for content_browsertests
BUG=138275

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192826 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-08 16:16:09 +00:00
tfarina@chromium.org 6b4be5344d base: Consolidate all test data directories under base/test/data.
This is the follow up patch I promised in r191077 -
https://chromiumcodereview.appspot.com/12481028

TEST=base_unittests
R=darin@chromium.org,bulach@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192780 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-07 16:27:46 +00:00
newt@chromium.org 7b9f646125 [Android] Extend setup timeout for content_browsertests.
content_browsertests were timing out on the Android FYI bots since it
took more than 7 minutes to push the test files to the device. This
extends the timeout to 20 minutes, as a stopgap until we can reduce
the number of files that need to be pushed.

BUG=138275


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192682 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-06 01:10:42 +00:00
sivachandra@chromium.org 13da7a43a5 Add provision_devices step to all Android testers.
This CL adds --auto-reconnect as an option to the
provisioning script. This option is not being used.

BUG=164180


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192668 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-06 00:25:19 +00:00
cjhopman@chromium.org f5ba848b4d Use java_apk.gypi for gtest apks
Currently, normal APKs and instrumentation APKs are both built using
java_apk.gypi (which includes all kinds of new hotness). Native
unittest APKs, though use apk_test.gypi and thus the complicated
native_test_apk.xml and Android's Ant build.xml. That is bad.

This change updates apk_test.gypi to include java_apk.gypi and so
brings these two ways of building APKs into alignment. It also very
slightly updates the configurability of java_apk.gypi and
apk-package.xml.

There are still a couple of targets in WebKit that use
generate_native_test.py and native_test_apk.xml directly that need to
be updated to use apk_test.gypi before those two scripts can be
simplified/removed.

BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192662 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-06 00:14:39 +00:00
nileshagrawal@chromium.org f5b4a448b9 Android: Provide a smaller list of files to be pushed for content_browsertests.
BUG=138275

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192656 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-06 00:01:22 +00:00
cjhopman@chromium.org 0ed4367af2 Package correct libraries in apk
With gyp_managed_install no shared libraries should be packaged in the
APK (except gdbserver).

When toggling gyp_managed_install, there may be left over libraries in
<(intermediate_dir)/libs. APK packaging should use a different
directory when doing a managed install, so that it does not include the
library from a non-gyp_managed_install build.

BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192617 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-05 19:55:07 +00:00
frankf@chromium.org ec917a2e02 [Android] Fix parsing of md5sum_bin_host's output broken in r192444.
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192603 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-05 18:08:56 +00:00
cjhopman@chromium.org eca42680e4 Add input md5 check to create_device_library_links.py
The md5 stamp path includes the device serial (i.e. the stamp is
library-device specific).

Also, this no longer creates a shell for-loop as the command to send to
adb. adb shell has a ~1000 character limit for commands, and the
for-loop was exceeding that limit. Now that we only create links for
libraries that actually have changed, there is not as much benefit to
creating all the links in one adb command.

BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192484 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-05 03:51:51 +00:00
cjhopman@chromium.org ff311e931e Improve javac action output
For non-chromium code, suppress all output when successful (i.e. warnings).

For chromium code, add -Xlint:deprecation to get detailed deprecation
warnings.

BUG=164395


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192479 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-05 03:42:28 +00:00
cjhopman@chromium.org 196ded54dc Suppress Ant build noise
Use a simple wrapper script for calling ant. This allows us to suppress the
"BUILD SUCCESSFUL" + timing output from ant.

BUG=164395


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192478 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-05 03:41:57 +00:00
cjhopman@chromium.org 57c0ae155f Make apk_install.py check input md5
Since we have to always trigger the apk install action, we should only
reinstall the apk when it doesn't match the one (we think) is installed
to the device.

BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192457 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-05 02:37:20 +00:00
cjhopman@chromium.org 26e6c4eddd Extract GetSerialNumber() from inner loop
This call is a bit slow, and is especially noticeable when only
few/no libraries need to be pushed. Also, we only need to write the new
md5 stamp if it has actually changed (i.e. it is stale).

BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192454 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-05 02:27:15 +00:00
frankf@chromium.org 2fea11220f [Android] Attempt to fix timeouts on Android bots.
Use subprocess communicate for getting md5sum hashes on the host.

BUG=224382
TBR=craigdh@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192444 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-05 02:05:37 +00:00
cjhopman@chromium.org 05938fc5f8 CheckCallDie: add option to suppress successful output
Some commands that are called by build scripts are particularly verbose
(ant, dex, readelf). For these commands, the output (when successful)
is not useful (unlike javac, for example). Add an option
(suppress_output) to build_util.CheckCallDie to disable printing of
stdout/stderr when the call is successful.

Also, move remaining build scripts in build/android to
build/android/gyp.

NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192409 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-04 23:04:40 +00:00
frankf@chromium.org d3c159ea59 [Android] Remove emma coverage logic for instrumentation tests.
We don't use coverage metrics, and this is just polluting the code.

BUG=172090

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192364 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-04 18:04:38 +00:00
mkosiba@chromium.org a484e4d5c4 [android_webview] Fix shell launch script.
Missed this when renaming the activity.

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


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192348 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-04 16:48:49 +00:00
craigdh@chromium.org 5605f45603 [Android] Print the stack of deadlocked threads when sharding.
BUG=224382
TEST=unittest included

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192343 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-04 16:20:28 +00:00
cjhopman@chromium.org 5684a94e39 Add input content checking to some build scripts
Some build steps, particularly javac, have really loose input rules.
I.e. javac steps are re-built when any input jar changes. Often, this
leads to unnecessary rebuilds of all the following steps.

Other build tools (ninja, goma), will check the contents of the inputs
to a step, and if those inputs haven't changed that tool doesn't
actually re-run the command for creating the output.

This change brings that same benefit to some of the Android python
build scripts. Particularly those that will save a significant amount
of time by adding input content checks.

The checking checks both the input files and the command that will be
run. It compares this against a stored md5 digest. If it has not
changed, then the output does not need to be recreated (though it is
still touched to trigger following steps).

BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192265 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-04 09:35:50 +00:00
frankf@chromium.org c7956d6723 [Android] Specify dependency files for instrumentation tests.
Add a virtual PushDependencies() method to base test runner which will push all files to devices during setup.

BUG=226058

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192167 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-03 21:50:36 +00:00
hongbo.min@intel.com 8286716a26 Split the power monitoring feature from SystemMonitor
The SystemMonitor is a mixed monitor which not only monitors
the power state changes but also the devices changes. This
patch is to separate the power monitor from SystemMonitor
as a new class PowerMonitor which is dedicated to monitor
power state.

The next step is to seek a opportunity to refactor SystemMonitor
as something like DeviceMonitor.

BUG=149059
TEST=base_unittests --gtest_filter=PowerMonitorTest.*

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192114 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-03 19:06:51 +00:00
cjhopman@chromium.org 561e3ec42e Make write_library_dependencies.py find all transitive dependencies
For the component build, it is impractical/impossible to explicitly
list all library dependencies. This list is required (in dependency
order) for several of the apk-building steps.

For now, we will generate this list as follows:
Use readelf to find all transitive dependencies
Topologically sort those dependencies

Once we can expose this information from gyp
(http://crbug.com/2255588), it is straightforward to update this action
to use the gyp-exposed list of libraries.

BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192103 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-03 18:20:22 +00:00
frankf@chromium.org df0351d77f [Android] Set flags for uiautomator based on annotations not test name.
Also, pick up the test jar using the name instead of full path.

BUG=
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192085 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-03 17:33:57 +00:00
bulach@chromium.org 29c745e4b7 Android: nits following library loader changes.
Truly small follow-up from r191695.
No functional changes.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191930 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-02 23:24:43 +00:00
nileshagrawal@chromium.org 1159ad6493 Android: Enable a bunch of InProcessBrowserLayoutTests.
Also allow multi level nested loops. number of passing tests: 108-->200

BUG=138275


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191903 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-02 21:42:27 +00:00
cjhopman@chromium.org 6bcaee7278 Push native libraries separately when gyp manages install
When an APK is installed, any native libraries it contains are
extracted to the APK's lib folder on the device. It is actually
possible to add, change, or remove libraries in that folder directly.

This means, that when gyp is managing the install of APKs, the APK does
not actually need to include the native library, and that can be pushed
separately.

This does several nice things:
libraries can be pushed while a .apk is building
.apk no longer needs to be rebuilt+reinstalled when a library changes
if native library isn't changed, it doesn't need to be zipped+installed
w/ component build, only changed libraries will need to be reinstalled

BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191888 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-02 20:36:13 +00:00
cjhopman@chromium.org 4151593374 Allow the build to install apks
Add a gyp variable "android_managed_install" which defaults to off/0.
When this variable is 1, building an apk target will install that
target.

This will allow us to do crazy things with the install like pushing
native libraries independent from the apk they belong to.

This currently just does an "adb install -r <(apk_path)". I.e. it only
works for (the typical) single device attached workflow. This could
be made configurable to handle other cases (or maybe just install to all
devices attached, or just to the first device).

BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191840 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-02 16:55:46 +00:00
jayjang@chromium.org 867afcbe90 Support multiple proguard flags from java_apk.gypi. Proguard supports multiple proguard configuration files but java_apk and apk-build.xml supports only one proguard configuration.
BUG=181470


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191806 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-02 09:10:54 +00:00
cjhopman@chromium.org dacd1ae54c Convert native strip from rule to action
First, this allows us to correctly have the output of the copy/strip
action be an input to the apk package action.

Second, this step now uses the list of libraries created by ordered
libraries step. This is required to support the component build where
we can not manually list the required libraries.

BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191754 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-02 03:23:14 +00:00
mariakhomenko@chromium.org 7d960d1c27 Make envsetup.sh and envsetup_functions.sh to be both bash and zsh compatible.
BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191733 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-02 01:02:46 +00:00
yfriedman@chromium.org c69e0c3a8c [Android] Make build output a little quieter.
Suppress warnings from jsr305 by only enabling some warnings for chromium_code.
Also fixes the fact that components code wasn't setting chromium_code


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191706 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-01 23:52:40 +00:00
cjhopman@chromium.org 62e46d65b0 Make findbugs ignore NativeLibraries.java
BUG=158821

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191704 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-01 23:42:19 +00:00
cjhopman@chromium.org d13f9eb51a Make the build control what library(/ies) to load
At build time, we know what native libraries an apk needs to load.
Instead of requiring those .apks to specify this again in code, instead
generate a .java file containing a list of the libraries to load.

This is done using a pattern similar to resources, content_java is built
with a placeholder NativeLibraries.java (i.e. without an actual value
for its libraries list). The corresponding .class file is not included
in content_java.jar. Then, when building an apk we generate the "real"
NativeLibraries.java (with the real String[]) and include that in the
.apk.

This is designed to also support the component build, where, we will
have to calculate the list of libraries at build time, and sort them in
dependency order (because Android's linker, for some reason, doesn't do
that itself).

BUG=158821
TBR=brettw@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191695 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-01 23:12:33 +00:00
ilevy@chromium.org 87c513c2d3 Disable android auto-reconnect on chromium.perf
Script is failing with permission error ( http://goo.gl/bgdRQ ):
CRITICAL:root:PUSH FAILED: failed to copy
'/b/build/slave/Android_Nexus4/build/src/out/Release/adb_reboot' to
'/data/local//adb_reboot': Permission denied

TBR=sivachandra

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191491 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-30 03:06:52 +00:00
sivachandra@chromium.org 5b7206cd04 Provision Android devices after the 'device_status_check' step.
BUG=169338


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191315 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-29 06:21:13 +00:00
cjhopman@chromium.org 2ddf6003dc Output better error messages during build
The python build scripts use subprocess.check_call() for external
commands (aapt, javac, etc). On a failure, it prints the python
stacktrace, followed by the command being run (in a form that can be
copy-pasted and actually work), followed by the output from the command.

Previously, it was printing command output, then command, then
stacktrace which is much less useful.


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191300 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-29 05:06:32 +00:00
skyostil@chromium.org 53e61c0557 android: Update comment about invalid timestamps from SurfaceFlinger
A frame with a timestamp of INT64_MAX actually means that the fence
object associated with the frame is still pending or that the frame has
not yet been displayed. Update the comment in SurfaceStatsCollector to
make this more obvious.

No functional changes.

NOTRY=true


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191158 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-28 16:22:22 +00:00
tfarina@chromium.org 6b0f867501 base: Move the rest of JSONValueSerializer unit tests from c/common to base/json.
This is the follow up patch to r189315 - https://codereview.chromium.org/12910004
where we moved the half of tests that didn't depend on json test files.

json_value_serializer_perftest.cc was not moved yet because it depends on
chrome/common/logging_chrome.h

TEST=base_unittests --gtest_filter=*JSON*
TEST=perf_tests --gtest_filter=JSONValueSerializerTests*

R=darin@chromium.org,bulach@chromium.org


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191077 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-28 00:40:04 +00:00
navabi@google.com bceaac3ee5 Add script to download SDK, system images and create and start AVDs for testing.
BUG=164911


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191075 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-28 00:23:22 +00:00
jayjang@chromium.org 856d2b5635 Enable configuralbe mergemanifest.enabled again. It's reverted on recent refactoring
BUG=181470


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191043 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-27 22:03:42 +00:00
frankf@chromium.org ec7bc21f60 [Android] Shorten long suite names in test reporting step.
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191021 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-27 21:04:12 +00:00
skyostil@chromium.org 194e4ec1d9 android: Add interactive surface statistics viewer
Add a simple tool for viewing graphics surface statistics interactively.
Sample output:

avg_surface_fps (fps)   frame_lengths (vsyncs)   jank_count (janks)   max_frame_delay (vsyncs)
---------------------   ----------------------   ------------------   ------------------------
            58.00                    1.158                    1                          4
            55.00                    1.215                    2                          7
            57.00                    1.174                    2                          3
            56.00                    1.192                    2                          6
            56.00                    1.196                    3                          3
            54.00                    1.239                    1                          8

BUG=https://b/8364918


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190930 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-27 14:05:50 +00:00
newt@chromium.org 8b63827d56 [Android] Allow Java libraries to access resources from dependencies.
Libraries could previously access dependencies' resources in Java code
but not in XML layout files. This enables accessing these resources in
layout files as well, with the compromise that resources can now be
accessed using the wrong package name in Java code. Since resource
names are global anyway (an APK can't contain two resources with the
same name), this is deemed OK.

BUG=176069


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190896 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-27 09:48:03 +00:00
cjhopman@chromium.org 83d2ed66a8 Fix proguard
Proguard should only be run in Release mode (in gyp, proguard_enabled is
not set based on the configuration). This is the way that we had
been determining whether or not to run proguard before recent Ant
refactoring.

Also, proguard needs the path to the android.jar


BUG=224079


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190876 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-27 09:04:27 +00:00
nileshagrawal@chromium.org b80ff6ff5c Android: Disable failing content browsertests on experimental bot.
BUG=224134,181069


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190859 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-27 08:00:38 +00:00
jln@chromium.org 9064054f9d Android: move sandbox/breakpad to stable tests.
sandbox_linux_unittests are no longer flaky, move them to stable.
Move breakpad_unittests as well.

BUG=169416
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190795 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-26 23:39:33 +00:00
bulach@chromium.org 8baf4ba833 ASan / Android: call CopyFilesOnce before starting up forwarder.
Forwarder needs the ASan wrapper, so we need to push the file before starting it.

BUG=223918
TEST=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190794 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-26 23:39:21 +00:00
cjhopman@chromium.org d63e35e839 Translate some ant to python
This moves java compilation, jar, and dex for apks from
ant to python. This uses the same javac.py and jar.py
that are used by build/java.gypi for libraries and introduces a simple dex.py.


BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190756 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-26 20:44:29 +00:00
frankf@chromium.org 4aa93bd2ae [Android] Fix monkey tests after base test result rewrite.
Since test results are hashed on test names, we need to give
unique names to monkey tests running on each device.

BUG=
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190720 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-26 18:32:49 +00:00
cjhopman@chromium.org bf2791cc95 Split apk-build.xml into 3 steps
In preparation for rewriting these actions in python, split apk-build.xml into smaller ant scripts. This should not change the functionality and mostly is just splitting the file and identifying the properties and defines required for each of the new files.

Some of the configuration is moved out of ant and into gyp (i.e. the android_manifest_path is now gyp-configurable).

Also, the ant scripts now use the correct basedir! That is, these ant scripts actually understand relative paths. To go along with this, resource_dir is the relative path to the resource directory (rather than a path relative to java_in_dir).

BUG=158821
TBR=torne@chromium.org, brettw@chromium.org
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190712 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-26 17:35:21 +00:00
frankf@chromium.org 9bc442ed77 [Android] Do not list tests without logs in 'Detailed Logs' section.
TEST=python base_test_result_unittest.py
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190705 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-26 17:15:27 +00:00
newt@chromium.org 87b2b696dc Generate Android string files from generated_resources.grd.
This enables Android layouts and Java code to use strings from
generated_resources.grd directly.  Strings tagged with
formatter_data="android_java" in generated_resources.grd are used to produce an
Android strings xml file.

BUG=176069


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190573 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-26 07:31:57 +00:00
frankf@chromium.org 33c87f851c [Android] Rewrite base test result classes.
- Use set instead of list
- Encapsulate internals
- Add unit tests
- Separate out the reporting utilities

BUG=167331
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190525 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-26 00:29:12 +00:00
mkosiba@chromium.org cad2a9b345 [android_webview] Build test code against the shell APK.
This change is to fix resource-related issues with the current approach.
We can't include resources in the test_java target to share them between
the shell and test apks, so we need one apk to contain the shell and run
tests against.
To achieve this we apply the same trick as testshell does and build the
test code against the .jar created as a side-effect of building the shell
apk target.
This change completely removes the test_apk target.

BUG=None
TEST=AndroidWebViewTests
TBR=bulach@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190404 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-25 15:37:45 +00:00
peter@chromium.org f9f0ba07cf Failing layout tests on Android shouldn't fail the whole bot.
Output a warning instead of a failure when the layout test command
fails.  We'll revert this when we've got a stable base, and it will
be easier for others to track webkit_unit_tests and TestWebKitAPI
failurse until that happens.

BUG=218257

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190135 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-24 00:28:35 +00:00
joth@chromium.org 825c074658 - switch CleanupReference to have a reaper thread rather than sacrificial object, as the
old design was causing many spurious messages to be sent to the UI thread.
- CleanupReference now triggers when GC sees the object has become weakly rather than
phantom reachable, as this can occur earlier but if sufficient for knowing we must
perform native cleanup.
- added some basic GC cleanup tests in CleanupReferenceTest.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190110 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-23 23:19:17 +00:00
cjhopman@chromium.org 5496f2e09a Make process_resources.py more configurable
This allows more configuration of the aapt call from within gyp. This is primarily to support differences that are required to use process_resources.py for java_apk.gypi.


BUG=158821

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190055 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-23 18:38:32 +00:00
nileshagrawal@chromium.org 5e33d7c406 Android: Disable PasswordFormConversionUtilsTest tests
BUG=187500

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@189707 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-21 22:44:16 +00:00
ilevy@chromium.org 63a8de6b1a Upload Android test data to flakiness dashboard
This CL adds flakiness dashboard integration to
android bots on chromium.linux.

BUG=150801
TEST=Verified flakiness arg passed for main waterfall bots but for trybots.
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@189516 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-21 03:53:23 +00:00
aberent@chromium.org 941dc530f4 Remove unused PerfTestSetup class
Second stage of https://codereview.chromium.org/12720010/. The
downstream patch has now been landed so we can now remove this
class.


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@189378 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-20 20:14:48 +00:00
frankf@chromium.org 8a450f5010 [Android] Enable running uiautomator tests.
- uiautomator uses instrumentation runner for results reporting.
- Separate the concept of test jar (for progaurd consumption) from test
  apk
- clear the app before every uiautomator test

BUG=162742
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@189343 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-20 18:06:53 +00:00
sivachandra@chromium.org d52c1fbe79 Flunk the build if no Android devices are online.
This is useful as the bot is proceeding to the next step and failing
there otherwise.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@189341 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-20 17:56:11 +00:00
mkosiba@chromium.org 9daf1a841f [android_webview] Add test shell for webview.
This adds a simple test shell (most code stolen from chrome testshell)
for android_webview testing.
The only currently supported rendering mode is s/w rendering.

BUG=None
Android_webview-only change, ran through trybots.
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@189246 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-20 12:06:53 +00:00
dpranke@chromium.org 50b6d750c2 look for additional_expectations as well as additional_expectations_files
new-run-webkit-tests uses --additional-expectations, and so we should change
the factory properties from additional_expectations_files to
additional_expectations in order to be consistent.

R=ilevy@chromium.org
BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@189231 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-20 09:34:10 +00:00
jayjang@chromium.org 06727a213d Make manifestmerge.enabled configurable from java_apk.gypi In order to put activity or service AndroidManifest.xml by flag we need to be able to set "manifestmerge.enabled=true" from gyp file. This is required to put googletv specific activity and services
BUG=181470


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@189115 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-19 21:40:39 +00:00
aberent@chromium.org 815f8ad1cf Clean up control of perf governor
The perf governor was previously controlled by the PerfTestSetup class,
which set the perf governor to 'performance' mode in Startup() and
reset it to its original value on TearDown(). This had a number of
problems:
- We ended up with TearDown() being used in place of SetUp() when
starting tests where we didn't want performance mode. This looks
strange.
- There was no explicit way of setting the device's default
performance mode. We would call TearDown() and hope for the best. This
would not work if the device was already in performance mode at the
start of the test. We think this is sometimes happening on the
performance bots.
- SetUp() also cleared the caches, which should have no direct
connection with setting the performance mode.

This patch creates two new classes, PerfControl and CacheControl, to
manage the perf governor and cache. These replace PerfTestSetup.

PerfTestSetup has not yet been deleted to avoid the need for simultaneous
commits on the upstream and downstream repositories.


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@189097 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-19 20:56:27 +00:00
nileshagrawal@chromium.org b9b27483df Enable webrtc browsertests on Android
BUG=181069

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@189094 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-19 20:52:54 +00:00
sivachandra@chromium.org e7e9db03d3 Check if mantarays are charging, and alert on all Android device errors.
BUG=168400

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@189091 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-19 20:42:54 +00:00
tonyg@chromium.org f49ef82580 [Telemetry] Fix histogram naming.
trace_tags should show up on the trace names but not the chart names. Previously
we'd output:
HISTOGRAM V8.MemoryHeapSampleTotalUsed_foo: V8.MemoryHeapSampleTotalUsed_foo=

Now we output:
HISTOGRAM V8.MemoryHeapSampleTotalUsed: V8.MemoryHeapSampleTotalUsed_foo=

This prevents an explosion of charts as seen on:
http://build.chromium.org/f/chromium/perf/linux-release/moz/report.html?history=150&rev=-1&graph=V8.MemoryExternalFragmentationTotal_extcs1_0.5

BUG=196411
TEST=tools/perf/run_multipage_benchmarks --browser=system page_cycler tools/perf/page_sets/page_cycler/moz.json --output-trace-tag=_foo
NOTRY=True


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@189022 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-19 15:36:38 +00:00
skyostil@chromium.org 02d4332091 telemetry: Update Android frame latency metrics
Update the Android SurfaceFlinger-based frame latency metrics to match
the numbers that are tracked downstream. The new method records the time
of the most recent vsync when a new frame is submitted to SurfaceFlinger.
These frame timestamps are used to derive the following animation quality
indicators:

  1. Average frame rate (avg_surface_fps).

  2. Maximum time between frames (max_frame_delay) in number elapsed
     vsync periods.

  3. Number of "janks" or dropped frames during the benchmark
     (jank_count). This is calculated by first taking the frame
     durations:

        duration[i] = timestamp[i + 1] - timestamp[i]

     and then seeing when the duration changes:

        changes[i] = duration[i + 1] - duration[i]

     Every time the frame duration increases by an additional vsync
     interval multiple we count the frame as jank:

        jank_count = sum{1 | max(0, round(changes[i] / vsync_interval)) > 0}

BUG=https://b/8364918


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@189006 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-19 13:41:08 +00:00
kjyoun@google.com 1b211f27ba Since some child processes, such as PPAPI_BROKER plugin, might not run in sandbox, Sandboxed process is renamed to Child process
BUG=178382


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188907 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-19 01:43:36 +00:00
nileshagrawal@chromium.org 3d63aa59e4 Android: Filter browsertests with MANUAL_ and PRE_ prefix.
BUG=138275

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188875 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-18 23:20:23 +00:00
phajdan.jr@chromium.org ca70328f04 [android] remove obsolete findbugs suppressions
According to trybots they were needed. Not sure what's going on.

TBR=eroman

BUG=70818

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188830 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-18 21:29:17 +00:00
phajdan.jr@chromium.org f2b93a0ea3 net: move test files out of net/base
BUG=70818

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188822 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-18 21:14:14 +00:00
torne@chromium.org 4125724c21 Revert 188747 "Android WebView: change how the SDK jar is found."
> Android WebView: change how the SDK jar is found.
> 
> Setting android_sdk has unintended consequences which have recently
> broken the build, but we still need to be able to point to the sdk
> jarfile for now until this dependency has been solved for real; use the
> newly introduced android_sdk_jar variable from r188737 to specify this
> and set android_sdk to a harmless but invalid value rather than a make
> variable expansion.
> 
> BUG=
> 
> Review URL: https://codereview.chromium.org/12917006

TBR=torne@chromium.org
Review URL: https://codereview.chromium.org/12780016

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188769 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-18 18:03:07 +00:00
yfriedman@chromium.org 6b8c28bba3 [Android] Exclude findbugs false-positives in the javabridge.
Findbugs can't trace the reflection code which is accessing these methods/members.

NOTRY=true


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188749 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-18 16:15:29 +00:00
torne@chromium.org 74a0e384c4 Android WebView: change how the SDK jar is found.
Setting android_sdk has unintended consequences which have recently
broken the build, but we still need to be able to point to the sdk
jarfile for now until this dependency has been solved for real; use the
newly introduced android_sdk_jar variable from r188737 to specify this
and set android_sdk to a harmless but invalid value rather than a make
variable expansion.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188747 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-18 15:56:09 +00:00
yfriedman@chromium.org a4cae92521 [Android] Remove unused function.
I just removed the last caller of this functoin (downstream). It uses reflection
and is unreliable. Tests shouldn't be written in this manner.

NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188746 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-18 15:45:37 +00:00
nileshagrawal@chromium.org 5ac32324c3 Android: Disable failing download content browsertests.
BUG=215894

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188741 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-18 15:15:56 +00:00
cjhopman@chromium.org c10677b0ce Convert java library javac/jar to python
This is a fairly straightforward translation of the ant build script
into two python actions.

Two things have been moved into the gyp file: adding android.jar to the
classpath and specifying the jar_excludes (currently just R.class and
R$*.class).

BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188594 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-16 16:25:22 +00:00
cjhopman@chromium.org 4c04bd901d Simplify ant targets
This change makes the behavior of apk-build.xml much clearer.
First, delete several empty targets:
  -pre-build
  -post-build
  -set-mode-check
  -post-package
  -set-debug-files

Then, merge chains of targets (i.e. only -compile depends on
-pre-compile and so they can be merged into one target).
check-env --> -setup
-pre-compile and -post-compile --> -compile
-crunch --> -package-resources
-release-sign --> release
-do-debug --> debug
-release-obfuscation-check --> -set-release-mode
-debug-obfuscation-check --> -set-debug-mode
-build-setup --> -setup

Then, rearrange the targets so that they are in the order that they are
run.

Finally, delete some small unused things (mergemanifest, buildconfig).

BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188548 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-16 05:37:51 +00:00
yfriedman@chromium.org cbfecc667a Fix several findbugs issues
This addresses the following classes of findbugs issues:
- ST, MS, SS, DLS, SIC

Also sprinkled in are eclipse auto-corrects of final, @Override and
import fixes.

NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188447 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-15 19:24:17 +00:00
bulach@chromium.org 2a6157d3e8 Android: SurfaceStats cleanup (last side).
Follow up r188167:
- removes __enter__ / __exit__ methods (replaced by Start / Stop)
- removes unused trace_tag constructor param

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188395 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-15 15:46:53 +00:00
yfriedman@chromium.org b20d711512 Change findbugs modifications from presubmit error->warning
While we want to bring this list down, blocking commits in this manner
with false positives, is too limiting.

BUG=180981
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188189 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-14 20:57:23 +00:00
cjhopman@chromium.org 354452b959 Remove more unused ant stuff
Remove/inline some more properties that are not used.

Remove the clean target that we never call.

Remove some comments that are incorrect or invalid in our build.



BUG=158821
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188186 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-14 20:56:41 +00:00
bulach@chromium.org 057a14a694 Telemetry / Android: further cleanup on surface_stats_collector.
- Use a "Start / Stop" method rather than __enter__ / __exit__
- Make "trace_tag" optional
- Remove printing results.

Note: N-sided patch, further cleanup to remove the constructor param and
the __enter__ / __exit__ methods will be done once this rolls.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188167 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-14 20:08:40 +00:00
cjhopman@chromium.org f1fd6ffa9b Remove the last ant macros
Android's build script uses record-build-info to determine when the build type
has changed and things need to be rebuilt. We use gyp to tell us when to
rebuild things and ant should always do it. Remove this macro and inline the
corresponding empty strings.

BUG=158821
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188128 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-14 17:59:33 +00:00
cjhopman@chromium.org e2acb7fae1 Remove some ant macros
We only use this build script for non-library targets with code... so
remove the macros for do-only-if-library/has-code.

The other macros are used only in a single place, so inline them at that
use.

BUG=158821
NOTRY=true


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188101 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-14 16:46:50 +00:00
bulach@chromium.org 8a12c7d4c4 Telemetry on android: improves RawDisplayFrameRateMeasurement.
A few changes here:
- move up from "scrolling_action" to "smoothness_benchmark" (which knows about results).
- changes surface_stats_collector itself to provide but not print the results.
- creates a Telemetry "platform.RawDisplayResult" abstraction so that
android_platform_backend.py can use that, and the rest of Telemetry doesn't know about
android-specific details.
- while at it, also ensure that DidRunAction is in a finally block after RunAction to ensure
proper cleanup (if needed).

BUG=170894
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@188037 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-14 09:57:48 +00:00
cjhopman@chromium.org 0838d9e4fd Simplify ant signing/zipalign code
We always sign and zipalign our apks. Remove code that deals with
different possibilities (i.e. asking for password, manually
signing/aligning).

NOTRY=true
BUG=158821

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187953 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-13 21:47:39 +00:00
cjhopman@chromium.org 5b73bcbf6a Remove ant stuff dealing with library dependencies
This is mostly dealing with the code for library dependencies. Our
library dependencies are handled through gyp, and not by ant. The
dependency task that is removed calculates only empty paths for each of
its arguments (some are already set above and are immutable).


BUG=158821
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187911 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-13 19:12:20 +00:00
timvolodine@chromium.org e5bc37d738 Disable failing test on chromium.fyi
BUG=189186
NOTRY=true


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187910 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-13 19:11:56 +00:00
nileshagrawal@chromium.org cb4c4b024e Android: Add some required commmandline flags for running content_browsertests.
Also filed some bugs for the failing cases.
BUG=138275


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187773 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-13 04:23:19 +00:00
ilevy@chromium.org 281ce01468 Add android buildbot support for exe tests
Add breakpad_unittests and sandbox_linux_unittests
to experimental test suites.

BUG=170530, 169416
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187768 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-13 04:09:27 +00:00
cjhopman@chromium.org 4b6058c073 Removed unused ant stuff
This removes a bunch of the ant properties and targets that are never
used in our builds. These are related to: installing apks, running
tests, emma instrumentation, lint, help, clean, building library
dependencies, building main apk for test apks, renderscript, and asking
for keystore password.

BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187735 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-13 01:28:32 +00:00
cjhopman@chromium.org 965e1aa28f Set the ant keystore properties earlier
apk-build.xml sets the has.keystore property before the point where we
were setting the properties that it bases has.keystore on. This caused
Release builds to be built incorrectly (i.e. the build didn't sign
them).


BUG=184532
NOTRY=true
TBR=yfriedman@chromium.org


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187598 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-12 16:37:09 +00:00
torne@chromium.org 2d827c22b2 Android: rename android_build_type gyp variable.
Rename the "android_build_type" gyp variable to "android_webview_build"
to better describe what it does. There are still references in WebKit
and V8 that need to be changed before the original variable can be
removed.

BUG=184431

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187556 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-12 10:22:36 +00:00
cjhopman@chromium.org 00cec5be32 This is the first change in simplifying our ant build scripts.
First check in a copy of 
third_party/android_tools/sdk/tools/ant/build.xml as 
build/android/ant/apk-build.xml

Previously we were overriding targets from this build.xml
in build/android/ant/sdk-targets.xml. Instead of doing this
override, just replace the actual targets in apk-build.xml.

Do the same for properties that we were overriding in 
build/android/ant/chromium-apk.xml.

Both of these have no logical change on these build scripts. 
Ant's targets and properties are immutable and so Ant was
doing this exact thing already.


BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187483 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-12 03:58:06 +00:00
nileshagrawal@chromium.org 64596c6ec8 Android: Cleanup test server instance after running each a test in gtest test runner
BUG=181040

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187158 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-09 14:56:57 +00:00
skyostil@chromium.org cbde956b1f [android] Improve reverse forwarder error handling
Tell the user if they are trying to use the reverse ADB forwarder
without having first built the requisite host_forwarder tool.

NOTRY=true


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187033 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-08 20:29:16 +00:00
skyostil@chromium.org eaf57cb186 [telemetry] Fix Android surface statistics collector
On Android we ask SurfaceFlinger about frame presentation times to
estimate metrics such as frame rate and jitter. This data is recorded on
a per-window basis. For applications that use SurfaceView, the
statistics are reported separately for the main application window and
the contained SurfaceView. Since we mainly care about the rendering
performance of web content, we should track the statistics for the
SurfaceView instead of the main Chrome window.

BUG=http://b/8254709


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@186801 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-07 22:33:29 +00:00
nyquist@chromium.org 25c652b4ca [sync] Upstream the Android ProfileSyncService
This creates a Java-layer ProfileSyncService that is the only class that
should be used from downstream Chrome for Android. The native
counterparts should not be used.

In the process, a hashing utility and also, some identity code and their
respective tests had to be upstreamed. No functional changes have been
made to them.

BUG=159203
TBR=sky@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@186798 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-07 22:22:03 +00:00
cjhopman@chromium.org 0dc4b9a2a6 Move shared lib stripping to python
This is a pretty simple translation of the library stripping into
python. With the component build, this step will become a bit more
complex, and so I'd much rather it be in python than shell script.


BUG=158821


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@186735 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-07 17:39:22 +00:00
bulach@chromium.org a051a0f919 Android: disables IndexedDBBrowserTest.DoesntHangTest on content_browsertests.
Disabling temporarily to get the bots green.

BUG=180884
TBR=nileshagrawal@chromium.org
NOTRY=true


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@186717 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-07 15:25:51 +00:00
torne@chromium.org 8ac34d9bb7 Android WebView: fix aidl on mac hosts.
tools/linux/aidl from the SDK doesn't work on macs; set the tools path
correctly based on host OS.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@186710 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-07 14:01:05 +00:00