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

1779 Коммитов

Автор SHA1 Сообщение Дата
nduca@chromium.org eb09a102df Add --trace-frame-viewer as a safer alternative to --trace-cc
--trace-cc implied cc.debug* which enables a ton of stuff for
ubercompositor. This is bad for recording performance. In the vast
majority of use cases, users of adb_profile_chrome just want a basic
frame viewer-case. So rename the flags accordingly to facilitate
that use case.

R=skyostil

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@251673 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-17 14:38:57 +00:00
skyostil@chromium.org e66716840e adb_profile_chrome: Use Enter to stop early instead of Ctrl-C
Use Enter to stop early instead of Ctrl-C so that users don't
accidentally hit Ctrl-C during the trace downloading phase.

BUG=337656
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@251661 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-17 11:47:37 +00:00
bulach@chromium.org 1413e72314 Android: re-add perf test summary.
This was lost when we unified the perf test runner
in crrev.com/217665.

BUG=343900

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@251650 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-17 10:55:03 +00:00
jdduke@chromium.org 65096f9ce7 Allow MessageFilters to restrict listening to specific message classes
ChannelProxy currently offers messages to all member MessageFilters.  It turns
out that a good portion of the most common message types will never be filtered,
making the O(N) filter walk an unnecessary affair.  To prevent this, allow
MessageFilters to indicate which (if any) subset of message classes they may
filter, allowing the ChannelProxy to refine the list of filters that are offered
a particular message.  This saves ~35us per message received on the browser IO
thread for a typical Android device.

BUG=340881
TBR=asargent@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@251622 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-16 22:11:26 +00:00
thakis@chromium.org 9a702817f2 android envsetup: Stop adding build-tools dir (aidl, aapt, dx, dexdump) to PATH.
It looks like everything looks qualified paths to reference the binaries
in this folder already.

BUG=330631
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@251493 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-15 03:37:43 +00:00
thakis@chromium.org 34196a3a54 android: Don't require aapt to be on the path during builds and tests.
BUG=330631
R=frankf@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@251452 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-15 00:21:18 +00:00
thakis@chromium.org 3e3ae4cdf8 android envsetup: Stop exporting (and honoring) ANDROID_SDK_VERSION.
If someone wants to use a custom android sdk version, they now need to set
the android_sdk_version gyp define instead of this env var.

(Depends on one internal change to an internal bot that currently sets the
env var: https://chrome-internal-review.googlesource.com/154255)

BUG=330631

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@251354 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-14 16:59:48 +00:00
jbudorick@chromium.org 69f34f6128 [Android] Lint pylib/instrumentation.
BUG=168518
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@251153 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-13 22:17:19 +00:00
dfalcantara@chromium.org a9c910cc5b Disable flaky test
Flakily fails: MSE_ClearKey/EncryptedMediaTest.ConfigChangeVideo/0

NOTRY=true
TBR=yfriedman
BUG=343604

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@251149 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-13 22:08:13 +00:00
thakis@chromium.org 00d6c27f28 android envsetup: Remove --host-os flag.
Clients should set the host_os gyp variable instead. (As far as I can tell,
this flag was added for the webview build, and this CL updates gyp_webview
to use the gyp define instead. I haven't found other clients.)

Since several gyp targets check the value of host_os in a
target_conditions block and most of the build/common.gypi variables
aren't available during target_conditions processing time, use the same
trick that chromium_code uses to make host_os available at target_conditions
time.

BUG=330631
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@251138 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-13 21:48:25 +00:00
bulach@chromium.org 59f5f4a01e Android: add pliard@ to build/android/pylib/OWNERS
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@251065 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-13 16:56:08 +00:00
yukishiino@chromium.org ee2aff3050 Clean-up: Renames gfx::Font's methods and removes its obsolete methods.
Applies the same renaming as http://crrev.com/142523003 and also removes obsolete methods.

Renamed methods:
- DeriveFont(size_delta, style) => Derive(size_delta, style)

Removed methods:
- DeriveFont(size_delta)
- GetAverageCharacterWidth()
  # Use GetExpectedTextWidth(1) instead.
- GetStringWidth(text)
  # Use gfx::GetStringWidth(text, font_list) instead.

BUG=265485
TEST=Run ui_unittests, views_unittests.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@251028 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-13 15:41:45 +00:00
cjhopman@chromium.org a028c8402b Keep package access members in TOC files
In some cases we have multiple libraries with the same package name
(particularly test+non-test). If one of these depends on the other and
refers to package-private stuff in the second, then it should be rebuilt
if the signature of package-private stuff is changed. To ensure that
happens, the TOC file must include the signatures of package-private
members.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250956 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-13 05:08:36 +00:00
jbudorick@chromium.org 0460369301 [Android] Lint pylib/host_driven.
BUG=168518

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250822 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-12 23:05:36 +00:00
jbudorick@chromium.org d0be95c462 [Android] Lint pylib/gtest.
BUG=168518

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250668 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-12 09:43:50 +00:00
jbudorick@chromium.org 9763b9f4f2 [Android] Lint pylib/base.
BUG=168518

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250545 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-11 23:21:15 +00:00
aberent@chromium.org 0a747f0761 Remove shim classes etc. that were needed to move Android Loader
Also those needed to move the Trace classes to base, and tidy
up the other TODOs left over from these moves.

Depends on:
https://codereview.chromium.org/141223002 and
https://chrome-internal-review.googlesource.com/#/c/153179

BUG=225101

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250479 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-11 19:59:20 +00:00
thakis@chromium.org ea75f3e120 Use exception instead of sys.exit().
Addresses a review comment from frankf at https://codereview.chromium.org/157743004/

BUG=142642

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250302 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-11 02:52:10 +00:00
thakis@chromium.org f0077495b5 android envsetup: Stop setting branding=Chrome buildtype=Official.
They are now set by the internal build script that also sets
CHROME_ANDROID_OFFICIAL_BUILD
( https://chrome-internal-review.googlesource.com/154265 ).

No intended behavior change.

BUG=330631
R=yfriedman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250296 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-11 02:38:31 +00:00
dfalcantara@chromium.org 73c7d163d1 Revert of Remove Android filter files for base_unittests (https://codereview.chromium.org/151913003/)
Reason for revert:
Broke the Blink Android Tests (dbg) bot:

http://build.chromium.org/p/chromium.webkit/builders/Android%20Tests%20(dbg)

Neither of us can repro failures locally, reverting.

Original issue's description:
> Remove Android filter files for base_unittests
> 
> BUG=339980
> R=bulach@chromium.org
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250169

TBR=bulach@chromium.org,phajdan.jr@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=339980

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250294 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-11 02:37:29 +00:00
jbudorick@chromium.org 41ed360447 Revert of Enable presubmit pylint in build/android. (https://codereview.chromium.org/132463007/)
Reason for revert:
This patch is probably the cause of crbug.com/342539.

Original issue's description:
> Enable presubmit pylint in build/android.
> 
> BUG=168518
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249793

TBR=craigdh@chromium.org,frankf@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=168518

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250269 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-11 01:47:41 +00:00
jbudorick@chromium.org 4ccb88e6a3 Revert of Fix an errant pylint change. (https://codereview.chromium.org/143623007/)
Reason for revert:
crbug.com/342539 is likely happening because of the patch that this patch depends on. I need to ensure that logcats work on the bots before relanding (and that the corresponding steps fail if they don't.)

Original issue's description:
> I broke something by removing an apparently unused import that actually was used elsewhere. I addressed the issue by having the client code just call android_commands.GetAttachedDevices explicitly.
> 
> BUG=168518
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250206

TBR=craigdh@chromium.org,frankf@chromium.org,cjhopman@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=168518

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250264 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-11 01:20:33 +00:00
thestig@chromium.org a833cec06e Findbugs: Fix public static fields in AwResource.java.
Review URL: https://codereview.chromium.org/149113003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250233 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-10 23:13:50 +00:00
jbudorick@chromium.org c3ffd2a73d I broke something by removing an apparently unused import that actually was used elsewhere. I addressed the issue by having the client code just call android_commands.GetAttachedDevices explicitly.
BUG=168518

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250206 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-10 21:12:03 +00:00
thakis@chromium.org dca8980cb9 android envsetup: Don't set script-local variable toolchain_dir.
Unused after r250141. No behavior change.

BUG=330631
TBR=torne@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250187 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-10 20:11:34 +00:00
phajdan.jr@chromium.org 413ebe5efe Remove Android filter files for base_unittests
BUG=339980
R=bulach@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250169 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-10 19:25:55 +00:00
thakis@chromium.org 89105d9828 android envsetup: Stop exporting ANDROID_TOOLCHAIN.
build/common.gypi already sets <(android_toolchain) independently of this
env var, and nothing seems to really depend on the env var.
(tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py uses it
to print a better error message if it's available, but that doesn't seem
important.)

BUG=330631
R=torne@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250141 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-10 17:50:39 +00:00
aberent@chromium.org d9bb84216f Move the android library loader from content to base
The android library loader has no logical connection with content. Mojo
shell, which doesn't depend on content, wants to use it. This CL
moves it from content to base.

BUG=225101
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250113 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-10 16:19:22 +00:00
thakis@chromium.org 2ef2f58ba2 android envsetup: Stop exporting STRIP.
After the changes in crbug.com/142642 , this should no longer be used.

BUG=142642

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250109 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-10 16:04:36 +00:00
bulach@chromium.org 10f3af06db Android: follow up on crrev.com/250035, remove unused import.
BUG=142642
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250098 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-10 14:42:48 +00:00
thakis@chromium.org 569987e51a android: Require exe unittests to have a foo_unittest_stripped target.
This allows the test runner to not depend on the STRIP env var, which is going away.

Other approaches considered:
1. Converting the remaining exe-based tests to apk tests. The apk versions
   were slower, and didn't pass without other changes though.
2. Just don't strip. But that slows down these two tests by over 100%
   (due to copying data to the device is slow, and stripped size is 0.5MB while
   unstripped size is on the order of 10MB).
3. Try to get a trip binary from third_party/android_tools/ndk. That's fiddly
   since it requires getting the right arch.

Since there are only two exe-based tests left, just strip them from gyp.
Medium-term, maybe gyp/mac's postbuild stuff can be brought to android,
it looks like there are various things that could be made simpler with that.

BUG=142642
TEST=
build/android/test_runner.py gtest -s sandbox_linux_unittests &&
build/android/test_runner.py gtest -s breakpad_unittests

R=bulach@chromium.org, frankf@chromium.org
TBR=jln, thestig

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250035 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-10 02:18:13 +00:00
dfalcantara@chromium.org a7cdee0870 Disable flaky unittest
TracingControllerTest.EnableCaptureAndDisableMonitoringWithFilePath has been flaking consistently.

NOTRY=true
TBR=wangxianzhu
BUG=341995

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@249842 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-07 23:12:13 +00:00
jbudorick@chromium.org 3d8bcfb710 Enable presubmit pylint in build/android.
BUG=168518

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@249793 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-07 21:34:23 +00:00
thestig@chromium.org 67693742d8 [Android WebView] Add AwResource.setResources() and setErrorPageResources().
This is part 1 of a two-sided patch to get rid of public static fields
in AwResource.java.

R=mnaganov@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@249505 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-06 21:29:07 +00:00
wibling@chromium.org 2ebefa8418 Re-enable the two blink heap unit tests.
These should work now after fixing bug 340591.

R=ager@chromium.org, erik.corry@gmail.com, haraken@chromium.org, vegorov@chromium.org, zerny@chromium.org
BUG=340591

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@249388 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-06 12:24:35 +00:00
zty@chromium.org be8d5ba176 Re-enable content_browsertests on main waterfall.
Disabled the two tests that are crashing on android.

TBR=jam
BUG=341142

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@249358 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-06 11:22:18 +00:00
thestig@chromium.org b6fa9e339b FindBugs: Rename org.chromium.base.test.util.ScalableTimeout.ScaleTimeout to scaleTimeout.
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@249177 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-06 00:35:12 +00:00
eugenis@chromium.org 75f5309bc4 Enable stack tool and ASan symbolization of logcat on Android bots.
TBR=navabi@chromium.org,craigdh@chromium.org,frankf@chromium.org
BUG=325685

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248982 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-05 13:47:04 +00:00
eugenis@chromium.org 255311dd71 Enable component=shared_library on the asan/android bot.
This is required to get good stack traces from ASan.
See "Building on Android" section at
  http://dev.chromium.org/developers/testing/addresssanitizer

BUG=325685
R=bulach@chromium.org, navabi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248927 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-05 08:45:48 +00:00
thestig@chromium.org 0dae7a0ef2 FindBugs: Fix a synchronized method warning in HttpAuthDatabase.java.
Review URL: https://codereview.chromium.org/143663004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248914 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-05 08:14:20 +00:00
navabi@google.com 2a3082265c Revert "Enable stack tool and ASan symbolization of logcat on Android bots."
This reverts commit dc6d7c9d8d8bd5d29dd7a4fc681bb8c2a0bc3297.

Sorry, we can not commit this without the accompanying downstream change, because without that there are two --disable-stack-tool option strings (one in the downstream script and the newly added one here).

This causes the following error on the clank tot bot:
optparse.OptionConflictError: option --disable-stack-tool: conflicting option string(s): --disable-stack-tool

Link: https://chromegw.corp.google.com/i/clank.tot/builders/instrumentation-yakju-clankium-tot/builds/22826/steps/compile/logs/stdio

Reverting because this is keeping clank from picking up changes, and I'm not sure how to do a quick fix right now. Removing the option from clank requires the public script to have it, which requires clank to roll. Slightly tricky and I don't have the time to do it today.

TBR=craigdh@chromium.org,frankf@chromium.org,navabi@chromium.org,eugenis@chromium.org
NOTRY=true
BUG=325685

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248830 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-05 02:05:41 +00:00
thakis@chromium.org 0ab3cfa957 Remove all_android.gyp.
It's been unused for two weeks, and should be a noop for everyone who sourced
envsetup since.

If you see an error message like

  gyp: buid/all_android.gyp not found (cwd: /path/to/chrome/src)

after this change, open a fresh shell (and source envsetup),
or run `unset CHROMIUM_GYP_FILE`.

Also remove the code for unsetting CHROMIUM_GYP_FIE from envsetup
and fold the one line left in common_gyp_vars into its only caller.
BUG=330631
R=torne@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248748 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-04 17:59:28 +00:00
pasko@chromium.org 08704870eb Disable failing blink_heap_unittests on Android
BUG=340591
R=ager@chromium.org
TBR=ager@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248724 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-04 15:28:12 +00:00
thakis@chromium.org b5a2d10280 android envsetup: Move some webview-specific configuration into gyp_webview.
Engineers working on webview always call gyp_webview instead of gyp_chromium,
so there's no need to keep these settings in env vars.

BUG=330631
R=torne@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248723 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-04 15:26:02 +00:00
thakis@chromium.org b7d74d2d2a android envsetup: Stop honoring CHROME_ANDROID_WEBVIEW_ENABLE_DMPROF.
Nothing sets this env var. (I checked with the folks who added this line, who
confirmed that this is unused.)

If something like this gets added again in the future, it shouldn't use a global
env var to turn it on but a single gyp define (that's hopefully identical for
desktop and mobile).

BUG=330631
R=torne@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248722 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-04 15:21:15 +00:00
eugenis@chromium.org 03fb2191cf Enable stack tool and ASan symbolization of logcat on Android bots.
BUG=325685
R=frankf@chromium.org, craigdh@chromium.org, navabi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248694 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-04 08:04:42 +00:00
dpranke@chromium.org 3a04db53e1 Re-add blink_heap_unittests to android recipe.
This change reverts r248464 and re-lands r248379 with the fix to the
isolate name.

TBR=navabi@chromium.org
BUG=334018

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248525 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-03 18:09:01 +00:00
thakis@chromium.org d6a93d757b android envsetup: Remove --try-32bit-host flag.
This was added in https://chromiumcodereview.appspot.com/11366243 , which
had the primary point of warning people that things won't work on 32bit hosts.
That check is now always a hard error after this CL.

BUG=330631

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248485 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-03 14:09:19 +00:00
thakis@chromium.org e1b0263a6b android envsetup: If ANDROID_SDK_ROOT is set, honor it unconditionally.
If this patch breaks your build, try running `unset ANDROID_SDK_ROOT`.

Before this patch, envsetup checked if
${ANDROID_SDK_ROOT}/platforms/android-${ANDROID_SDK_VERSION} existed and fell
back to the sdk in chromium's third_party if that wasn't the case.
Since most people don't set ANDROID_SDK_ROOT and the ones who do will be
able to realize that they're using an SDK that doesn't have the right toolchain
version, this seems save to do. (The motivation is that I want to move
ANDROID_SDK_VERSION out of envsetup and into common.gypi.)
This reverts part of https://chromiumcodereview.appspot.com/10920094

BUG=330631

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248483 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-03 14:02:35 +00:00
qsr@chromium.org 9991b0cf19 Revert "Add blink_heap_unittests to android recipe."
This reverts commit 46b4e44f1e8177bf0fcb7f18e660abebd3da0afc.

blink_heap_unittests is failing on WebKit Android (Nexus4) bot.

TBR=dpranke@chromium.org,cmp@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248464 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-03 10:00:38 +00:00
thakis@chromium.org cbd4e06bee android envsetup: Don't set mips_arch_variant.
Instead of the slightly rube-goldbergian approach of giving mips_arch_variant
the default value mips32r2 in common.gypi and then always overriding this with
mips32r1 in envsetup, just set mips_arch_variant to mips32r1 by default and
don't set it in envsetup.

I checked that the generated ninja file for base is identical before and after
this change, and that the mips flags change as expected when manually setting
mips_arch_variant to mips32r2. No behavior change.

BUG=330631
TBR=torne@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248409 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-02 16:10:28 +00:00
dpranke@chromium.org dcd73f9f0c Add blink_heap_unittests to android recipe.
R=navabi@chromium.org, yfriedman@chromium.org
BUG=334018

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248379 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-02 05:52:07 +00:00
thakis@chromium.org 6f41091136 android envsetup: Stop explicitly setting host_arch when target_arch=x86.
The explicit setting seems to match the default value for host_arch in
build/common.gypi close to line 110, and it's not set explicitly for other
target_archs, so this looks like an oversight. It's been this way since this
file was added in r148790 18 months ago.

No intended behavior change.

BUG=330631

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248188 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-31 14:10:42 +00:00
thakis@chromium.org c698375c78 android envsetup: Stop adding NDK to PATH.
The only binaries in there are ndk-build, ndk-gdb, ndk-stack, and ndk-which,
neither of which is used with chromium.

BUG=330631

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248187 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-31 14:09:25 +00:00
eugenis@chromium.org 7f616a3d81 adb_gdb: AddressSanitizer support.
When running with AddressSanitizer, the main executable of Android
applications is /system/bin/app_process.real instead of the usual
/system/bin/app_process. This change helps adb_gdb detect this
situation.

See tools/android/asan/asan_device_setup.sh for more details.

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

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248186 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-31 14:08:32 +00:00
yukishiino@chromium.org 1e5759050f Renames gfx::FontList::Derive* family.
1. Removes obsolete methods.
- DeriveFontList(font_style)
  # The method name and argument are not clear compared to other versions.  Use DeriveWithStyle(style) below instead.
- DeriveFontListWithSize(absolute_size)
  # Don't specify the absolute size.

2. Renames very long named methods.
- DeriveFontListWithSizeDeltaAndStyle => Derive
- DeriveFontListWithSizeDelta => DeriveWithSizeDelta
- new method => DeriveWithStyle

Since DeriveFontListWithSizeDeltaAndStyle is used more often than DeriveFontListWithSizeDelta, so give the former a shorter name.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248131 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-31 05:31:52 +00:00
thakis@chromium.org a5fc6550d7 android/clang: Don't add path to gold shim to PATH, use -B instead.
No intended behavior change.

BUG=330631
R=torne@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248080 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-31 00:04:22 +00:00
plundblad@chromium.org 454c71985d Only include chromevox_test_data in isolated swarming tests for chromeos builds.
BUG=338749
R=maruel@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248069 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-30 23:20:25 +00:00
jdduke@chromium.org b486fd8a01 [Android] Perform eager gesture recognition on MotionEvents
ContentViewGestureHandler conditionally forwards MotionEvent's to the Android
gesture detection pipeline, depending on the current touch stream handling
disposition.  However, this approach is fragile, as the detection pipeline
expects a consistent touch stream for each sequence.  Instead, forward all
MotionEvent's immediately for gesture detection, conditionally dispatching the
generated gestures depending on the touch stream ack dispositions.

BUG=295075,334040,327444,240550,234516
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@248066 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-30 22:48:51 +00:00
jamesr@chromium.org d2035efb45 Remove net dependency from ui/gfx
ui/gfx/ depended on net/ for two things, SortedDisplayURL and gfx::ElideUrl().
SortedDisplayURL was not used by anything other than its own unit test and is
deleted in this patch.  ElideUrl() is only used from
chrome/browser/ui/(gtk|cocoa|views), so this patch moves the functionality up
to chrome/browser/ui/elide_url.(h|cc) and the unit test to
chrome/browser/ui/tests/elide_url_unittest.cc.

R=sky

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247820 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-30 03:37:33 +00:00
b.kelemen@samsung.com e727e8d042 Drop warnings from adb shell output
This is a quick and dirty fix for a problem that occurs to me when
trying to run instrumentation tests in a simulator.
For some reason 'pm path org.chromium.content_shell_apk.tests' outputs
a warning message in my environment that confuses the python scripts
and they end up calling md5sum for the root directory which is a bit
slow... The real fix would be to be able drop the stderr of the command
but it needs a lot of plumbing and probably there is not that much chance
that something like that will happen again for someone.

BUG=334439

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247742 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-29 21:27:35 +00:00
kjellander@chromium.org d1c00d0377 Update WebRTC test filter for Chromium tests.
In https://codereview.chromium.org/137793008/ phoglund@
changed the test filter for desktop tests after the renames in
https://codereview.chromium.org/131203005/ and
https://codereview.chromium.org/137753004/

This CL makes similar change for Android.

BUG=none
TBR=frankf@chromium.org
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247716 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-29 17:40:57 +00:00
eugenis@chromium.org 388172cfd4 Update asan_symbolize script to work with new logcat format.
Also works with unprefixed reports.

BUG=325685
R=glider@chromium.org, bulach@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247673 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-29 11:21:51 +00:00
thakis@chromium.org e86c3fb347 Suppress 4 findbugs issues in tooling-only code.
BUG=338966
TBR=andrehayden@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247610 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-29 03:42:49 +00:00
thakis@chromium.org a431ee5eee android buildbot: Default to ninja's default target instead of All.
Before https://codereview.chromium.org/149103002/, chrome/android's default
target was 'All', so no behavior change. After that lands, the default target
is 'all', so the bots will build a few more targets (17 translation units more,
at the moment).

Together with the change linked above, this might enable the removal of
|android_app_target|.

BUG=none
R=yfriedman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247607 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-29 02:59:07 +00:00
thakis@chromium.org a7d5b8dfc7 android envsetup: Remove default_target=All
If targets shouldn't be part of the android build, they should be conditional
in gyp instead.

Removing this line leads to 17 more files being compiled and one more binary
(printing_unittests) being linked on the open source bots, and there are no
build errors.

(An internal build of the 'all' target is also successful, and it builds only
183 additional edges too, which add about 1 minute / 5% to build time.)

BUG=330631
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247571 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-29 01:36:35 +00:00
cjhopman@chromium.org 4aa03245dd Revert of [Android] Re-enable content_browsertests on main waterfall. (https://codereview.chromium.org/132403005/)
Reason for revert:
content_browsertests have been crashy and flaky since being re-enabled.

Looks like they crashing on shutdown, but I'm not sure.

Failed:
http://build.chromium.org/p/chromium.linux/builders/Android%20Tests/builds/11552
http://build.chromium.org/p/chromium.linux/builders/Android%20Tests/builds/11554

On this one, content_browsertests crashed but still passed. This caused INJECT_EVENTS exceptions in later tests.
http://build.chromium.org/p/chromium.linux/builders/Android%20Tests%20%28dbg%29/builds/18163

We see the same thing downstream.


Original issue's description:
> [Android] Re-enable content_browsertests on main waterfall.
> 
> There's enough infra capacity now.
> 
> BUG=
> R=navabi@chromium.org, navabi@google.com
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247341

TBR=navabi@chromium.org,navabi@google.com,frankf@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247547 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-29 00:50:36 +00:00
thakis@chromium.org d2ac2c5a52 android envsetup: Stop setting TARGET_PRODUCT, don't unset ANDROID_BUILD_TOP.
TARGET_PRODUCT seems to not be used in an SDK build.
ANDROID_BUILD_TOP isn't used in the SDK build either.

BUG=330631
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247471 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-28 18:35:51 +00:00
frankf@chromium.org 350141d9fd [Android] Re-enable content_browsertests on main waterfall.
There's enough infra capacity now.

BUG=
R=navabi@chromium.org, navabi@google.com

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247341 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-27 23:44:24 +00:00
frankf@chromium.org 5832577233 [Android] Disable remaining failing content_browsertests.
This is in preparation for re-enabling content_browsertests on main
waterfall.

BUG=338408,338023,338411,338421
TBR=craigdh@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247298 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-27 21:30:38 +00:00
thakis@chromium.org 8037f9a329 android envsetup: Stop setting ORDER_DEFINES.
order_text_section is only used by the chrome_initial target, which isn't
used on android.

(Some internal gyp file explicitly adds -Wl,-section-ordering-file without
going through the order_text_section gyp define, so this setting here is likely
a remnant from when that wasn't the case.)

No intended behavior change.

BUG=330631
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247283 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-27 19:53:58 +00:00
thakis@chromium.org d849d492c3 android envsetup: Delete bitrotted comments.
BUG=330631
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247260 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-27 17:23:28 +00:00
thakis@chromium.org f65142622c android envsetup: Stop setting use_libffmpeg=0 for x86 targets.
It's already set to 0 for all targets for OS==android in common.gypi.
No intended functionality change.

BUG=330631
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247259 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-27 17:22:10 +00:00
eugenis@chromium.org bc22401d2d ASan/Android: crash on calloc overflow.
This is the generally preferred behaviour that is also expected by the
unit tests.

BUG=325685
R=glider@chromium.org, navabi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247219 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-27 11:24:18 +00:00
frankf@chromium.org d510ca04eb [Android] Disabling TouchInputBrowserTests timing out on android.
BUG=338011
NOTRY=True
TBR=jdduke@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247111 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-25 09:26:40 +00:00
frankf@chromium.org 1b088707e4 [Android] Disable webrtc browser tests timing out/failing on Android.
TBR=wjia@chromium.org
BUG=181069

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247011 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-24 23:34:18 +00:00
thakis@chromium.org 0178a36b24 android envsetup: Stop setting OBJCOPY.
I couldn't find anything that still calls this. I looked for OBJCOPY in
internal repos, and for \$OBJCOPY, ['\"]OBJCOPY, and [[{]OBJCOPY in
cs.chromium.org.

BUG=142642
R=torne@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@246964 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-24 21:15:52 +00:00
frankf@chromium.org 1375326281 [Android] Disable 4 failing accessibility-related content browsertests.
BUG=297230
TBR=dmazzoni@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@246940 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-24 19:06:33 +00:00
eugenis@chromium.org c9139ec536 Switch to the "new" way of ASan deployment on Android devices.
This will elimitate startup slowdown in ASan/Android tests, and
improve overall run time very significantly.
For the idea behind this change, refer to
https://code.google.com/p/address-sanitizer/wiki/Android#Running_NDK_applications_with_ASan

R=bulach@chromium.org, frankf@chromium.org, glider@chromium.org, navabi@chromium.org
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@246847 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-24 12:35:03 +00:00
thakis@chromium.org 96b4c2d4c3 android: Fold all_android.gyp into all.gyp.
All other platforms have their targets in all.gyp. Android didn't during
bring-up, but enough stuff works by now that there's no need for the
separate all_android.gyp file any more.

BUG=330631
R=yfriedman@chromium.org
TBR=rsleevi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@246782 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-24 04:32:18 +00:00
thakis@chromium.org 67845a0884 android: Stop adding toolchain dir to PATH.
This seems mostly no longer necessary (at least I can build all targets
in an open-source chrome/android build without problems). I'm guessing
that https://codereview.chromium.org/9693042 made this obsolete.

It was only needed for `as` with clang; pass -B to clang instead
for now (until we switch to clang's integrated assembler).

BUG=330631,124610
R=torne@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@246714 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-23 23:16:35 +00:00
thakis@chromium.org 3d8715d022 Remove unused android_experimental.
Follow-up to r246093.

BUG=none
R=ilevy@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@246467 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-23 01:10:51 +00:00
maruel@chromium.org e9ef7cfab3 Add support for component=shared_library for base_unittests_run.
Specifically, this adds support to run base_unittests isolated
via 'isolate.py run' when built with component build.

This requires rolling icu @ 246118 to get the new icu.isolate.

R=thakis@chromium.org,jshin@chromium.org,frankf@chromium.org,rsleevi@chromium.org
BUG=336439

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@246247 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-22 09:05:59 +00:00
thakis@chromium.org c4e7bde60f android envsetup: Remove a block that has no effect.
By the time this runs, DEFINES has already been copied into GYP_DEFINES
(see also r246062) and no longer has any effect.

(Also, I didn't find references to CHROME_ANDROID_VALGRIND_BUILD on
cs.chromium.org and the two internal places I looked.)

BUG=330631
R=torne@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@246096 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-21 20:06:35 +00:00
thakis@chromium.org 0d37d91868 Fix GOMA_DIR on android.
The DEFINES was too late, by this time DEFINES already got exported
as GYP_DEFINES

BUG=none
TEST=set GOMA_DIR=$HOME/goma, . build/android/envsetup.sh, android_gyp,
check that out/Release/build.ninja contains goma line
TBR=ilevy@chromium.org
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@246062 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-21 17:34:06 +00:00
thakis@chromium.org 106c8979fd android: Use use_goma=1 gomadir gyp defines instead of magic GOMA_DIR env var.
For a short transition period, let envsetup.sh set the right GYP_DEFINES when
GOMA_DIR is set, so that people aren't broken immediately after this lands.

Also stop setting GOMA_COMPILER_PROXY_THREADS – if the value this sets
is truly better, that should be the default in goma, it shouldn't be set in
envsetup.sh (doing it in goma has the advantage that it works on all
platforms, also abstraction barriers, etc.)

BUG=332697
R=brettw@chromium.org, ilevy@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245801 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-18 23:54:41 +00:00
davidben@chromium.org 14e8772551 Export verified_cert and public_key_hashes on Android.
On API level 17 and up, X509TrustManager can export the verified chain. Use it
to populate some of the fields in CertVerifyResult. Also correctly populate
is_issued_by_known_root and enable intranet host checking.

Add a test to make sure non-standard roots get flagged as such. If the APIs
are not available, is_issued_by_known_root is always false.

BUG=116838,147945
TEST=CertVerifyProcTest.PublicKeyHashes
     CertVerifyProcTest.VerifyReturnChainBasic
     CertVerifyProcTest.VerifyReturnChainFiltersUnrelatedCerts
     CertVerifyProcTest.VerifyReturnChainProperlyOrdered
     CertVerifyProcTest.IntranetHostsRejected
     CertVerifyProcTest.IsIssuedByKnownRootIgnoresTestRoots
     CertVerifyProcTest.ExtraneousMD5RootCert
     CertVerifyProcTest.NameConstraintsFailure

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245649 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-17 22:52:17 +00:00
phoglund@chromium.org 31b5b69716 Split WebRTC browser tests in getusermedia and peerconnection tests.
The content browsertests file for WebRTC was growing a bit large. I
extracted the getUserMedia-focused tests into a test of its own and
left the peerconnection tests.

Also renamed all WebRTC content browsertests to use the WebRtc naming
convention, which seems to be the most common in the production code.

Note: this patch will require some filter renames on the WebRTC bots.

R=tommi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245524 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-17 16:07:46 +00:00
thakis@chromium.org 5aee2b9b8a envsetup: Stop setting FLOCK.
This was used by the make generator. The ninja generator uses ninja's built-in
"pools" feature for limiting ld parallelism, so this is no longer needed.

BUG=330631
R=torne@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245304 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-16 20:30:45 +00:00
r.kasibhatla@samsung.com 14f43d7a15 [Android]: add content_gl_tests to test_runner.py gtest suite.
Adding the content_gl_tests unit tests to the
gtest suite list supported by test_runner.py for Android platform.

BUG=none

R=bulach

TEST= Command to execute the content_gl_tests on Android:
path/to/build/android/test_runner.py gtest -s content_gl_tests <--gtest_filter=[TestFilter]>

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245299 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-16 20:03:01 +00:00
aurimas@chromium.org 2953bef27c Rolling findbugs from 2.0.1 to 2.0.3
BUG=None
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245294 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-16 19:53:16 +00:00
frankf@chromium.org 2bbddf4e7e [Android] Remove existing *.em file before running EMMA instrumentation.
BUG=334319
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245181 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-16 06:53:15 +00:00
jshin@chromium.org 44c29acf5c Include icu.isolate instead of listing icudt.dll
icu.isolate file added in https://codereview.chromium.org/99073008/
is used where icudt.dll is directly listed for
'isolate_dependency_tracked'.

icu.isolate includes either icudtl.dat or icudt.dll depending on
'OS' and 'icu_use_data_file_flag'.

Besides, 'icu_use_data_file_flag' is added to build/isolate.gypi as a
config-variable.

Once the above icu-side CL is checked in, this CL will also includes
icu DEPS roll.

This is a prerequisite for the following CLs to use icudtl.dat :

Windows : https://codereview.chromium.org/99473012
Linux : https://codereview.chromium.org/102413007
Mac : https://codereview.chromium.org/109013004

BUG=72633
TEST=All tests utilizing isolate pass on bots.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245136 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-16 05:21:53 +00:00
frankf@chromium.org 7a2c3c94a3 [Android] Remove EMMA coverage html directory after upload.
BUG=334319
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@245077 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-16 02:49:15 +00:00
navabi@google.com 18791a67b8 Change avd.py script to let developers point to emulator SDK.
The emulator sdk root is now downloaded into the source tree (and .gitingore'd).
That means that doing a clobber on the src directory will delete the emulator
SDK downloaded by build/android/install_emulator_deps.py.

This change allows developers to have an emulator SDK located somewhere else
that they can point the avd.py script to. Also, some bots will remove the src
directory between builds. Rather than make the bots re-download the emulator sdk
everytime, this allows them to have an emulator SDK installed somewhere else and
point to it.

BUG=304129
TBR=craigdh@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244637 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-14 02:27:01 +00:00
thakis@chromium.org 862b84ed2d android: Set gcc_version in build/common.gypi instead of in envsetup.
BUG=330631
R=torne@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244615 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-14 00:14:49 +00:00
dalecurtis@google.com aef7d5f1f7 Revert 244256 "[Android] Enable lint warnings by default."
> [Android] Enable lint warnings by default.
> 
> Lint has been running on FYI bots for a while,
> time to enable them by default on bots and for developers.
> 
> BUG=None
> R=yfriedman@chromium.org
> 
> Review URL: https://codereview.chromium.org/127383002

TBR=frankf@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244266 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-10 22:42:57 +00:00
frankf@chromium.org c2410e8f72 [Android] Enable lint warnings by default.
Lint has been running on FYI bots for a while,
time to enable them by default on bots and for developers.

BUG=None
R=yfriedman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244256 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-10 22:02:12 +00:00
phoglund@chromium.org 3b64c04c0b Fixed DTMF test on Android.
Turns out we accidently removed the DTMF payload type from the SDP. We
now preserve it even if we force iSAC.

BUG=332016
R=wjia@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244200 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-10 18:00:21 +00:00
bulach@chromium.org 3474356f4f Android: wait for at least one device if usb restart fails.
On some bots, the USB restart fails, but some devices come back
online shortly afterwards.
Rather than completely shortcut, wait for at least one device to be alive.

BUG=332356
TBR=navabi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244145 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-10 11:12:52 +00:00
frankf@chromium.org c1c58562d3 [Android] Do not fail the build due to lint issues.
- Treat lint issues as warnings not errors
- Also, disable Recycle rule

BUG=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@244078 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-10 03:50:32 +00:00
eugenis@chromium.org 15650ffbd1 Switch SELinux to permissive before running ASan tests.
Process wrapping on Android currently conflicts with SELinux.

TEST=ASan content_shell test on KLP Android
BUG=325685
R=bulach@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@243848 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-09 11:47:25 +00:00
boliu@chromium.org 98bb96d639 aw: Clean up android webview lint suppressions
Fix a few instances of HashMap to SparseArray in
AwQuotaManagerBridge.java

Pass null locale to String.format, which implies "no
localization is applied".

Pass Locale.ENGLISH toLowerCase as suggested by the
documentation.

Removed some unneeded supressions.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@243781 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-09 05:08:25 +00:00
phoglund@chromium.org 4faba0f953 Fixing WebRTC AEC dump tests on Android, disabling DTMF test.
Seems the DTMF test didn't work well after all, when running with Opus.

The AEC tests were broken because they didn't force iSAC.

BUG=181069,332016

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@243685 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-08 22:57:01 +00:00
navabi@google.com b450206ab1 S3 devices should not be rebooted in provision step.
Rebooting s3 devices causes device to be flaky during the deploy step. This is
likely because WaitForPackageManager() does not wait long enough on the s3
devices. I've verified locally on the bot that without the reboot in the
provision step, the devices are more reliable (i.e. deploy step passes).

BUG=321063
TBR=frankf@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@243542 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-08 12:56:50 +00:00
newt@chromium.org 02ad65b2bc Revert of https://codereview.chromium.org/106173002/
Reason for revert: this introduced a package dependency bug where ia32-libs cannot be installed on ubuntu precise systems

TBR=kkimlabs@chromium.org,cjhopman@chromium.org,pschmidt@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=290225

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@243437 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-08 00:05:19 +00:00
kbr@chromium.org 47af3f876c Switch Android GPU bot to use cloud storage for pixel reference images.
BUG=331125
R=navabi@chromium.org, navabi@google.com, skyostil@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@243372 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-07 20:10:04 +00:00
newt@chromium.org 0aab148f04 Mirror images for RTL languages at build time.
This adds a build step to generate mirrored images for use in
right-to-left (RTL) languages. Images are mirrored by flipping the
original image over the vertical axis. Every image must be explicitly
listed as mirrorable or non-mirrorable in a config file.

The goal: ensure that our RTL image assets are always up-to-date.

BUG=290225
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@243332 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-07 18:02:29 +00:00
iancottrell@chromium.org deec798db9 Don't stop because we couldn't restart usb devices.
One of the build bots was failing to restart one device, but it still had four other devices online it could continue with.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@243292 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-07 14:27:49 +00:00
frankf@chromium.org 177f06013e [Android] Fix uiautomator command line flag after r242933.
BUG=331798
TBR=navabi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@243127 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-06 18:46:14 +00:00
frankf@chromium.org 23032a4373 [Android] Make cmdline_file argument to FlagChanger mandatory.
We shouldn't be setting that file for apps with no command line file.

BUG=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@242933 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-03 22:03:22 +00:00
phoglund@chromium.org 7599cdb899 All WebRTC content browsertests will now force iSAC 16K on Android.
R=wjia@chromium.org
BUG=181069

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@242807 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-02 21:49:24 +00:00
boliu@chromium.org 0c8e1ad6b4 Add option to compile out DCHECKs in android webview
To support performance testing since DCHECKs can have a measurable
impact on performance.

BUG=
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@242778 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-02 18:54:28 +00:00
thakis@chromium.org c821482d22 Remove GYP_GENERATORS=ninja code from android envsetup.
build/gyp_chromium already makes GYP_GENERATORS default to ninja on linux
these days.

BUG=330631

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@242576 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-27 00:00:23 +00:00
thakis@chromium.org e0595262cf Remove auto_regeneration=0 frm envsetup_functions.sh.
It only has an effect with the make generator, which is no longer used.

BUG=330631

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@242547 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-26 19:21:30 +00:00
yukishiino@chromium.org 047f694420 Makes gfx::FontList carry UNDERLINE flag.
I found that gfx::FontList doesn't carry UNDERLINE flag properly.  Even though gfx::RenderText draws underline in a speciall manner, gfx::FontList should properly hold the underline flag.  Otherwise, underline info will be dropped somewhere.

TEST=Run ui_unittests.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@242486 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-25 07:55:13 +00:00
thakis@chromium.org e3c959661d Revert 242405 "Skip downloading of nacl toolchain for android. "
Author hasn't signed the CLA.

> Skip downloading of nacl toolchain for android. 
> Nacl is not enabled in android and it takes too long to download the toolchain.
> 
> BUG=329646
> 
> Review URL: https://codereview.chromium.org/116833006

TBR=mahesh.kk@samsung.com

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@242470 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-24 23:58:42 +00:00
mahesh.kk@samsung.com 88ef28ca1e Skip downloading of nacl toolchain for android.
Nacl is not enabled in android and it takes too long to download the toolchain.

BUG=329646

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@242405 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-23 21:07:21 +00:00
tonyg@chromium.org 52aa57cf76 Remove some spam output when starting Telemetry.
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@242266 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-21 05:49:27 +00:00
skyostil@chromium.org 092878c4ca Silence warning about falling back to checked-in adb binary
There's no need to print out a warning about falling back to the
checked-in adb binary every time telemetry is run. Also turn ADB_PATH
into a memoized function to remove side effects from importing
constants.py. This also ensures the right logging level is set before
the path is determined so the warning is still printed in debug mode.

BUG=329317

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@241854 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-19 13:53:47 +00:00
digit@chromium.org 8677f69d6f build/android/install_emulator_deps.py: run kvm-ok as root when needed.
This change runs kvm-ok as root after installing the kvm and qemu-kvm
packages to ensure that KVM can work. This gives better diagnostics in
case of failure, which can happen for one of the following reasons:

  - The CPU doesn't support virtualization extensions.
  - The extensions have been disabled by the BIOS.

BUG=NONE
R=yfriedman@chromium.org,navabi@chromium.org,tfarina@chromium.org,raphael.kubo.da.costa@intel.com

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@241708 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-18 23:56:07 +00:00
pliard@chromium.org d051faae49 Revert "Revert 239784 "Make page_cycler.py fully measure memory for each...""
media.media_cns_cases was failing with the following error:
TypeError: AddResults() takes at least 3 arguments (3 given)

BUG=323494
R=shadi@chromium.org, shadi@google.com, tonyg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@241537 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-18 11:23:04 +00:00
kjellander@chromium.org 3ffc4cf406 Remove metrics_unittests isolate reference for Android.
This should have been done when removing the test in
https://codereview.chromium.org/117293002/

TBR=frankf@chromium.org
BUG=webrtc:1843
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@241529 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-18 08:45:50 +00:00
davemoore@chromium.org 189689bbd3 Implement ServiceManager
BUG=None
R=abarth@chromium.org, abarth

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@241446 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-18 02:07:37 +00:00
kjellander@chromium.org aa977cbeeb Remove metrics_unittests for WebRTC Android builds.
This test is about to be removed (merged into another target).

BUG=webrtc:1843
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@241330 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-17 19:19:42 +00:00
digit@chromium.org f5403efd82 android: Add download URL for API 19 x86 system images.
Otherwise, running build/android/install_emulator_deps.py fails with

  ... [python stack trace] ...
  Exception: ERROR: no URL known for x86 image for android-19

BUG=NONE
R=yfriedman@chromium.org,navabi@chromium.org,raphael.kubo.da.costa@chromium.org,mariakhomenko@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@241258 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-17 11:53:33 +00:00
henrika@chromium.org 0b8040cc69 Reland "Refactor audio manager for Android to avoid heavy tasks at startup"
Original CL: https://codereview.chromium.org/110173003/.

Refactor audio manager for Android to avoid heavy tasks at startup.

Main goal of this CL is to avoid all demanding tasks (e.g. initiate audio routing, detect BT devices etc.) at Chrome startup.

All we do now is to populate the list of available devices. BT support has been removed but will be added in an upcoming CL.

NOTRY=True
TBR=bulach, tommi
BUG=324464
TEST=media_unittests --gtest-filter=AudioAndroid*

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@241247 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-17 09:47:23 +00:00
davemoore@chromium.org 4d550c8d0d Improve adb_run_mojo_shell
BUG=None
R=abarth@chromium.org, abarth

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240921 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-16 18:01:04 +00:00
szym@chromium.org 7973efdd58 Revert 240887 "Revert 240885 "Revert 240883 "Refactor audio mana..."
The introduced test media_unittests: VideoCaptureDeviceTest.GetDeviceSupportedFormats
crashes on main waterfall [FATAL:jni_android.cc(216)] Check failed: false. 

> Revert 240885 "Revert 240883 "Refactor audio manager for Android..."
> 
> > Revert 240883 "Refactor audio manager for Android to avoid heavy..."
> > 
> > > Refactor audio manager for Android to avoid heavy tasks at startup.
> > > 
> > > Main goal of this CL is to avoid all demanding tasks (e.g. initiate audio routing, detect BT devices etc.) at Chrome startup.
> > > 
> > > All we do now is to populate the list of available devices. BT support has been removed but will be added in an upcoming CL. Detection will not require BLUETOOTH permission.
> > > 
> > > BUG=324464
> > > TEST=media_unittests --gtest-filter=AudioAndroid*
> > > R=bulach@chromium.org, tommi@chromium.org
> > > 
> > > Review URL: https://codereview.chromium.org/110173003
> > 
> > TBR=henrika@chromium.org
> > 
> > Review URL: https://codereview.chromium.org/105893005
> 
> TBR=henrika@chromium.org
> 
> Review URL: https://codereview.chromium.org/102613007

TBR=henrika@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240917 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-16 17:57:10 +00:00
henrika@chromium.org 178cff867a Revert 240885 "Revert 240883 "Refactor audio manager for Android..."
> Revert 240883 "Refactor audio manager for Android to avoid heavy..."
> 
> > Refactor audio manager for Android to avoid heavy tasks at startup.
> > 
> > Main goal of this CL is to avoid all demanding tasks (e.g. initiate audio routing, detect BT devices etc.) at Chrome startup.
> > 
> > All we do now is to populate the list of available devices. BT support has been removed but will be added in an upcoming CL. Detection will not require BLUETOOTH permission.
> > 
> > BUG=324464
> > TEST=media_unittests --gtest-filter=AudioAndroid*
> > R=bulach@chromium.org, tommi@chromium.org
> > 
> > Review URL: https://codereview.chromium.org/110173003
> 
> TBR=henrika@chromium.org
> 
> Review URL: https://codereview.chromium.org/105893005

TBR=henrika@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240887 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-16 14:05:09 +00:00
henrika@chromium.org 0a2c776a7e Revert 240883 "Refactor audio manager for Android to avoid heavy..."
> Refactor audio manager for Android to avoid heavy tasks at startup.
> 
> Main goal of this CL is to avoid all demanding tasks (e.g. initiate audio routing, detect BT devices etc.) at Chrome startup.
> 
> All we do now is to populate the list of available devices. BT support has been removed but will be added in an upcoming CL. Detection will not require BLUETOOTH permission.
> 
> BUG=324464
> TEST=media_unittests --gtest-filter=AudioAndroid*
> R=bulach@chromium.org, tommi@chromium.org
> 
> Review URL: https://codereview.chromium.org/110173003

TBR=henrika@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240885 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-16 14:00:02 +00:00
henrika@chromium.org 404257aec3 Refactor audio manager for Android to avoid heavy tasks at startup.
Main goal of this CL is to avoid all demanding tasks (e.g. initiate audio routing, detect BT devices etc.) at Chrome startup.

All we do now is to populate the list of available devices. BT support has been removed but will be added in an upcoming CL. Detection will not require BLUETOOTH permission.

BUG=324464
TEST=media_unittests --gtest-filter=AudioAndroid*
R=bulach@chromium.org, tommi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240883 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-16 13:54:01 +00:00
maruel@chromium.org c9c4936c66 Revert r240528 to reapply r240460; Roll swarm_client @ f89de358c2.
$ git log aab3a62beb..f89de358c2 --date=short --format="%ad %ae %s" | sed 's/@chromium\.org//'
2013-12-13 maruel Remove the ban on 'command' that are declared in included .isolate file.
2013-12-12 maruel Fix assert occurring on OSX due to already hardlinked files.
2013-12-11 ganetsky Create a .gitignore file and add *.pyc to it
2013-12-11 maruel Stop signalling swarming error on Windows file locking.
2013-12-11 maruel Ensure variables are decoded to unicode.
2013-12-06 maruel Rename --command-variable to --extra-variables.
2013-12-06 maruel Add real variable support and split --variable in 3 different flags.
2013-12-05 vadimsh Add 'offset' parameter to StorageApi.fetch(...) method.
2013-12-05 maruel Change log message to be clearer.
2013-12-05 vadimsh Support custom HTTP headers in net.url_open.
2013-12-03 vadimsh Remove urllib2 support.
2013-12-03 vadimsh Wait for Storage's internal threads to finish before exiting.
2013-12-03 vadimsh Fix swarming_smoke_test.py and isolateserver_test.py.

This commit is done manually, as the breakage caused by the last commit can't be
tested on the Try Server. This is because of the way
build/scripts/slave/runisolatedtest.py modifies the .isolated.state files.

R=vadimsh@chromium.org
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240882 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-16 13:53:20 +00:00
frankf@chromium.org 47ef6f9876 [Android] Don't rely on INJECT_EVENTS exception for dismissing dialogs.
The failure could manifest in other ways. For example some tests
downstream assert whether activity has focus.

BUG=None
R=dfalcantara@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240755 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-13 21:38:49 +00:00
frankf@chromium.org a392617b9e [Android] Dismiss crash dialogs during instrumentation test teardown.
This works for error/ANR dialogs for JB+.

BUG=327840
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240650 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-13 14:59:16 +00:00
dmazzoni@google.com b17b1318f6 Revert 240460 "Roll swarm_client @ 9fc05789e3."
Speculative revert because base_unittests and net_unittests are failing
on almost all of the Windows builders, with errors like:

[------ Swarming Error ------]
Input file E:\b\build\slave\Win7_Tests__3_\build\src\build\Release\chrome_100_percent.pak doesn't exist

> Roll swarm_client @ 9fc05789e3.
> 
> Includes revert of r240243.
> 
> $ git log aab3a62beb..9fc05789e3 --date=short --format="%ad %ae %s" | sed 's/@chromium\.org//'
> 2013-12-11 ganetsky Create a .gitignore file and add *.pyc to it
> 2013-12-11 maruel Stop signalling swarming error on Windows file locking.
> 2013-12-11 maruel Ensure variables are decoded to unicode.
> 2013-12-06 maruel Rename --command-variable to --extra-variables.
> 2013-12-06 maruel Add real variable support and split --variable in 3 different flags.
> 2013-12-05 vadimsh Add 'offset' parameter to StorageApi.fetch(...) method.
> 2013-12-05 maruel Change log message to be clearer.
> 2013-12-05 vadimsh Support custom HTTP headers in net.url_open.
> 2013-12-03 vadimsh Remove urllib2 support.
> 2013-12-03 vadimsh Wait for Storage's internal threads to finish before exiting.
> 2013-12-03 vadimsh Fix swarming_smoke_test.py and isolateserver_test.py.
> 
> R=vadimsh@chromium.org
> NOTRY=true
> BUG=
> 
> Review URL: https://codereview.chromium.org/113553003

TBR=maruel@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240528 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-13 06:39:06 +00:00
maruel@chromium.org 55080f2b1f Roll swarm_client @ 9fc05789e3.
Includes revert of r240243.

$ git log aab3a62beb..9fc05789e3 --date=short --format="%ad %ae %s" | sed 's/@chromium\.org//'
2013-12-11 ganetsky Create a .gitignore file and add *.pyc to it
2013-12-11 maruel Stop signalling swarming error on Windows file locking.
2013-12-11 maruel Ensure variables are decoded to unicode.
2013-12-06 maruel Rename --command-variable to --extra-variables.
2013-12-06 maruel Add real variable support and split --variable in 3 different flags.
2013-12-05 vadimsh Add 'offset' parameter to StorageApi.fetch(...) method.
2013-12-05 maruel Change log message to be clearer.
2013-12-05 vadimsh Support custom HTTP headers in net.url_open.
2013-12-03 vadimsh Remove urllib2 support.
2013-12-03 vadimsh Wait for Storage's internal threads to finish before exiting.
2013-12-03 vadimsh Fix swarming_smoke_test.py and isolateserver_test.py.

R=vadimsh@chromium.org
NOTRY=true
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240460 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-12 22:59:35 +00:00
skyostil@chromium.org 84e312cd91 Store GPU pixel test reference images outside source tree
Instead of keeping the Android GPU pixel test reference images inside
the source tree, store them under the top level build bot directory,
e.g.,
/b/build/slave/<slave_name>/build/content_gpu_data/telemetry/{gpu_reference,generated}

This matches the location used on the non-Android GPU bots.

This patch also gives the current SVN revision to the test runner so the
reference images will get updated correctly.

TBR=navabi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240338 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-12 17:06:01 +00:00
ckocagil@chromium.org 61d909ccfa Revert of https://codereview.chromium.org/105933002/
Reason for revert: tree breakage: "runisolatedtest.py:108 ERROR Unexpected isolate version 1.2"

TBR=vadimsh@chromium.org,bulach@chromium.org,frankf@chromium.org,maruel@chromium.org
NOTREECHECKS=true
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240243 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-12 02:58:00 +00:00
maruel@chromium.org 7e575f78ee Roll swarming_client @ 9cc42c3d4d.
This requires small changes in build/isolate.gypi, the isolate.py --variable
flag was split in three.

$ git log aab3a62beb..9cc42c3d4d --date=short --format="%ad %ae %s" | sed 's/@chromium\.org//'
2013-12-11 maruel Ensure variables are decoded to unicode.
2013-12-06 maruel Rename --command-variable to --extra-variables.
2013-12-06 maruel Add real variable support and split --variable in 3 different flags.
2013-12-05 vadimsh Add 'offset' parameter to StorageApi.fetch(...) method.
2013-12-05 maruel Change log message to be clearer.
2013-12-05 vadimsh Support custom HTTP headers in net.url_open.
2013-12-03 vadimsh Remove urllib2 support.
2013-12-03 vadimsh Wait for Storage's internal threads to finish before exiting.
2013-12-03 vadimsh Fix swarming_smoke_test.py and isolateserver_test.py.

R=vadimsh@chromium.org
BUG=324911

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240155 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-11 19:44:31 +00:00
ilevy@chromium.org 3cd8d9b14f Add frankf and craigdh to android OWNERS
This fleshes out the reviewer list as I will no longer be
a primary reviewer.

Changes which could reduce android cq throughput, or which modify the
steps run by stable bots (add, removal, rename) should still go to
an infra contact in case it negatively affects the tree.

R=cmp@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240133 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-11 18:40:56 +00:00
aurimas@chromium.org c35fc9540b Fixing Java style errors in net/android/
BUG=320711
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240132 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-11 18:30:11 +00:00
bulach@chromium.org a334e704f5 Android: makes bb_device_status_check more robust.
Some bots timeout on "dumpsys batteryinfo".
This unecessarily prevent the bot from running and also stops printing
the "Device Offline" bug link.
Make it more robust.

BUG=326526
TBR=navabi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240090 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-11 12:37:34 +00:00
yukishiino@chromium.org 036e1752d1 Enables font-related unittests again.
Enables the unittests which got disabled because Symbol font was missing on trybots.

See http://crrev.com/67523002

Symbol font has been installed on trybots.  See http://crbug.com/320391

BUG=316955
TEST=none

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@240048 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-11 08:43:06 +00:00
frankf@chromium.org 09d44ed138 [Android] Add lint as a gyp action.
- Run lint on all java/apk targets using a dummy AndroidManifest.xml
- Add build/android/lint/suppress.py for suppressing generated
  errors
- Enable lint on FYI builders as a first step

BUG=None
R=cjhopman@chromium.org, newt@chromium.org
TBR=navabi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@239984 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-11 03:02:10 +00:00
pliard@chromium.org d7f66e55a3 Revert 239784 "Make page_cycler.py fully measure memory for each..."
> Make page_cycler.py fully measure memory for each page.
> 
> Telemetry makes the distinction between metrics collected for each page and for
> each page set. The fine-grained memory metrics were collected only per page set
> (although there was some histogram data collected per page).
> 
> This CL makes the memory metric module systematically report the whole data per
> page (and not only per page set) so that we can measure pages independently.
> The per page set memory metric collection is now a no-op.
> 
> BUG=323494
> 
> Review URL: https://codereview.chromium.org/91573003

TBR=pliard@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@239791 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-10 16:23:15 +00:00
pliard@chromium.org 17da6cd19a Make page_cycler.py fully measure memory for each page.
Telemetry makes the distinction between metrics collected for each page and for
each page set. The fine-grained memory metrics were collected only per page set
(although there was some histogram data collected per page).

This CL makes the memory metric module systematically report the whole data per
page (and not only per page set) so that we can measure pages independently.
The per page set memory metric collection is now a no-op.

BUG=323494

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@239784 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-10 15:13:57 +00:00
johnme@chromium.org 343d6580e3 Add InstructionPointerMemoryNullPointer to breakpad_unittests_disabled
BUG=303960
NOTRY=true
TBR=digit@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@239760 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-10 12:37:48 +00:00
pliard@chromium.org 6f9dc53652 Add instance-level in-memory cache for PushIfNeeded().
This speeds up PushIfNeeded() execution times on a same instance of
AndroidCommands for repetitive files. This can be achieved by mapping host file
paths to their mtime at push time as tonyg@ pointed out although this assumes
that the device doesn't modify the files.

This is needed to make PurgeUnpinnedAshmem() reasonably fast to execute in
Telemetry. This CL decreases by 40 secs the execution time of netsim.top_10
whem memory is measured for each page (and PurgeUnpinnedAshmem() is called
before each measurement).

BUG=323494,326929
R=bulach@chromium.org, craigdh@chromium.org, tonyg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@239757 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-10 11:27:43 +00:00
tonyg@chromium.org 6e1ea982f7 [Telemetry] Make StartVideoCapture start capturing synchronously.
Previously it just asynchronously started capture.

BUG=323813
R=bulach@chromium.org, skyostil@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@239640 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-10 01:50:08 +00:00
bulach@chromium.org 8e5718f100 Android: kill leftover webpagereplay servers.
Some bots downstream ended up with hundreds of instances.
Kill them all before start running the tests.

BUG=326540

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@239479 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-09 12:55:22 +00:00
pliard@chromium.org cea7be232e Don't unmap ports in host_driven/test_case.py.
The sync tests failure seems to have to do with port unmapping. Not unmapping
ports let most of the sync tests pass (only 2 failures remain for an unrelated
reason apparently).
Note that port unmapping was added to avoid exceeding the file descriptor limit
in net_unittests since each test server was listening on a different port. The
sync tests use a server always listening on a same port so unmapping the port
is not strictly needed.

BUG=313809

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@239467 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-09 11:13:25 +00:00
navabi@google.com 8ab4b6bad9 Run logcat monitor and device status check on bisect bots.
BUG=299782
TBR=ilevy@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@239418 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-08 22:51:18 +00:00
newt@chromium.org e0e8e6eb61 Don't use sys.exit() in build_utils.CheckCallDie().
Calling sys.exit() in a thread spawned by
multiprocessing.pool.ThreadPool causes an infinite hang that even SIGINT
can't fix. This is bad. Instead of calling sys.exit(), raise an
exception, crafted so that the important information (the failed
command's stdout and stderr) comes after the stacktrace and the copyable
command.

This also renames CheckCallDie() to CheckOutput() and changes it to
print stderr but not stdout by default. Suppressing stderr has hid bugs
in the past (e.g. aapt crunch failures), and hiding stdout is what we
usually want anyway.

R=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@239276 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-06 23:24:37 +00:00
wjia@chromium.org 253aaefc8e Mute audio when volume is zero on Android.
We are using Communication mode for audio backend on Android. By design, the platform voice
volume never goes to zero. This patch uses ContentObserver to listen to volume change. When
volume is set to zero, AudioManagerAndroid will mute all its output streams.

BUG=263399
R=henrika@chromium.org, qinmin@chromium.org, tommi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@239007 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-05 19:09:18 +00:00
boliu@chromium.org fddbff8b61 Fix non-goma android build after r238630
dirname outputs "." when given an empty argument, which gyp rules then
interpret as goma being available.

Remove ANDROID_GOMA_WRAPPER which is no longer used, and use GOMA_DIR
directly for android build.

BUG=
NOTRY=true

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

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238727 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-04 18:35:38 +00:00
boliu@chromium.org 8f76b822a5 Revert 238718 "Fix non-goma android build after r238630"
Broke gyp on chromeos bot (possibly others)

> Fix non-goma android build after r238630
> 
> dirname outputs "." when given an empty argument, which gyp rules then
> interpret as goma being available.
> 
> Remove ANDROID_GOMA_WRAPPER which is no longer used, and use GOMA_DIR
> directly for android build.
> 
> BUG=
> NOTRY=true
> 
> Review URL: https://codereview.chromium.org/104563004

TBR=boliu@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238719 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-04 17:52:16 +00:00
boliu@chromium.org 4dda2a367e Fix non-goma android build after r238630
dirname outputs "." when given an empty argument, which gyp rules then
interpret as goma being available.

Remove ANDROID_GOMA_WRAPPER which is no longer used, and use GOMA_DIR
directly for android build.

BUG=
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238718 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-04 17:47:53 +00:00
tonyg@chromium.org 53316d2f0d Factor out a system_properties interface for interacting with getprop/setprop.
Also, teach it to cache read-only properties so that we don't hit the device so
often. This caching is a prereq for speed index support in Telemetry which would
like to query these often.

BUG=323813

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238601 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-04 06:23:44 +00:00
bulach@chromium.org 55a4aa5dc6 Android: run bb_device_status_check prior to other steps.
This will make sheriffing easier and print the link to the bug
in case there are no online devices.

BUG=324744
TBR=navabi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238407 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-03 16:13:35 +00:00
craigdh@chromium.org c134c467a4 [android] Adds AdbWrapper which is the base of the eventual AndroidCommands replacement.
BUG=318387
TEST=included
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@238123 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-12-02 17:58:10 +00:00
thakis@chromium.org 250c43f29c Remove unused line from android/envsetup_functions.sh
BUG=184431

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@237842 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-28 21:43:48 +00:00
skyostil@chromium.org bfb5711308 Re-enable ScrollingCoordinatorChromium tests on Android
These tests were disabled a long time ago because they were crashing,
but now they seem to be passing fine.

BUG=159935,170787,152573

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@237821 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-28 18:31:58 +00:00
primiano@chromium.org a00b91d193 [Telemetry] Refactor common Android test harness functions.
This is a reland of crrev.com/62953024 which was reverted because
it broke other platforms.

Refactoring common cleanup code required by both
android_browser_finder.py and perf/setup.py and moving it into
pyblib/utils/test_environment.py.
Also, this change avoids killing twice the adb server when running
in a bot environment, where the adb restart is already invoked by
the bot steps.

BUG=268450
R=bulach@chromium.org,tonyg@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@237815 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-28 18:02:32 +00:00
aberent@chromium.org 6af865d391 Check library version and handle library load errors
This CL modifies the build to incorporate the expected C++ library version
in the Java code. This is then checked when the library is loaded, to
make sure that the C++ and Java builds match.

This CL also implements error handling when library loads fail or the
loaded version doesn't match the expected version.

BUG=311644

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@237779 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-28 14:28:52 +00:00
creis@chromium.org 2b35f6c039 Rename RenderViewHostManager to RenderFrameHostManager.
BUG=314791
TEST=No behavior change.
TBR=nduca@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@237714 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-28 06:47:36 +00:00
bulach@chromium.org c60e3f540f Android: makes "RestartAdbdOnDevice" more robust.
Some bots fail on the command that kills adbd on the device,
even though the device should be online and available.

BUG=322132

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@237708 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-28 06:35:32 +00:00
thakis@chromium.org dc9851ae43 Revert 237667 "[Telemetry] Refactor common Android test harness ..."
http://build.chromium.org/p/chromium.chromiumos/builders/ChromiumOS%20%28amd64%29/builds/12649/steps/BuildPackages/logs/stdio

autotest-chrome-0.0.1-r3242: ERROR:root:bluetooth_RegressionClient import error: No module named telemetry.core.  Skipping bluetooth_RegressionClient
autotest-chrome-0.0.1-r3242: Traceback (most recent call last):
autotest-chrome-0.0.1-r3242:   File "/build/amd64-generic/tmp/portage/chromeos-base/autotest-chrome-0.0.1-r3242/work/autotest-work/client/bin/setup_job.py", line 72, in init_test
autotest-chrome-0.0.1-r3242:     exec import_stmt + '\n' + init_stmt in locals_dict, globals_dict
autotest-chrome-0.0.1-r3242:   File "<string>", line 1, in <module>
autotest-chrome-0.0.1-r3242:   File "/build/amd64-generic/tmp/portage/chromeos-base/autotest-chrome-0.0.1-r3242/work/autotest-work/client/site_tests/bluetooth_RegressionClient/bluetooth_RegressionClient.py", line 7, in <module>
autotest-chrome-0.0.1-r3242:     from autotest_lib.client.cros.bluetooth import bluetooth_semiauto_helper
autotest-chrome-0.0.1-r3242:   File "/build/amd64-generic/tmp/portage/chromeos-base/autotest-chrome-0.0.1-r3242/work/autotest-work/client/cros/bluetooth/bluetooth_semiauto_helper.py", line 10, in <module>
autotest-chrome-0.0.1-r3242:     from autotest_lib.client.cros import semiauto_framework
autotest-chrome-0.0.1-r3242:   File "/build/amd64-generic/tmp/portage/chromeos-base/autotest-chrome-0.0.1-r3242/work/autotest-work/client/cros/semiauto_framework.py", line 9, in <module>
autotest-chrome-0.0.1-r3242:     from autotest_lib.client.common_lib.cros import chrome
autotest-chrome-0.0.1-r3242:   File "/build/amd64-generic/tmp/portage/chromeos-base/autotest-chrome-0.0.1-r3242/work/autotest-work/client/common_lib/cros/chrome.py", line 7, in <module>
autotest-chrome-0.0.1-r3242:     from telemetry.core import browser_finder, browser_options, exceptions
autotest-chrome-0.0.1-r3242: ImportError: No module named telemetry.core

> [Telemetry] Refactor common Android test harness functions.
> 
> Refactoring common cleanup code required by both
> android_browser_finder.py and perf/setup.py and moving it into
> pyblib/utils/test_environment.py.
> Also, this change avoids killing twice the adb server when running
> in a bot environment, where the adb restart is already invoked by
> the bot steps.
> 
> BUG=268450
> R=bulach@chromium.org,tonyg@chromium.org
> NOTRY=true
> 
> Review URL: https://codereview.chromium.org/62953024

TBR=primiano@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@237674 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-28 05:15:37 +00:00
primiano@chromium.org 92461c7d48 [Telemetry] Refactor common Android test harness functions.
Refactoring common cleanup code required by both
android_browser_finder.py and perf/setup.py and moving it into
pyblib/utils/test_environment.py.
Also, this change avoids killing twice the adb server when running
in a bot environment, where the adb restart is already invoked by
the bot steps.

BUG=268450
R=bulach@chromium.org,tonyg@chromium.org
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@237667 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-28 03:50:22 +00:00
frankf@chromium.org 9566e2e083 [chromedriver] Run all tests on WebView test app.
BUG=None
R=craigdh@chromium.org
TBR=navabi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@237627 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-27 22:01:28 +00:00
frankf@chromium.org ae3f3ec10a [Android] Make exceptions when starting MinidumpUploadService non-fatal.
Sometimes we get "android.util.AndroidException: Can't connect to
activity manager; is the system running?". So starting the service
should be best-effort.

BUG=None
R=craigdh@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@237626 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-27 21:45:14 +00:00
bulach@chromium.org c57d85ac3c Android: fixes out dir for adb_gdb with cr tool.
Use the CHROMIUM_OUT_DIR variable when available.

BUG=
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@237571 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-27 14:34:36 +00:00
bulach@chromium.org 7777a4442b Android: removes old "keep_test_server_ports".
This option is no longer in use, clean it up.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@236533 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-21 16:18:40 +00:00
ilevy@chromium.org 81d5adc244 Fix android presubmit errors.
Modify android code to avoid depending on side effects of previous
steps when in BUILDBOT_TESTING mode.  This is causing failure on
chromium_presubmit.  Fix some pylint warnings.

BUG=317585

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@236522 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-21 13:48:58 +00:00
frankf@chromium.org 840475656a [Android] Send minidump service intent as root.
Also improve exception message.

BUG=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@236280 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-20 20:47:46 +00:00
andrewhayden@chromium.org 387369ae2b Emulator script improvements: config templates, --api-level, and mips support.
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@236219 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-20 10:39:48 +00:00
jyasskin@chromium.org 9b0e2cbaf0 Support GTest's spellings for its options.
In the build/android/test_runner.py tool.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@236149 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-20 04:38:03 +00:00
craigdh@chromium.org 448e4bae97 [Android] Refactor and reuse reraiser_thread thread stack dumping utility.
BUG=None
TEST=reraiser_thread_unittest.py
NOTRY=True
R=frankf@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@236077 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-20 00:35:24 +00:00
pliard@chromium.org 7c11b595c9 Add threads stack dumping feature (through SIGUSR1) to test_runner.py.
BUG=320445
R=bulach@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@235996 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-19 15:02:21 +00:00
bulach@chromium.org af506374aa Android perf: force flushing stdout.
Some of the perf bots are still not showing the output.
Force flushing the stdout,

BUG=320445
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@235995 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-19 14:55:23 +00:00
frankf@chromium.org 1a224057f4 [Android] Guard perf_control creation in gtest test_runner.
BUG=None
TBR=skyostil@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@235862 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-19 01:01:47 +00:00
elham@google.com 3405e2cb37 Adding two test cases to the existing webrtc content_browser tests:
1) Verify that setLocalDescription fails when trying to negotiate an unsupported video codec
 
- Verify that setLocalDescription fails when trying to negotiate with a client that does not support encryption
 

BUG=303035

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@235798 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-18 19:51:25 +00:00
andrewhayden@chromium.org 58f1ea309f Make install_emulator_deps.py more flexible
Changes:
* Decouple the version of the SDK that is installed from
  the version of the Android API that will be used.
* Upgrade the SDK to Android-19 while we are at it.
* Allow an "--api-level" argument to choose system images.
* Automagically download and install platform libraries for
  any --api-level

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@235782 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-18 19:05:54 +00:00
craigdh@chromium.org 794996b688 [android] Add timeout_retry module to pylib/utils/.
BUG=318387
TEST=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@235776 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-18 18:52:06 +00:00
mnaganov@chromium.org 433f48e336 [android] Disable 3 failing accessibility-related content browsertests.
DumpAccessibilityTreeTest.AccessibilityDialog
DumpAccessibilityTreeTest.AccessibilityModalDialogClosed
DumpAccessibilityTreeTest.AccessibilityModalDialogInIframeOpened

BUG=297230
TBR=dmazzoni@chromium.org
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@235740 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-18 16:36:53 +00:00
bulach@chromium.org dede467ff1 Android perf tests: print output more often.
Tests are timing out without output.

BUG=320445
TBR=tonyg@chromium.org
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@235697 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-18 11:16:02 +00:00
rileya@chromium.org e1ee525060 Add .isolate for media_perftests.
BUG=310837

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@235687 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-18 10:53:59 +00:00
dominikg@chromium.org d21af03f9f Telemetry: Filter invalid frame lengths from SurfaceFlinger data.
We use the SurfaceFlinger data to compute the lengths of the frames (normalized
to vsyncs). Sometimes the data is inconsistent and we get two frames that are
less than 1 vsync apart. Filter out these frame lengths (threshold length is
currently 0.5 vsyncs) and print a warning.

BUG=318093

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@235675 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-18 08:53:07 +00:00
rockot@google.com 466f619032 Disable CoreAnimationCompositorAnimationsTest.ConvertTimingForCompositorIterationCount
BUG=320005

git-svn-id: http://src.chromium.org/svn/trunk/src/build@235425 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-15 21:15:48 +00:00
bulach@chromium.org ff726602fb Android perf tests: use a proper timer.
Rather than relying on |flush| to be called, use a timer to keep
the log going.

BUG=
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@235338 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-15 16:08:20 +00:00
frankf@chromium.org 524f350f20 [Android] Enable starting the crash upload service using an intent
This utility can be used by stability tests to upload any crashers
before the profile is cleared.

BUG=None
R=feng@chromium.org, yfriedman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@235229 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-14 20:57:45 +00:00
mek@chromium.org 45454b24af As promised, add a unit test that makes sure the in app payments app gets installed and is enabled.
BUG=313797
R=asargent@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@235206 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-14 19:18:23 +00:00
navabi@google.com 81ea6f4471 Roll to Android SDK 19 and build-tools 19.0.0.
BUG=317754

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@235122 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-14 12:05:28 +00:00
pliard@chromium.org 1c4b751d6b Purge unpinned ashmem before parsing /proc/$pid/smaps.
This will help stabilize memory measurements so that memory regressions can't
be hidden when unpinned ashmem gets purged by the kernel.

BUG=311633

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@235115 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-14 11:00:30 +00:00
newt@chromium.org aabdacb34b Don't swallow "aapt crunch" build errors.
aapt crunch always has a return code of 0, even when it finds an invalid
9-patch and can't process it. Since we can't trust the return code, we
fail when aapt outputs anything to stderr.

BUG=314885
R=cjhopman@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@234972 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-14 00:13:38 +00:00
bulach@chromium.org e2699b2b01 Android: keep a "heartbeat" for perf tests.
The script's output is "buffered" so it can be retried on case of failures
without messing up the higher level log parsing.
This however triggers the buildbot watchdog, which kills the tests since
it doesn't produce any output.
Print a hearbeat message to indicate the --single-step step script is
alive and kicking.

BUG=318369
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@234884 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-13 20:09:54 +00:00
bulach@chromium.org 4ec19bbee7 Android: another fix for perf tests.
Force "Release" build mode.
The bot needs to pass --release, this is a temporary workaround.

BUG=318369
TBR=frankf@chromium.org, tonyg@chromium.org, stip@chromium.org
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@234803 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-13 11:35:58 +00:00
bulach@chromium.org fe15ff8007 Android: a couple of fixes for perf tests.
Part of integrating build/android/test_runner.py perf with chromium.perf:
- The bots are failing since they can't find adb, use the named constant.
- Set the cwd as necessary (the buildbots run one level up from src/)

BUG=318369
TBR=frankf@chromium.org,tonyg@chromium.org
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@234794 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-13 09:49:31 +00:00
bulach@chromium.org afbadfcdb1 Android: fix --single-step option for test_runner.py perf.
Due to the way buildbot constructs the command, rather than having a single string
for the command, use --single-step -- cmd args

NOTRY=true
BUG=318369

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@234744 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-13 04:03:29 +00:00
bulach@chromium.org e758e81bcf Android: allow a --single-step for test_runner.py perf.
This is the src/ part of trying to make android up and downstream run more or
less the same stack for perf tests.
Instead of requiring all steps listed (which allows sharding), this instead
allows running a single step, with retries and other niceties such as adb
restarting, device fail over, etc..

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@234493 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-12 12:59:52 +00:00
bulach@chromium.org efe6daea36 Android: map the forwarded ports at the host driven level.
Rather than (un)mapping the ports on each one of the internal instrumentation
tests, do it higher up at the host driven level.
Ensure the test server is fully setup and tear down.
Ensure the adb port is fully unmapped at the host forwarder level. 
Add more log information to the forwarder, and add them to TestResult.log in case of failure.
Kill the device forwarder when unmapping all ports.


BUG=313809

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@234486 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-12 11:51:25 +00:00
kjellander@chromium.org 2d871cb6b9 Add gtest_filter to Android test execution for WebRTC
We're seeing a lot of red builds due to tests out of
our control for our Android builder running
content_browsertests in
http://build.chromium.org/p/chromium.webrtc.fyi/waterfall

By filtering out our WebRTC specific tests, we'll get
a better signal of if changes in WebRTC ToT is causing
trouble in Chrome on Android.

NOTRY=True
BUG=305749
TEST=Android trybots passing + 
built with a workspace setup as https://code.google.com/p/webrtc/issues/detail?id=1882#c11:
. build/android/envsetup.sh
GYP_DEFINES="$GYP_DEFINES enable_tests=1" android_gyp
ninja -C out/Debug android_builder_chromium_webrtc
build/android/buildbot/bb_run_bot.py --bot-id=webrtc-chromium-tests --testing

Verified the output and ran the produced command line locally:
build/android/test_runner.py gtest -s content_browsertests --verbose '--gtest-filter=Webrtc*:WebRTC*' --num_retries=1

Verified that only the WebRTC test were excuted.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@234467 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-12 09:21:41 +00:00
newt@chromium.org e3a94f3d91 Raise a compile error if RTL-unfriendly attributes are used.
We previously showed a warning in this case, but we might as well make
it an error since this is always an undesirable situation that needs to
be fixed.

BUG=315208
R=cjhopman@chromium.org, kkimlabs@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@234328 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-11 23:53:10 +00:00
frankf@chromium.org 857b52c76f [chromedriver] Add a WebView shell app for testing.
BUG=None
R=craigdh@chromium.org
TBR=navabi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@234255 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-11 19:21:03 +00:00
pliard@chromium.org 6a48bc1c26 Make Telemetry report VM peak metric on Android.
BUG=311633

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@233861 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-08 11:19:15 +00:00
digit@chromium.org 3c712faf38 android: Make org.chromium.base.SysUtils.isLowEndDevice() work without native code.
This patch modifies the implementation if SysUtils.isLowEndDevice() to
not rely on any native code, which is required to run it before the native
libraries are actually loaded (e.g. when running certain tests).

+ Simplify the content linker that doesn't need a specific native method
  anymore to replicate the yet-unloaded native SysUtils::IsLowEndDevice().

BUG=309926
R=dtrainor@chromium.org,tedchoc@chromium.org,frankf@chromium.org,bulach@chromium.org
TEST=build/android/test_runner.py linker

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@233739 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-08 01:04:57 +00:00
skyostil@chromium.org 8a87d9960c android: Add screen recording tool
Add a tool to record screen capture videos from Android devices. This
patch introduces both a standalone tool as well as a telemetry profiler
which captures a video of a telemetry run.

Note that the screen recording functionality requires Android KitKat or
later.

TEST=tools/perf/run_benchmark run --profiler=android-screen-recorder --browser=android-chrome smoothness.top_25 --page-filter=news.yahoo

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@233686 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-07 21:17:25 +00:00
kjellander@chromium.org 15ffdc38ee Remove call to update_resources.py for WebRTC
This script is about to be removed in favor of using
download_from_google_storage.py in depot tools for
the download instead (based on .sha1 files).

When https://codereview.chromium.org/60513012/ is
landed and the builders are updated to actually execute
the hooks (https://codereview.chromium.org/59793009)
the resource files will be downloaded using that instead.
Even if executing the hooks means a bit of extra execution
time for the build, this approach is simpler and means
less maintenance.

TEST=none
BUG=webrtc:2294
NOTRY=True
TBR=navabi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@233587 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-07 11:59:50 +00:00
aberent@chromium.org adf1791c86 Make PushIfNeeded do what is says.
PushIfNeeded was pushing unconditionally when either the source or destination directory included a symbolic link it its path. This CL fixes that.

NOTRY=True
BUG=314578

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@233387 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-06 21:59:56 +00:00
jdduke@chromium.org b592006134 [Android] Fix missing onSingleTapConfirmed calls in GestureDetector
Eliminate the short period of time between the tap timeout and long
press causing onSingleTapConfirmed not to be dispatched when apps
expect.

Note: This is a cherry-pick of the upstream Android fix for b/8124095.

BUG=315124
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@233192 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-06 02:17:30 +00:00
xhwang@chromium.org 8eda94d42e Enable content_browsertest MediaSourceTest on Android.
These tests pass on my Nexus 7 v2. Occasionally I see a timeout in MediaSourceTest.ConfigChangeVideo test but the next retry passes. I'll check if the same thing happens on the test bots later.

BUG=304956
TEST=MediaSourceTest work on Nexus 7 v2.
R=qinmin@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@233188 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-06 02:10:57 +00:00
bulach@chromium.org 16e56ca31b Android: removes hardcoded out directory in test_server.py
Use the one defined in constants.py instead.

BUG=
TEST=build/android/test_runner.py instrumentation --test-apk ChromiumTestShellTest --test_data chrome:chrome/test/data/android/device_files --verbose --host-driven-root=chrome/android -f testDisableAndEnableSync --python-only

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@233057 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-05 19:39:10 +00:00
kjellander@chromium.org 3101be3d72 Add target for building Chromium tests for WebRTC.
WebRTC is running the content_browsertests test
for ToT WebRTC revisions to track regressions on an
early stage. In order to save compile time and
build artifacts, we want to build only what's needed
(i.e. not the All target).
In https://codereview.chromium.org/27622005/ an
attempt was made to make content_browsertests_apk
to be enough of target to build (that CL made it also
build android_tools). Since that approach was having
bad sideffects, this helper target should give us
everything needed for our build.

NOTRY=True
TEST=local compile, verifying the apk and host_forwarder is built.
BUG=305749

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@232956 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-05 13:34:15 +00:00
thakis@chromium.org 41a060f07a android bb: Stop passing --build-dir and --build-output-dir.
These flags are ignored as of r232840 (extract_build.py),
r232782 (zip_build.py), r232641ish (archive_layout_test_results.py).

BUG=314253
R=ilevy@google.com
TBR=ilevy@chromium.org
(who lgtm'd as ilevy@google.com)

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@232890 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-05 03:09:23 +00:00
bulach@chromium.org 781a9546cf Android: further fixes to bb_device_status_check.py
The "p." properties are actually functions that can raise NoSuchProcess.
Capture that exception.

BUG=
TBR=navabi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@232750 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-04 18:58:29 +00:00
phoglund@chromium.org 9b8cc05723 Disabling new legacy call test on Android.
The new test is as broken on Android as the old ones, so let's add that
to the disable list.

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

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@232700 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-04 12:27:00 +00:00
rmcilroy@chromium.org 90eb6d0348 [Android]: Only kill 'adb' during device status check, not all commands with adb in command line.
This was causing the perf tests to fail since the bb_device_steps_internal.py
had '--adb-root' as an argument and so was being accidentially killed during
the device status check.

BUG=312285

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@232610 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-02 13:48:56 +00:00
mkosiba@chromium.org bd8eb2425b [android_webview] Fix findbugs warnings.
Refactor the code a bit and don't ignore return value of delete().

BUG=230209
TEST=AndroidWebViewTest

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@232522 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-11-02 00:17:17 +00:00
thakis@chromium.org 4cef26f0d7 Remove trailing "." from message lines.
cs.chromium.org has way fewer hits for
    'message'.*\.',?$ file:gyp
than for
    'message'.*[^\.]',?$ file:gyp

so standardize on the latter.

BUG=none
TEST=less ocd when watching build output
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@232166 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-31 18:08:28 +00:00
maruel@chromium.org 163f551776 Use swarming_client instead of swarm_client.
Modify all the references to use src/tools/swarming_client/.

The build scripts already support both.

R=csharp@chromium.org, torne@chromium.org
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@232104 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-31 13:34:31 +00:00
xhwang@chromium.org 07c89f1ad4 Enable content_browsertests EncryptedMediaTest on Android.
BUG=304956
TEST=Tests pass locally.
R=qinmin@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@231837 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-30 15:23:03 +00:00
wangxianzhu@chromium.org d6a9a6b110 Fix a typo about findbugs_args
BUG=none
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@231510 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-29 03:39:21 +00:00
skyostil@chromium.org 2ffdafe6e8 android: Add support for html-packaged trace files to adb_profile_chrome
Add support for html-packaged trace files to adb_profile_chrome. The
--html option will cause the trace file to be serialized into an html
file that contains a snapshot of the Trace Viewer from the Chromium
source tree. The resulting file has no other dependencies and therefore
does not require a specific version of Chrome for viewing.

This patch also adds the --view option for automatically opening the
written trace file in a browser.

NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@231333 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-28 15:39:35 +00:00
navabi@google.com fefabac95d Add sleep after restarting usb ports and before checking for devices.
Need to wait a couple seconds after restarting usb before doing 'adb devices',
or the devices do not show up.

E.g. https://chromegw.corp.google.com/i/clank/builders/s3-sharded-official-perf-
noflash-clankium/builds/3572/steps/device_status_check/logs/stdio

BUG=299891
TBR=ilevy@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@231310 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-28 11:33:06 +00:00
abarth@chromium.org 76b2986307 Pass app URL to mojo_shell on Android
This CL lets us supply an app URL to mojo_shell on Android. To load an app, you
can use the adb_run_mojo_shell script:

$ ./build/android/adb_run_mojo_shell http://127.0.0.1:4444/libsample_app.so

This script starts the MojoShellActivity on the device and passes the URL to
mojo_shell via an Android Intent. We're currently using the VIEW intent, but we
might want to switch to a different intent at some point.

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

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@231260 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-27 09:48:47 +00:00
bulach@chromium.org 534b8e120a Android: kill all adb instances before trying to restart usb.
On some bots, there are adb instances left over from previous runs.
They don't play well with restarting the usb, and devices eventually "disappear".
This tries to kill all adb instances before restarting usb.

BUG=311058
TBR=navabi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@231035 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-25 16:32:43 +00:00
dfalcantara@chromium.org 8f1202504b Disable BrowserGpuChannelHostForFactoryTests on Android
Don't seem to have ever passed on Android since they were added.

NOTRY=true
BUG=311344
TBR=sievers@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230858 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-24 22:52:26 +00:00
dfalcantara@chromium.org e71e57d960 Disable WebrtcBrowserTests on Android
They're failing on multiple Android FYI bots on the waterfall.

NOTRY=true
BUG=311348
TBR=mallinath@chromium.org,fischman

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230850 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-24 22:33:45 +00:00
frankf@chromium.org 87fb22931a [Android] Improve exception message when failed to get test list.
BUG=None
R=craigdh@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230783 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-24 19:10:27 +00:00
thakis@chromium.org 97748bab29 android: Run upload results script from the parent of src/
Matches other ports.

BUG=310981
TBR=dpranke

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230730 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-24 15:57:36 +00:00
skyostil@chromium.org 3de81389d5 android: Run cc_perftests with high performance CPU governor
Run the cc_perftests test suite with the high performance CPU governor
on Android to reduce the amount of noise in the results.

BUG=310000

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230692 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-24 11:30:49 +00:00
iancottrell@chromium.org dbbf919912 Remove oracle java tests from envsetup.sh
BUG=310062

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230481 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-23 18:42:57 +00:00
craigdh@chromium.org 11576da222 [android] Clean up logging in test script pushes.
BUG=None
TEST=None
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230475 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-23 18:19:58 +00:00
iancottrell@chromium.org 59643f9b07 Change javascript string replace in ant files to pure ant using a filterchain with replacestring
BUG=310065

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230421 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-23 14:33:33 +00:00
iancottrell@chromium.org 2a27f96188 Replacing the javascript jar file merge with pure ant
BUG=310065

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230420 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-23 14:31:31 +00:00
skobes@chromium.org 933328615b Make sure envsetup.sh is sourced.
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230307 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-23 03:43:25 +00:00
fischman@chromium.org 408e9ee9c4 Enable glReadPixels from <video> to 2d context on Android.
The ordering inside Skia's kARGB_8888_Config is platform-specific; on Android it
is RGBA but on non-Android it's BGRA.
(controlled by SkUserConfig and SK_[ARGB]32_SHIFT)

BUG=138930

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230229 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-22 22:18:55 +00:00
dpranke@chromium.org 407ef245a9 Fix handling of tests that fail two different ways in run-webkit-tests (buildbot side).
This is a follow-on to r159630. It turns out I wasn't covering the
case where a test fails two different ways, and the second failure
is actually an expected failure.

TBR=ilevy@chromium.org, ojan@chromium.org
BUG=307277

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230204 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-22 21:13:16 +00:00
skyostil@chromium.org 09c667ae6d android: Re-enable pixel test on GPU bot now that we can take screenshots
BUG=285932
TBR=navabi@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230147 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-22 16:40:53 +00:00
digit@chromium.org 4e52766e1d Disable flaky Breakpad unit test on Android.
BUG=310088
R=qsr@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230092 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-22 10:30:38 +00:00
thakis@chromium.org 84dbf85eb4 Fix mistake in r229993.
The point of that change was to run zip/extract/compile steps in the parent of
src/, but it just ran them in src/ with a different spelling of it.

Also do this in one more place for compile which I missed.

BUG=294387
R=ilevy@google.com
TBR=ilevy (who reviewed with his @google)

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@230044 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-22 04:06:03 +00:00
thakis@chromium.org 32d6f088a2 android: run zip/extract/compile steps in the parent of src/, like on other platforms.
BUG=294387
R=ilevy@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@229993 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-22 01:04:21 +00:00
bulach@chromium.org 6a6d945cdd Relands Android perf tests: kill adbd on the device after running a test.
Third retry on crrev.com/226762.
Adds "wait-for-device".
There's some data indicating that adbd on the device sometimes
spontaneously restores its connection.
After running a test, let's kill adbd and wait for bit.

This is a speculative change to try to make the bots healthier.

BUG=268450

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@229931 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-21 21:55:58 +00:00
digit@chromium.org a48f19820d Android: Add chrome-specific dynamic linker.
This patch adds a new Chrome-specific dynamic linker for Android,
that implements RELRO section sharing in order to save about 1.3 MB
of RAM per renderer process in content-based programs (ContentShell,
ChromiumTestShell, Chrome, etc...)

The linker is disabled by default. For more details, see the corresponding bug entry.

This introduces a new test package (content_linker_test_apk) as well as a new test category. To build and test this feature, do the following:

  ninja -C out/Debug content_linker_test_apk
  build/android/test_runner.py linker


BUG=287739
R=qsr@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@229921 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-21 21:40:44 +00:00
kjellander@chromium.org dbaa3f9c8d Build support for WebRTC Chromium tests on Android.
In addition to the native APK tests for WebRTC, we
want to build and test the content_browsertests test
for each revision of WebRTC in our Chromium WebRTC FYI
waterfall.
This CL adds the needed configurations for that, that are used
by the buildbots in: https://codereview.chromium.org/26702005/

NOTRY=True
TEST=presubmit
BUG=305749

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@229758 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-21 08:18:29 +00:00
xhwang@chromium.org e16a047f57 Do not run MSE related tests when MSE is not available.
BUG=304956
TEST=This make MSE related tests doesn't run on unsupported platform/devices.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@229610 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-19 18:28:04 +00:00
navabi@google.com f7719915b6 Add option to restart usb on device status check before performing check.
Restart USB has been known to bring back offline devices. Add option to device
status check to restart usb ports before performing the check. This requires
restart_usb to be installed (see
https://code.google.com/p/chromium/issues/detail?id=305769). Prints warning if
the utility has not been installed on the host.

We will add this first to perf bots. Restarting usb has fixed device issues on these bots. If we find it works and does not have unseen consequences, we will deploy on all bots (i.e. make default of --restart-usb to True).

BUG=299891

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@229553 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-19 13:44:02 +00:00
dpranke@chromium.org a2333e634c Fix error message values in bb_device_steps.py after r229193 (Build fix).
TBR=peter@chromium.org
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@229472 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-18 21:07:33 +00:00
bulach@chromium.org d7f0c63331 Android perf tests: only store the retry results if it's better.
Rather than blindingly store the results of the latest perf test,
keep the "least worst" run.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@229351 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-18 11:03:55 +00:00
frankf@chromium.org 82188be08a [Android] Remove --keep_test_server_ports as a mandorty option.
Perf tests currently expect all perf scripts to support this option.

BUG=285470
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@229289 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-10-18 03:03:33 +00:00