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

3680 Коммитов

Автор SHA1 Сообщение Дата
scottmg b88a745e55 Remove dependency of c/b/loader on c/b/host_zoom_map_impl.h
Contrary to previous attempt at:
68c6f2ce16

RenderFrameMessageFilter is on the IO thread, and is a BrowserAssociatedInterface, so will maintain the ordering of the resource request and the zoom level request. See also https://codereview.chromium.org/2167513003.

BUG=609607
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation

Review-Url: https://codereview.chromium.org/2211713002
Cr-Original-Commit-Position: refs/heads/master@{#410417}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d4423d511f18f4b0d2e94cf17bf6043bee449c55
2016-08-08 20:13:16 +00:00
perezju 6551c2622c [build/android] Ensure NFC remains disabled
One some Android versions, enabling airport mode is not enough to switch
off NFC on the devices. Running "svc nfc disable", available on M and later,
allows to ensure that NFC always remains off.

BUG=634937

Review-Url: https://codereview.chromium.org/2223013002
Cr-Original-Commit-Position: refs/heads/master@{#410345}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 154947a15a35d3b9b9818bd895f950c0a12ad306
2016-08-08 14:03:07 +00:00
jbudorick 4f92210342 [Android] Switch instrumentation tests to generated device isolates.
BUG=633333

Review-Url: https://codereview.chromium.org/2203073002
Cr-Original-Commit-Position: refs/heads/master@{#410238}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 84c77363529b707fe226c440a153810cb6dea30d
2016-08-06 01:01:45 +00:00
estevenson a93e791e80 Removing unused resources from chrome/java/res
This will reduce the number of lint warnings generated during builds.

BUG=621773

Review-Url: https://codereview.chromium.org/2207103003
Cr-Original-Commit-Position: refs/heads/master@{#410186}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9e4be9ba438612c55668fc95a55000e4a4cc0869
2016-08-05 22:18:19 +00:00
smaier e1ac0e2caf Merging under test java into instrumentation test java.
This enables us to run all ProGuard uninhibited by tests, since Proguard will
now consider both the tests and the tested code while performing its
optimizations. This is opposed to running ProGuard on the tested java,
keeping stuff around for the tests, which would then use the tested code as
a library.

This turns on optimizations and removes test code from the shipped apk, saving
us ~550kb in .dex size, and ~70kb memory per process.

BUG=620323,625704,626710

Review-Url: https://codereview.chromium.org/2182303002
Cr-Original-Commit-Position: refs/heads/master@{#410056}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d50624e2e5a9d9fe13596d83e73385c9c44069e9
2016-08-05 14:23:53 +00:00
xunjieli 4ef8100961 Modify java_cpp_enum.py to preserve comments
This CL modifies java_cpp_enum.py to preserve comments on the
enums in the generated Java file.

The comments are useful for developers who usually read the
JavaDoc and not the C++ files.

BUG=634092

Review-Url: https://codereview.chromium.org/2210633002
Cr-Original-Commit-Position: refs/heads/master@{#410047}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ea986397d77dc45b5b272ad68d00cc6063ee6987
2016-08-05 13:44:15 +00:00
hzl 4db7a80151 Make the parser recognize 'process crash' and mark test results correctly.
Before the parser only recognize native crash, but not process crash. In
this cl, process crash will be marked as 'CRASHED' instead of 'UNKNOWN'.

BUG=

Review-Url: https://codereview.chromium.org/2207303002
Cr-Original-Commit-Position: refs/heads/master@{#409934}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 419b412379e5db6d32858f31f22d1b1ebc6ab2da
2016-08-04 23:35:37 +00:00
maxbogue 2e98e447ca [Sync] Merge sync_unit_tests into components_unit_tests, take 3.
Previously reverted a couple times due to breaking bots. Since this is
blocking some other stuff, I'm going to introduce a dummy target as
dpranke@ suggested.

BUG=626114
TBR=jam,slan

Committed: https://crrev.com/9f7c262325b965be2a51475650d542c9791eee9d
Cr-Commit-Position: refs/heads/master@{#409060}

patch from issue 2186733002 at patchset 60001 (http://crrev.com/2186733002#ps60001)

Review-Url: https://codereview.chromium.org/2205393002
Cr-Original-Commit-Position: refs/heads/master@{#409894}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1d0b9ba2d40d0a558e543989279e54cfba36757c
2016-08-04 20:47:48 +00:00
asvitkine 417433b576 Fix incremental dex builds failing when nothing changed in jar.
BUG=634203

Review-Url: https://codereview.chromium.org/2215843002
Cr-Original-Commit-Position: refs/heads/master@{#409823}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0dcc7442cb5699f99d3713bff79c3fe1e3116e83
2016-08-04 17:42:34 +00:00
primiano eb7f3ec0ed android: Enable death on malloc/operator new failure.
1. Historically the OnNoMemory suicide on malloc/new failure was not
enabled on Android. This seems to be due to the fact that
set_new_handler was not avilable on Android back in the days of
pre-libcxx. See crbug.com/317791 .

2. After the libcxx switch, however, the combination of operator new
throwing bad_alloc and chrome building with -fno-exception made
operator new (but not malloc) inadvertently suicidal, by virtue of
ending up calling the default exception handler.
See crbug.com/633313#c28 .

3. crrev.com/1883093005 (first seen in M52) introduced a shim layer
wrapping malloc and operator new, which was intending, among the
various things, to make malloc / new finally secure on Android.
This good intend, however, failed to materialize because the
set_new_handler call in memory_linux.cc was still #ifdef-ed out
on Android. Similarly the memory_unittests.cc were excluded on
Android for the same reason (Android was deemed to not possibly
be secure since 1.).

In summary here's what went wrong:
- When we switched to libcxx, nobody realized that we could have
  finally taken advantage of set_new_handler.
- When I enabled the android shim I didn't realize about the
  missing set_new_handler call. I was assuming that the memory
  tests would have screamed red if I did something wrong, but I
  didn't realize that they were disabled on Android.

This CL fixes all this, enabling set_new_handler on Android and
enabling the tests.

Note also that this CL is just about inducing a hard crash on malloc failure.
This does not change the situation about disallowing large allocations
(>2GB) that might cause int signed/unsigned bugs
(see crbug.com/169327). As things stand today, Android never had that
check and still doesn't yet after this CL.

BUG=633966,317791
TEST=base_unittests --gtest_filter=OutOfMemory*

Review-Url: https://codereview.chromium.org/2201363002
Cr-Original-Commit-Position: refs/heads/master@{#409531}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 227dbd3dc564004471f146ef655fad35c52704c3
2016-08-03 16:33:20 +00:00
jbudorick 957253ade4 [Android] Move isolate generation into //build/config/android.
The instrumentation_test_apk template can't use the isolate generation
logic if it stays in //testing/test.gni as doing so would introduce a
circular dependency. Android appears to be the only user of the
isolate generation logic anyway.

BUG=633333

Review-Url: https://codereview.chromium.org/2204823002
Cr-Original-Commit-Position: refs/heads/master@{#409429}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f5e2b6ac5cf0356d4e3fa25d65a6d1dcf4aaa2ad
2016-08-03 02:04:21 +00:00
kozyatinskiy a5af3d3f6e Revert of [Sync] Merge sync_unit_tests into components_unit_tests, take 2. (patchset #1 id:1 of https://codereview.chromium.org/2199113003/ )
Reason for revert:
This breaks compile step on official.desktop.continuous for all OS trunk.
crbug.com/633775

Original issue's description:
> [Sync] Merge sync_unit_tests into components_unit_tests, take 2.
>
> This change was previously landed and reverted because some bot configs
> in the build repo needed to be updated first.
>
> BUG=626114
> TBR=dpranke,jam,slan
>
> Committed: https://crrev.com/9f7c262325b965be2a51475650d542c9791eee9d
> Cr-Commit-Position: refs/heads/master@{#409060}
>
> patch from issue 2186733002 at patchset 60001 (http://crrev.com/2186733002#ps60001)
>
> Committed: https://crrev.com/9131f18a585a66ad327af8089d3fb80c10388948
> Cr-Commit-Position: refs/heads/master@{#409356}

TBR=dpranke@chromium.org,jam@chromium.org,slan@chromium.org,maxbogue@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=626114,633775

Review-Url: https://codereview.chromium.org/2201273002
Cr-Original-Commit-Position: refs/heads/master@{#409386}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 523ee7dd9be18c54a45ca4ff499d57e1cac4495c
2016-08-03 00:02:24 +00:00
maxbogue 8c383bb4da [Sync] Merge sync_unit_tests into components_unit_tests, take 2.
This change was previously landed and reverted because some bot configs
in the build repo needed to be updated first.

BUG=626114
TBR=dpranke,jam,slan

Committed: https://crrev.com/9f7c262325b965be2a51475650d542c9791eee9d
Cr-Commit-Position: refs/heads/master@{#409060}

patch from issue 2186733002 at patchset 60001 (http://crrev.com/2186733002#ps60001)

Review-Url: https://codereview.chromium.org/2199113003
Cr-Original-Commit-Position: refs/heads/master@{#409356}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9131f18a585a66ad327af8089d3fb80c10388948
2016-08-02 22:40:43 +00:00
mmenke 9960ebf674 Enable PrerenderTests on Android.
Looks like they haven't been enabled since before Android
was upstreamed to the public repo.

BUG=138275

Review-Url: https://codereview.chromium.org/2197333002
Cr-Original-Commit-Position: refs/heads/master@{#409182}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 50ec2e97b08adc6f322a49a73cc12f8063242c1c
2016-08-02 13:45:51 +00:00
stip e6ad6cc1b0 [Android] [Reland] Sanitize APK signing file timestamps.
This is a reland of http://crrev.com/2176023002#ps40001, with the added import of resource_sizes to patch python's zipfile. This allows older versions of python to process zip64 files.

BUG=630931, 632400

Review-Url: https://codereview.chromium.org/2193063002
Cr-Original-Commit-Position: refs/heads/master@{#409142}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b2a0b3727c071668ad72461c9d77e10dc579e407
2016-08-02 05:36:03 +00:00
mathp 410b8cb50f Revert of [Sync] Merge sync_unit_tests into components_unit_tests. (patchset #4 id:60001 of https://codereview.chromium.org/2186733002/ )
Reason for revert:
Seems to be causing compile failure on Linux https://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Full/builds/49248

Original issue's description:
> [Sync] Merge sync_unit_tests into components_unit_tests.
>
> BUG=626114
>
> Committed: https://crrev.com/9f7c262325b965be2a51475650d542c9791eee9d
> Cr-Commit-Position: refs/heads/master@{#409060}

TBR=dpranke@chromium.org,jam@chromium.org,slan@chromium.org,maxbogue@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=626114

Review-Url: https://codereview.chromium.org/2205613002
Cr-Original-Commit-Position: refs/heads/master@{#409065}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2c0a5ee766f43c1fa506c2c047b0c7e01bea142c
2016-08-01 22:38:24 +00:00
maxbogue 37883ed37f [Sync] Merge sync_unit_tests into components_unit_tests.
BUG=626114

Review-Url: https://codereview.chromium.org/2186733002
Cr-Original-Commit-Position: refs/heads/master@{#409060}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9f7c262325b965be2a51475650d542c9791eee9d
2016-08-01 21:29:11 +00:00
rnephew 2dfe0e4a17 Reland [Android] Set platform mode as default for perf tests.
BUG=615157, 632922

Review-Url: https://codereview.chromium.org/2201843002
Cr-Original-Commit-Position: refs/heads/master@{#409040}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 17b73d696569a139b614b057bbddb13784c81ca9
2016-08-01 20:19:09 +00:00
rnephew 9b762e8986 [Android] Fix backwards compatibility flags with perf tests running in platform mode.
BUG=615157,632922

Review-Url: https://codereview.chromium.org/2196343002
Cr-Original-Commit-Position: refs/heads/master@{#409016}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a00fe127bfd2be32a412e4c0c73b4ced7b8bf6ab
2016-08-01 19:18:39 +00:00
peconn 25c3ff77a7 Add IntDefs to generated Java enums.
BUG=607519
TBR=agrieve@chromium.org

Review-Url: https://codereview.chromium.org/1932183002
Cr-Original-Commit-Position: refs/heads/master@{#408973}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2e675b536d1e1ed1cf50610fae5ec4960d6cb7a5
2016-08-01 15:57:53 +00:00
rnephew cb9d288f99 Revert of [Android] Set platform mode as default for perf tests. (patchset #1 id:1 of https://codereview.chromium.org/2189773002/ )
Reason for revert:
https://bugs.chromium.org/p/chromium/issues/detail?id=632922

Original issue's description:
> [Android] Set platform mode as default for perf tests.
>
> BUG=615157
>
> Committed: https://crrev.com/9ea896bb6a840dcf84381fea4fece6069d497159
> Cr-Commit-Position: refs/heads/master@{#408665}

TBR=mikecase@chromium.org,jbudorick@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=615157

Review-Url: https://codereview.chromium.org/2201563002
Cr-Original-Commit-Position: refs/heads/master@{#408823}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 088334431c3f59cbd6af3cb868036331f41a1997
2016-07-30 00:51:57 +00:00
rnephew 348f06393a [Android] Set platform mode as default for perf tests.
BUG=615157

Review-Url: https://codereview.chromium.org/2189773002
Cr-Original-Commit-Position: refs/heads/master@{#408665}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9ea896bb6a840dcf84381fea4fece6069d497159
2016-07-29 17:07:48 +00:00
agrieve 1af5e8962a Delete unused field within .build_config: resources_deps
BUG=none

Review-Url: https://codereview.chromium.org/2194813002
Cr-Original-Commit-Position: refs/heads/master@{#408645}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 46d235fc7011396de5d44266b741aa7961a063f9
2016-07-29 15:57:53 +00:00
agrieve 8adc3cd78c Fail write_build_config.py if current_toolchain != default_toolchain
There are a few spots in the Android templates that assume appending
__build_config to a given target label will result in the label for a
write_build_config action. When toolchains exist in a label, appending
like this doesn't work. E.g.: :some_label(//toolchain)__build_config

Previously, we added a GN assert to enforce default toolchain, but that
was too strict, as it made it so no other targets that are defined in
the same BUILD.gn file could use a non-default toolchain.

This change make the error a build-time error rather than a gn gen
error.

BUG=629371

Review-Url: https://codereview.chromium.org/2161063003
Cr-Original-Commit-Position: refs/heads/master@{#408576}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 83bcd862038586061feea4b390ac524ab0a9a358
2016-07-29 04:28:12 +00:00
Max Bogue 9c7537af9b [Sync] Move //sync to //components/sync.
There are a bunch of subfolder reorganizations going along with this:

- engine/ -> engine_impl/
- sessions/ -> sessions_impl/
- util/ -> base/
- internal_api/public/base/ -> base/
- internal_api/public/sessions/ -> sessions/
- internal_api/public/engine/ -> engine/
- internal_api/public/events/ -> engine/events/
- internal_api/public/util/ -> base/
- internal_api/public/ -> core/
- internal_api/ -> core_impl/

This change was generated using the following script:
http://pastebin.com/vVAkRCkh

Because this patch is so large, some review was done in split CLs:

Manual changes: http://crrev.com/2155763002
Sync internal changes: http://crrev.com/2156693002
Sync external changes: http://crrev.com/2148293004

This is a minimal change to support file movement; it doesn't do
anything like merging sync_unit_tests into component_unit_tests,
which will be done in a followup.

The gyp files are not sorted because they're all going to be removed
very soon anyways.

BUG=626114
R=jam@chromium.org, zea@chromium.org
TBR=jam

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

Cr-Original-Commit-Position: refs/heads/master@{#408497}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fef332d69faf129b64689e30304061322ca9bcad
2016-07-28 22:14:43 +00:00
agrieve 275935d0d9 Revert of [Android] Sanitize APK signing file timestamps. (patchset #3 id:40001 of https://codereview.chromium.org/2176023002/ )
Reason for revert:
Breaking builds:
https://bugs.chromium.org/p/chromium/issues/detail?id=632400

Original issue's description:
> [Android] Sanitize APK signing file timestamps.
>
> BUG=630931
>
> Committed: https://crrev.com/61e1a7ac087039d43e694c08584724252f9785ce
> Cr-Commit-Position: refs/heads/master@{#408389}

TBR=stip@chromium.org,jbudorick@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=630931

Review-Url: https://codereview.chromium.org/2191673004
Cr-Original-Commit-Position: refs/heads/master@{#408425}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c7b32ac6019e85f6485d46860eb43bdbaf72a76f
2016-07-28 17:37:14 +00:00
jbudorick b9c03c27dd [Android] Sanitize APK signing file timestamps.
BUG=630931

Review-Url: https://codereview.chromium.org/2176023002
Cr-Original-Commit-Position: refs/heads/master@{#408389}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 61e1a7ac087039d43e694c08584724252f9785ce
2016-07-28 14:36:20 +00:00
hzl b45569eda3 Add stack as output_snippet in result.
BUG=605572

Review-Url: https://codereview.chromium.org/2183053004
Cr-Original-Commit-Position: refs/heads/master@{#408241}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cbf760a76b365cb83625ba53b0d6418826d9ff8e
2016-07-27 21:23:15 +00:00
stip 5263949537 Remove src/build/android/buildbot.
BUG=619045

Review-Url: https://codereview.chromium.org/2180023002
Cr-Original-Commit-Position: refs/heads/master@{#407944}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 203cee6d03683706dfa8551d3731e324170f26ef
2016-07-26 22:44:23 +00:00
peconn 02f28d18d5 Split onResourcesLoaded into multiple functions.
We have so many resources that onResourcesLoaded is exceeding the 64KB limit
Java has on methods. This CL splits onResourcesLoaded based on resource type,
eg: onResourcesLoadedAnim, onResourcesLoadedDrawable, onResourcesLoadedString.

BUG=629768

Review-Url: https://codereview.chromium.org/2163993002
Cr-Original-Commit-Position: refs/heads/master@{#407864}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2c63be44901ccd5fe3af5323ca494959d497628a
2016-07-26 18:46:12 +00:00
rnephew f75ef0a4f5 [Android] Fix perf test runner in platform mode return value for when devices are blacklisted.
BUG=630627,615157

Review-Url: https://codereview.chromium.org/2187513002
Cr-Original-Commit-Position: refs/heads/master@{#407829}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b506bd9515fe22c04f5bdd77e1024efdb7f5274c
2016-07-26 16:37:50 +00:00
jbudorick 8310ce7dd3 [Android] Nuke the test server port lockfile explicitly.
ports.ResetTestServerPortAllocation is called in two locations, once in a
multithreaded context in which it's holding the lock file and once in a
singlethreaded context in which it isn't. It currently nukes the lock file,
which is fine in a singlethreaded context but can cause duplicate port
allocation in a multithreaded context. This CL will allow that function
to stop nuking the lock file in a subsequent CL to fix that issue.

BUG=631018

Review-Url: https://codereview.chromium.org/2176183004
Cr-Original-Commit-Position: refs/heads/master@{#407791}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fdec47a6f1b4e7db662796344a115a72b6c0805f
2016-07-26 14:40:38 +00:00
rnephew f54a4e878e [Android] Make perf test runner in platform mode check that return value is not None.
BUG=630627,615157

Review-Url: https://codereview.chromium.org/2175313003
Cr-Original-Commit-Position: refs/heads/master@{#407598}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6c4a773fb2b4dc7b71051460a534ae8c0c3ac006
2016-07-25 21:52:48 +00:00
jbudorick 05f65cb4b1 [Android] Blacklist devices on failures during environment set up + tear down.
Requires https://codereview.chromium.org/2144103002/

BUG=627939

Review-Url: https://codereview.chromium.org/2144823003
Cr-Original-Commit-Position: refs/heads/master@{#407594}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 84c46fae5808a0a2ac1a851e51208fa9343eaafb
2016-07-25 21:46:06 +00:00
rnephew 416d9cbf55 [Android] Add heartbeat of platform mode perf test runner.
Extremely long running tests can cause timeouts due to lack of output. This
adds a heartbeat message to stop that while tests are still running.

BUG=615157, 630640

Review-Url: https://codereview.chromium.org/2182563002
Cr-Original-Commit-Position: refs/heads/master@{#407576}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e8555d3785393f8bf04579226a9e39f4e574c599
2016-07-25 21:19:51 +00:00
agrieve c725b7d034 Track uncompressed sizes in resource_sizes.py
We were tracking size-within-apk, and size-within-apk+extracted size,
but it's also useful to track uncompressed size for things like the
native library & dex file.

BUG=none

Review-Url: https://codereview.chromium.org/2172303002
Cr-Original-Commit-Position: refs/heads/master@{#407550}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8b895f66dfce62d1e1c9517e04d3183690c4a07d
2016-07-25 19:55:38 +00:00
rnephew 8bba6421a6 [Android] Add logging to base_test_results.
BUG=615157

Review-Url: https://codereview.chromium.org/2179493002
Cr-Original-Commit-Position: refs/heads/master@{#407169}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d2e65efbd4e8f1c8ae2739b503a8e41455a172df
2016-07-22 16:19:57 +00:00
rnephew 5782f1c84f [Android] Fix return code for Sharded Perf step.
BUG=615157

Review-Url: https://codereview.chromium.org/2169093003
Cr-Original-Commit-Position: refs/heads/master@{#406970}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: bec4caf4bf87bdc03f93e5e27c8ab7c14370df8b
2016-07-21 22:30:47 +00:00
mikecase a247ce077c [Android] Add option to add additional files to built jars.
Adding this to support building Robolectric 3.0 in Chromium.
Robolectric has several .properties files and several native
libraries that would be best to include in some of the
Robolectric jars.

BUG=

Review-Url: https://codereview.chromium.org/2044223005
Cr-Original-Commit-Position: refs/heads/master@{#406871}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5f2924f3f0b3c5070c8c192174e7680573ffb12c
2016-07-21 16:27:37 +00:00
rnephew 7757626b5c [Android] Fix blacklist handling for perf tests in platform mode.
BUG=615157

Review-Url: https://codereview.chromium.org/2172463003
Cr-Original-Commit-Position: refs/heads/master@{#406743}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a84f32ea4f16bb2c41ed45f933b2f11348f7bf91
2016-07-21 02:25:09 +00:00
ianwen 9cf08bed8f Add AAR support to Chrome and convert support libraries to using AARs
Chrome has been using Jar and resources from support library for years.
In Q1 2016, Android team stops shipping jars/res for support libray.
Instead, AAR is promoted, which is a zip that wraps jars and resources.

This CL introduces a utility python script that processes an AAR file.
In GN gen time, it lists all files in the AAR, yet it does not extract
it. Actual unpacking is postponed until compilation.

Two other things to notice:
1. In the old jar we depended on, support-v13 contains support-v4 and
support-annotations. After converting to AAR, these two libraries are no
longer part of support-v13. Thus this change needs to be reflected.
2. In the new AAR format, support-v4 now contains two jars instead of
one. All public classes are in classes.jar, and all hidden classes are
in libs/internal_impl-$VERSION.jar.

This work is not possible without bajones@'s pioneering work in
https://chromiumcodereview.appspot.com/2069273002/

BUG=611171

Review-Url: https://codereview.chromium.org/2156453002
Cr-Original-Commit-Position: refs/heads/master@{#406603}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c84b9756d482be2561734a19138b41ca630f2701
2016-07-20 17:44:04 +00:00
pkotwicz d55ffe5a17 💥 Fail compile if dx has input paths which do not end with .jar
dx tool ignores .dex input files and fails with message
"no classfiles specified".

BUG=617935

Review-Url: https://codereview.chromium.org/2155363002
Cr-Original-Commit-Position: refs/heads/master@{#406362}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 00696c0b365c35bd738110960a3886964f390356
2016-07-19 20:10:14 +00:00
mlopatkin 9516aabb4c Use generated list of java sources as Android Lint input.
We are already using GN-written list of java sources as an input for
javac and emma_instrumentation actions instead of passing all files via
command line. This CL switches lint action to use the same file. While
it isn't needed for Android Studio support which is the original reason
this source list was added, passing sources as list improves consistency
and avoids hitting a command-line limit imposed by OS (which is large
but still reachable even on Linux).

BUG=none

Review-Url: https://codereview.chromium.org/2159173002
Cr-Original-Commit-Position: refs/heads/master@{#406271}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b54d076261882c53f0dd9c9e1707debe0feafb2a
2016-07-19 14:42:28 +00:00
smaier 9590c9c75c Turning on optimizations for chromium code
This saves us 357kb of .dex size and 44kb of memory per process.

BUG=625704

Review-Url: https://codereview.chromium.org/2127973003
Cr-Original-Commit-Position: refs/heads/master@{#406099}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e91be6b053a3e7daea66d63cc1d5a46fac86f4ff
2016-07-18 21:24:55 +00:00
jbudorick f4675ed1f4 [Android] Add --adb-path arg to adb_command_line.py.
Some bots need to be able to configure the adb path.

BUG=

Review-Url: https://codereview.chromium.org/2155703002
Cr-Original-Commit-Position: refs/heads/master@{#405829}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ecd87eb94c77653c3a387371670bc5a1ad16fc4a
2016-07-15 19:48:26 +00:00
agrieve deae2c3ea5 Fix java_group() handling in write_build_config.py.
Ran into this when trying to add support for android_aar() template.
The existing logic did not play nice with the filtering done by
_FilterUnwantedDepsPaths.

It now just resolves groups at the same time as _FilterUnwantedDepsPaths
so that no other logic within the file should need to know about them.

BUG=611171

Review-Url: https://codereview.chromium.org/2141153002
Cr-Original-Commit-Position: refs/heads/master@{#405536}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 29078463073171cf034c7c5e8e9fdd18d5022fec
2016-07-14 19:24:22 +00:00
agrieve 625a599459 Initial version of Android Studio project generation
This supports Java auto-completion, but probably not many
more advanced features since it doesn't include resources,
assets, etc.

It also likely doesn't work for test apks yet (haven't tried it).

Usage:
    build/android/generate_gradle.py \
        --output-directory out/Default \
        --target //chrome/android:chrome_public_apk \
        --project-dir my-project-dir

BUG=620034

Review-Url: https://codereview.chromium.org/2130933002
Cr-Original-Commit-Position: refs/heads/master@{#405431}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0fa1a09f4f5418b05248c48e995ce7434970e6cc
2016-07-14 04:03:22 +00:00
jbudorick 7cfbe4ef66 [Android] Remove devil forwarding modules from pylib.
All clients have transitioned to using the respective devil modules
directly, so these are no longer needed.

BUG=617761

Review-Url: https://codereview.chromium.org/2139133004
Cr-Original-Commit-Position: refs/heads/master@{#405260}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2ea1df286ee67565024cd4ee017804e317445043
2016-07-13 20:16:31 +00:00
rnephew 3e5476de3a [Android] Implement perf tests to platform mode.
BUG=615157, 590229

Review-Url: https://codereview.chromium.org/2012323002
Cr-Original-Commit-Position: refs/heads/master@{#404978}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8db92cc2828e9757b91662a1ed7057f17f8024ed
2016-07-13 03:48:07 +00:00
John Budorick 4fe8f7e706 [Android] Fix handling of intentional crashes during death tests.
BUG=620898
R=mikecase@chromium.org, rnephew@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#404815}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c4f4073a28689b275f41aa83679627d719e8884a
2016-07-12 18:20:42 +00:00
jbudorick 7a22e20685 [Android] Prepare the test runner for @RetryOnFailure.
BUG=619055

Review-Url: https://codereview.chromium.org/2099323002
Cr-Original-Commit-Position: refs/heads/master@{#404774}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ec256fa7e036723529be5dbe631bbb9045b0ed97
2016-07-12 03:19:24 +00:00
jbudorick 570c93a1fa [Android] Revise SIGTERM and unknown test result handling.
Currently, the test runner only takes action on SIGTERM on test execution
threads and only stops at the end of a test shard. In some cases, this isn't
fast enough. This CL makes the main thread drop test execution.

This CL also tweaks the handling of test results to better handle UNKNOWNs.

BUG=

Review-Url: https://codereview.chromium.org/2134523002
Cr-Original-Commit-Position: refs/heads/master@{#404507}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6c04fde85a18fc3bc8498f9735b984beaf8209c7
2016-07-08 22:17:22 +00:00
jbudorick dc350d1b34 [Android] Remove the --test_data option from the test runner.
All suites now use isolate files that are either generated from gn
data / data_deps or checked in to chromium.

BUG=

Review-Url: https://codereview.chromium.org/2131083003
Cr-Original-Commit-Position: refs/heads/master@{#404488}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e17088df1d6f3cab29c0c817d7f71def8a84841e
2016-07-08 21:17:01 +00:00
smaier 0bba977e5c Added deobfuscation script for ProGuarded stacktraces
BUG=625704

Review-Url: https://codereview.chromium.org/2126353002
Cr-Original-Commit-Position: refs/heads/master@{#404476}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1a09539d6fb37c06bc73ce348f6f7ea85ddacfa4
2016-07-08 20:15:57 +00:00
bpastene 4330d60e44 Log what devices were read from the target devices file.
BUG=626471

Review-Url: https://codereview.chromium.org/2119413005
Cr-Original-Commit-Position: refs/heads/master@{#404406}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 659c74fb047a15ff300bbe2be1da7bb6f2132c73
2016-07-08 16:42:35 +00:00
skobes 33e7353963 Fix handling of absent flags file in adb_command_line.py.
This broke in http://crrev.com/2044413002.

BUG=626453

Review-Url: https://codereview.chromium.org/2132813002
Cr-Original-Commit-Position: refs/heads/master@{#404282}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3d86ed8b58e1320c9bc8d200a225bfc06241f823
2016-07-08 00:52:04 +00:00
agrieve 40643789f6 Reland of Make Android .build_configs aware of prebuilts and java sources
This information will be necessary for generating gradle projects for
Android Studio.

Reason for reland:
javac and emma GN templates list .java files as inputs again.

TBR=wnwen@chromium.org
BUG=620034

Review-Url: https://codereview.chromium.org/2127013002
Cr-Original-Commit-Position: refs/heads/master@{#404069}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a28a718e3bb30195a185279d09e9765538fac5e2
2016-07-07 04:02:21 +00:00
jbudorick 6f3d1b7ab9 [Android] Fix support for multiple instances of value annotation filters.
BUG=626028

Review-Url: https://codereview.chromium.org/2124043002
Cr-Original-Commit-Position: refs/heads/master@{#403942}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5960d5df6acd8c48ddfefec2dba2b6db94954628
2016-07-06 19:44:08 +00:00
agrieve bf9f41ed86 Revert of Make Android .build_configs aware of prebuilts and java sources (patchset #2 id:20001 of https://codereview.chromium.org/2124663002/ )
Reason for revert:
Breaks ninja noticing when .java files change.

Original issue's description:
> Make Android .build_configs aware of prebuilts and java sources
>
> This information will be necessary for generating gradle projects for
> Android Studio.
>
> BUG=620034
>
> Committed: https://crrev.com/2bb3a690dc221b8a5dac4c4d99055e69ffe712b8
> Cr-Commit-Position: refs/heads/master@{#403822}

TBR=wnwen@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=620034

Review-Url: https://codereview.chromium.org/2126003002
Cr-Original-Commit-Position: refs/heads/master@{#403939}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 333d257e513ae47c7f4d09895079a6dc6822ec62
2016-07-06 19:30:07 +00:00
agrieve b0d7c1e69e Make Android .build_configs aware of prebuilts and java sources
This information will be necessary for generating gradle projects for
Android Studio.

BUG=620034

Review-Url: https://codereview.chromium.org/2124663002
Cr-Original-Commit-Position: refs/heads/master@{#403822}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2bb3a690dc221b8a5dac4c4d99055e69ffe712b8
2016-07-05 20:16:11 +00:00
agrieve 223e1154bf Provide AndroidManifest.xml to chrome_java to fix UnusedResources warnings
BUG=621770

Review-Url: https://codereview.chromium.org/2113233002
Cr-Original-Commit-Position: refs/heads/master@{#403818}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3528705e8b93d3a070f1d31e2dd355db1c33f52c
2016-07-05 19:50:13 +00:00
agrieve ad837d94e1 Add JinjaProcessor to jinja_template.py to be used by other scripts
Namely, I intend to use this to genererate build.gradle files.

BUG=620034

Review-Url: https://codereview.chromium.org/2121883002
Cr-Original-Commit-Position: refs/heads/master@{#403809}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 16c469908fb03e82f2011128dbc485234439e911
2016-07-05 18:40:32 +00:00
benwells 088c9e1e82 Remove unused function from base/process
GetAppOutputRestricted is not used anywhere.

BUG=88502

Review-Url: https://codereview.chromium.org/2118583004
Cr-Original-Commit-Position: refs/heads/master@{#403743}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 52162de75f5577f49f11c00ecc706a2b3b52e3c8
2016-07-05 05:42:40 +00:00
agrieve b2fcc97df6 Rework Android resource linting to exclude third_party
The existing assumption in the code (that the existense of package name
within android_resource() rules determines whether they should be
linted) turned out to be false.

The new logic does not look at package names, but instead collects all
reference resources, and then excludes any of them that were already
linted by another android_library().

BUG=621774

Review-Url: https://codereview.chromium.org/2113943002
Cr-Original-Commit-Position: refs/heads/master@{#403687}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a12be529fb88039cc3090a83c4fbaaf04e13b144
2016-07-04 15:41:52 +00:00
smaier f17e6358d7 Calculating DexCache size in method_count.py
This is based on
https://cs.corp.google.com/piper///depot/google3/java/com/google/devrel/gmscore/tools/apk/dex/tools/DexCacheSize.java

BUG=None

Review-Url: https://codereview.chromium.org/2110963003
Cr-Original-Commit-Position: refs/heads/master@{#403683}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a019505754ffdccbadaafb17a75a2e321650ae8f
2016-07-04 15:26:02 +00:00
mikecase 76d9f8b4fc [Android] Use PACKAGE_INFO constant from catapult/
The PACKAGE_INFO constant is duplicated between Chromium and
catapult. Grabbing the PACKAGE_INFO from catapult so we only need
to maintain 1 copy.

This needs to be landed after https://codereview.chromium.org/2080883002
which updates the constants in catapult.

BUG=

Review-Url: https://codereview.chromium.org/2086623002
Cr-Original-Commit-Position: refs/heads/master@{#403534}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d41bc3a91a482737e6fe59d85b644ae471566d4c
2016-07-01 21:24:00 +00:00
mikecase d33472928c Added initial classes for WebView Ui Test App.
BUG=

Review-Url: https://codereview.chromium.org/1828093002
Cr-Original-Commit-Position: refs/heads/master@{#403522}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cb1b506e334b580a229861eb1d2c497c6f6d8b72
2016-07-01 20:56:47 +00:00
agrieve 7f2a14e4cb Suppress lint warnings for policy resources
They are unused because they are used by magic.
They are missing translations to save file size
(see http://crbug.com/450548)

BUG=621771

Review-Url: https://codereview.chromium.org/2102183003
Cr-Original-Commit-Position: refs/heads/master@{#403401}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d7e9b95f80ab96881ca7ecb5f6621536aad2743a
2016-07-01 03:44:44 +00:00
bpastene c80c063b31 Make device_status_check complain if there are no available devices.
BUG=

Review-Url: https://codereview.chromium.org/2104413002
Cr-Original-Commit-Position: refs/heads/master@{#403309}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d854e64a1a04cc83101d350f744815205b259d28
2016-06-30 22:10:41 +00:00
agrieve 26b699a1f1 Revert to sorting android libraries with readelf
We were using GN's ordering of libraries, but GN isn't actually
providing them in dependency order. This change adds a TODO to add this
feature to GN, and in the meantime uses readelf to determine library
dependency order (as we used to do).

BUG=624791

Review-Url: https://codereview.chromium.org/2111233002
Cr-Original-Commit-Position: refs/heads/master@{#403257}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fb7accc611d326aaee424a64ab974e3c04abe918
2016-06-30 19:50:23 +00:00
agrieve 72781e96a1 Reland #2 of Have build_config targets depend only on other build_config targets
Reason for revert:
Now tested with webview-related downstream gn args enabled.

TBR=brettw
BUG=620034

Review-Url: https://codereview.chromium.org/2109293003
Cr-Original-Commit-Position: refs/heads/master@{#403173}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 24b56ca83db3ac262fd223a328911f3878752ffd
2016-06-30 14:48:47 +00:00
jbudorick 6f24eaecdb Revert of 🎊 Reland of Have build_config targets depend only on other build_config targets (patchset #2 id:130001 of https://codereview.chromium.org/2109593005/ )
Reason for revert:
breaks downstream rollers' gn gen

Original issue's description:
> Reland of Have build_config targets depend only on other build_config targets
>
> Reason for revert:
> Added missing dep for andriod_assets. Testing clean builds.
>
> TBR=brettw
> BUG=620034
>
> Committed: https://crrev.com/3df1aa821cb0298158b788bb37087460a19e52ea
> Cr-Commit-Position: refs/heads/master@{#403054}

TBR=brettw@chromium.org,petewil@chromium.org,agrieve@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=620034

Review-Url: https://codereview.chromium.org/2115543002
Cr-Original-Commit-Position: refs/heads/master@{#403140}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4cd3b19c9551a8f70842f732f289de3640b038ab
2016-06-30 11:46:42 +00:00
agrieve d9c2ab3216 Reland of Have build_config targets depend only on other build_config targets
Reason for revert:
Added missing dep for andriod_assets. Testing clean builds.

TBR=brettw
BUG=620034

Review-Url: https://codereview.chromium.org/2109593005
Cr-Original-Commit-Position: refs/heads/master@{#403054}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3df1aa821cb0298158b788bb37087460a19e52ea
2016-06-30 01:22:01 +00:00
petewil 1b44fa6c41 Revert of 🎊 Have build_config targets depend only on other build_config targets (patchset #3 id:40001 of https://codereview.chromium.org/2095913003/ )
Reason for revert:
Sheriff: reverting on suspicion of breaking the android build.

It looks like the apk packaging step fails when a required component is not found. This change looked like a likely culprit since it changes the naming conventions, and the problem was file not found.

Link to failed build here:
https://build.chromium.org/p/chromium/builders/Android/builds/58342

Relevant section of build logs here:
FAILED: gen/android_webview/system_webview_apk__create_incremental__package.d gen/android_webview/system_webview_apk/system_webview_apk.apk_intermediates_incremental.unfinished.apk
python ../../build/android/gyp/apkbuilder.py --depfile gen/android_webview/system_webview_apk__create_incremental__package.d --resource-apk=gen/android_webview/system_webview_apk/system_webview_apk.apk_intermediates_incremental.ap_ --output-apk=gen/android_webview/system_webview_apk/system_webview_apk.apk_intermediates_incremental.unfinished.apk --assets=@FileArg\(gen/android_webview/system_webview_apk.build_config:assets\) --uncompressed-assets=@FileArg\(gen/android_webview/system_webview_apk.build_config:uncompressed_assets\) --dex-file=gen/build/android/incremental_install/bootstrap.dex --android-abi=armeabi-v7a --native-lib-placeholders=\[\"libfix.crbug.384638.so\"\]
Traceback (most recent call last):
  File "../../build/android/gyp/apkbuilder.py", line 311, in <module>
    main(sys.argv[1:])
  File "../../build/android/gyp/apkbuilder.py", line 307, in main
    depfile_deps=depfile_deps)
  File "/b/build/slave/Android/build/src/build/android/gyp/util/build_utils.py", line 527, in CallAndWriteDepfileIfStale
    pass_changes=True)
  File "/b/build/slave/Android/build/src/build/android/gyp/util/md5_check.py", line 63, in CallAndRecordIfStale
    new_metadata.AddFile(path, _Md5ForPath(path))
  File "/b/build/slave/Android/build/src/build/android/gyp/util/md5_check.py", line 381, in _Md5ForPath
    _UpdateMd5ForFile(md5, path)
  File "/b/build/slave/Android/build/src/build/android/gyp/util/md5_check.py", line 362, in _UpdateMd5ForFile
    with open(path, 'rb') as infile:
IOError: [Errno 2] No such file or directory: u'snapshot_blob.bin'
[34308/48394] ACTION //android_webview/test:android_webview_apk__create_incremental__package(//build/toolchain/android:arm)
FAILED: gen/android_webview/test/android_webview_apk__create_incremental__package.d gen/android_webview/test/android_webview_apk/android_webview_apk.apk_intermediates_incremental.unfinished.apk
python ../../build/android/gyp/apkbuilder.py --depfile gen/android_webview/test/android_webview_apk__create_incremental__package.d --resource-apk=gen/android_webview/test/android_webview_apk/android_webview_apk.apk_intermediates_incremental.ap_ --output-apk=gen/android_webview/test/android_webview_apk/android_webview_apk.apk_intermediates_incremental.unfinished.apk --assets=@FileArg\(gen/android_webview/test/android_webview_apk.build_config:assets\) --uncompressed-assets=@FileArg\(gen/android_webview/test/android_webview_apk.build_config:uncompressed_assets\) --dex-file=gen/build/android/incremental_install/bootstrap.dex --android-abi=armeabi-v7a --native-lib-placeholders=\[\"libfix.crbug.384638.so\"\]
Traceback (most recent call last):
  File "../../build/android/gyp/apkbuilder.py", line 311, in <module>
    main(sys.argv[1:])
  File "../../build/android/gyp/apkbuilder.py", line 307, in main
    depfile_deps=depfile_deps)
  File "/b/build/slave/Android/build/src/build/android/gyp/util/build_utils.py", line 527, in CallAndWriteDepfileIfStale
    pass_changes=True)
  File "/b/build/slave/Android/build/src/build/android/gyp/util/md5_check.py", line 63, in CallAndRecordIfStale
    new_metadata.AddFile(path, _Md5ForPath(path))
  File "/b/build/slave/Android/build/src/build/android/gyp/util/md5_check.py", line 381, in _Md5ForPath
    _UpdateMd5ForFile(md5, path)
  File "/b/build/slave/Android/build/src/build/android/gyp/util/md5_check.py", line 362, in _UpdateMd5ForFile
    with open(path, 'rb') as infile:
IOError: [Errno 2] No such file or directory: u'snapshot_blob.bin'

Original issue's description:
> Have build_config targets depend only on other build_config targets
>
> This works by having android target names follow a naming convention.
> If a target name matches, then it is assumed to have a .build_config file.
> gn gen will raise an error if it doesn't. Likewise, if a target name
> does not match the filters, but does create a .build_config file, gn gen
> will fail on an assert.
>
> This change adds a bunch of naming-convention exceptions, which will
> be addressed in subsequent commits.
>
> Finally, why make this change? This allows all .build_config targets to be
> generated in just a few seconds, which will allow fast generation of
> build.gradle files for Android Studio integration.
>
> BUG=620034
>
> Committed: https://crrev.com/1029ca88161324eff7a62b1e2eecc84d5acf0f6c
> Cr-Commit-Position: refs/heads/master@{#402934}

TBR=brettw@chromium.org,agrieve@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=620034

Review-Url: https://codereview.chromium.org/2110943002
Cr-Original-Commit-Position: refs/heads/master@{#402949}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 70586184529bdc819367bcdcb4dbaf41d8325559
2016-06-29 22:21:47 +00:00
agrieve 0eeb707293 Have build_config targets depend only on other build_config targets
This works by having android target names follow a naming convention.
If a target name matches, then it is assumed to have a .build_config file.
gn gen will raise an error if it doesn't. Likewise, if a target name
does not match the filters, but does create a .build_config file, gn gen
will fail on an assert.

This change adds a bunch of naming-convention exceptions, which will
be addressed in subsequent commits.

Finally, why make this change? This allows all .build_config targets to be
generated in just a few seconds, which will allow fast generation of
build.gradle files for Android Studio integration.

BUG=620034

Review-Url: https://codereview.chromium.org/2095913003
Cr-Original-Commit-Position: refs/heads/master@{#402934}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1029ca88161324eff7a62b1e2eecc84d5acf0f6c
2016-06-29 21:10:05 +00:00
agrieve c7f107de0e Make android lint warnings show closer-to-correct file paths
Many of the paths are within /tmp. To address those, this change adds
relevant parent directories or path to originating .zip file in order
to provide context.

BUG=621769

Review-Url: https://codereview.chromium.org/2102373002
Cr-Original-Commit-Position: refs/heads/master@{#402802}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3f9e0b4e45f6ae6a8822fa46f87b80c36f8c6339
2016-06-29 14:34:42 +00:00
yolandyan 5db0af6d57 Find annotated tests by exposing API in instrumentation_test_instance
BUG=601909

Review-Url: https://codereview.chromium.org/1851143002
Cr-Original-Commit-Position: refs/heads/master@{#402699}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 97dc1912066a4312ffac05dbad24880897be80e9
2016-06-29 03:32:18 +00:00
agrieve e017bc2ce3 Add more metrics to method_count.py: fields, classes, strings
These might be useful to track as well.

BUG=none

Review-Url: https://codereview.chromium.org/2100703002
Cr-Original-Commit-Position: refs/heads/master@{#402675}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 876e2e652e9a1975048c96b83bd510c41a93798f
2016-06-29 02:30:20 +00:00
smaier c4561247c4 Removed unnecessary assertion
BUG=None

Review-Url: https://codereview.chromium.org/2102763002
Cr-Original-Commit-Position: refs/heads/master@{#402366}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 30edb12909579540d70fcb3713ed37c3c65f26ee
2016-06-28 01:43:12 +00:00
paulmiller e6c340d8b8 Roll internal Google Play Services (Chromium part)
BUG=613768
TBR=jbudorick@chromium.org,agrieve@chromium.org,mariakhomenko@chromium.org

Review-Url: https://codereview.chromium.org/2096763007
Cr-Original-Commit-Position: refs/heads/master@{#402273}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d54c6ec08aef632ad6d3f5ffd4119bdfade5dc5d
2016-06-27 20:36:24 +00:00
agrieve 1c60b151fa Remove apksize.py in favor of resource_sizes.py
BUG=546012

Review-Url: https://codereview.chromium.org/2094173002
Cr-Original-Commit-Position: refs/heads/master@{#402208}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 05f5e5c8a8eff4f14dcb66bfa1887f797c91bef9
2016-06-27 17:16:43 +00:00
dmazzoni 9576759d55 Make the PDF plug-in accessible.
Makes the PDF plug-in accessible on all supported platforms by building an
accessibility tree for the PDF content and grafting it on as a subtree of
the accessibility tree for the embedding page.

It exposes all of the text of the PDF, including full support for computing
the bounding box of any arbitrary text range.  Using heuristics, automatically
groups the text runs into paragraphs and marks some of them as headings if
their font size is larger than the average for the page.

I wrote a browser test for this, to be reviewed in a follow-up changelist.

Currently the coordinates don't update if the user zooms.  I want to fix that
by using a transformation matrix after this change lands -
http://crrev.com/2047873002 - but scrolling works fine.

Future work might include incremental loading and support for links and maybe
even fill-in forms.

Depends on:
http://crrev.com/1953053002
http://crrev.com/2058453002
http://crrev.com/2050973003
http://crrev.com/2055903002

BUG=54724

Review-Url: https://codereview.chromium.org/2055953002
Cr-Original-Commit-Position: refs/heads/master@{#402122}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8e6fe4d789f430554f47df5085fa04a6808221c7
2016-06-27 06:38:32 +00:00
thakis 814efd519c android bb: Stop passing --buildtool=ninja
No intended behavior change.

BUG=622768

Review-Url: https://codereview.chromium.org/2090743004
Cr-Original-Commit-Position: refs/heads/master@{#401919}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 50e9dfa629b4df812e8c42ef5c0ad8237b36f333
2016-06-24 19:11:14 +00:00
jbudorick 8a472b8f39 [Android] Fix feature annotation filtering for instrumentation tests.
BUG=623009

Review-Url: https://codereview.chromium.org/2095013002
Cr-Original-Commit-Position: refs/heads/master@{#401872}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cd81a621b7de946bc910405de15a80fd95bc3b88
2016-06-24 16:23:19 +00:00
agrieve e4a2c17e02 Fix missing ninja dependency between .apk and component shared libs
BUG=623054

Review-Url: https://codereview.chromium.org/2091303002
Cr-Original-Commit-Position: refs/heads/master@{#401870}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f762d1c3e6b31608f4c5017dbceacd0e54115e0b
2016-06-24 16:19:15 +00:00
agrieve 825184ec08 Reland #3 Refactor process_resources.py to use aapt's --extra-packages
Without --extra-packages, we now use the same code-path
to generate the current R.java as well as dependent R.java files.
Previously, we were combing aapt's R.java with our own template.

Our custom template no longer generating assignments for non-array
styleable fields within onResourcesLoaded() (matches aapt's behaviour)

Reason for reland:
Fixed GYP issue & verified all webrtc targets compile.

TBR=jbudorick
BUG=none

Review-Url: https://codereview.chromium.org/2096763002
Cr-Original-Commit-Position: refs/heads/master@{#401653}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ca0837dc170bd670dd5dc818bedaee40ad39b2c1
2016-06-23 18:50:55 +00:00
agrieve df2a577530 Revert of Reland of: Refactor process_resources.py to use aapt's --extra-packages (patchset #3 id:60001 of https://codereview.chromium.org/2096693002/ )
Reason for revert:
Relanded the wrong patchset! Missing code for excluding styleable.

Original issue's description:
> Reland #2 Refactor process_resources.py to use aapt's --extra-packages
>
> Without --extra-packages, we now use the same code-path
> to generate the current R.java as well as dependent R.java files.
> Previously, we were combing aapt's R.java with our own template.
>
> Our custom template no longer generating assignments for non-array
> styleable fields within onResourcesLoaded() (matches aapt's behaviour)
>
> Reason for reland:
> Fixed GYP issue & verified all webrtc targets compile.
>
> TBR=jbudorick
> BUG=none
>
> Committed: https://crrev.com/f3c8dfe0190ad701a9339436ff1d7f3b1e556e7d
> Cr-Commit-Position: refs/heads/master@{#401624}

TBR=jbudorick@chromium.org,phoglund@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=none

Review-Url: https://codereview.chromium.org/2097583002
Cr-Original-Commit-Position: refs/heads/master@{#401637}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1459934bc93f7668b3b6b73d3fe4b739a909181c
2016-06-23 17:41:27 +00:00
agrieve ddba9002a4 Reland #2 Refactor process_resources.py to use aapt's --extra-packages
Without --extra-packages, we now use the same code-path
to generate the current R.java as well as dependent R.java files.
Previously, we were combing aapt's R.java with our own template.

Our custom template no longer generating assignments for non-array
styleable fields within onResourcesLoaded() (matches aapt's behaviour)

Reason for reland:
Fixed GYP issue & verified all webrtc targets compile.

TBR=jbudorick
BUG=none

Review-Url: https://codereview.chromium.org/2096693002
Cr-Original-Commit-Position: refs/heads/master@{#401624}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f3c8dfe0190ad701a9339436ff1d7f3b1e556e7d
2016-06-23 16:27:08 +00:00
agrieve f367ccd9e1 Revert of Reland: Refactor process_resources.py to use aapt's --extra-packages (patchset #1 id:1 of https://codereview.chromium.org/2083383003/ )
Reason for revert:
Broke webrtc GYP rules.

Original issue's description:
> Reland: Refactor process_resources.py to use aapt's --extra-packages
>
> Reason for Reland:
> - No longer generating assignments for non-array styleable fields within
>   onResourcesLoaded() (matches aapt's behaviour)
>
> We actually never pass --include-all-resources, so this is just
> refactoring dead code. I think it's an improvement though,
> as the new comments explain more of why things work the way they do.
>
> TBR=agrieve
> BUG=none
>
> Committed: https://crrev.com/c04a207f591c1cae455fee6c9c7d8b0dbca20abe
> Cr-Commit-Position: refs/heads/master@{#401355}

TBR=jbudorick@chromium.org,phoglund@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=none

Review-Url: https://codereview.chromium.org/2090303003
Cr-Original-Commit-Position: refs/heads/master@{#401595}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 932350f8583c875a222df3c3b7d9913418a2fe54
2016-06-23 13:12:10 +00:00
paulmiller 341f93425a Revert of Roll internal Google Play Services (Chromium part) (patchset #1 id:1 of https://codereview.chromium.org/2088073002/ )
Reason for revert:
broke

Original issue's description:
> Roll internal Google Play Services (Chromium part)
>
> BUG=613768
>
> TBR=jbudorick@chromium.org,agrieve@chromium.org,mariakhomenko@chromium.org
> NOTRY=true
>
> (skipping trybots because previous, identical patch
> passed CQ, and because this is needed to fix the tree)
>
> Committed: https://crrev.com/c3199997a359e45fee3526111b4a5d25d8e6ea1b
> Cr-Commit-Position: refs/heads/master@{#401419}

TBR=jbudorick@chromium.org,agrieve@chromium.org,mariakhomenko@chromium.org,sgurun@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=613768

Review-Url: https://codereview.chromium.org/2095473002
Cr-Original-Commit-Position: refs/heads/master@{#401454}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9ad7108b358c2707f0bd42e60cceb73f97830860
2016-06-22 23:21:13 +00:00
paulmiller 6c79239618 Roll internal Google Play Services (Chromium part)
BUG=613768

TBR=jbudorick@chromium.org,agrieve@chromium.org,mariakhomenko@chromium.org
NOTRY=true

(skipping trybots because previous, identical patch
passed CQ, and because this is needed to fix the tree)

Review-Url: https://codereview.chromium.org/2088073002
Cr-Original-Commit-Position: refs/heads/master@{#401419}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c3199997a359e45fee3526111b4a5d25d8e6ea1b
2016-06-22 21:53:48 +00:00
agrieve 5cdc6b0a8f Use GN's dependency info for native libraries in write_build_config.py
This is in place of readelf / write_ordered_libaries.py.

Main motivation is to be able to write .build_config files quickly, so
that they can be used for generating build.gradle files for Android
Studio without first needing to build a bunch of native libraries.

BUG=620034
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

Review-Url: https://codereview.chromium.org/2082453003
Cr-Original-Commit-Position: refs/heads/master@{#401398}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 48bd27ea3fd3b86e352d6a7a8e4e70b0c711ae78
2016-06-22 21:09:10 +00:00
agrieve c3550298c5 Reland: Refactor process_resources.py to use aapt's --extra-packages
Reason for Reland:
- No longer generating assignments for non-array styleable fields within
  onResourcesLoaded() (matches aapt's behaviour)

We actually never pass --include-all-resources, so this is just
refactoring dead code. I think it's an improvement though,
as the new comments explain more of why things work the way they do.

TBR=agrieve
BUG=none

Review-Url: https://codereview.chromium.org/2083383003
Cr-Original-Commit-Position: refs/heads/master@{#401355}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c04a207f591c1cae455fee6c9c7d8b0dbca20abe
2016-06-22 18:25:35 +00:00
rnephew 9b9e0de195 [Android] Get rid of out-dated comment in perf/setup.py
Review-Url: https://codereview.chromium.org/2084113003
Cr-Original-Commit-Position: refs/heads/master@{#401294}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6ac246b0473a1a848ea46e9a8427d7b436344498
2016-06-22 16:05:58 +00:00
perezju 456e78a142 Revert of 🎂 Refactor process_resources.py to use aapt's --extra-packages (patchset #8 id:140001 of https://codereview.chromium.org/2081473002/ )
Reason for revert:
Broke internal android bots

https://crbug.com/622212

Original issue's description:
> Refactor process_resources.py to use aapt's --extra-packages
>
> We actually never pass --include-all-resources, so this is just
> refactoring dead code. I think it's an improvement though,
> as the new comments explain more of why things work the way they do.
>
> BUG=none
>
> Committed: https://crrev.com/9882d61c25bbebe84e82a7d559cae6f0807a4775
> Cr-Commit-Position: refs/heads/master@{#401165}

TBR=smaier@chromium.org,wnwen@chromium.org,agrieve@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=none

Review-Url: https://codereview.chromium.org/2090543002
Cr-Original-Commit-Position: refs/heads/master@{#401240}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1483bad27eb01f8f4980be7adf55fc96de0fda5d
2016-06-22 09:35:21 +00:00
rnephew 5ac3908296 [Android] Get rid of hard coded last known devices path.
BUG=612151

Review-Url: https://codereview.chromium.org/2081933003
Cr-Original-Commit-Position: refs/heads/master@{#401218}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a524a1c6a6065bcfc162def48a93b1a2de1cf5cc
2016-06-22 07:06:46 +00:00
sammc f56976d676 Fix a regex in javac.py.
javac.py uses a regex to strip the parts after the base filename, e.g.
Foo.class or Foo$Bar.class should produce Foo. However, it fails to
strip .class from file names without a $. This corrects the regex.

BUG=619752

Review-Url: https://codereview.chromium.org/2079673002
Cr-Original-Commit-Position: refs/heads/master@{#401177}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 14af73781b9d5372e205b01356004015c2b005ec
2016-06-22 02:46:40 +00:00
agrieve 911a14d81d Refactor process_resources.py to use aapt's --extra-packages
We actually never pass --include-all-resources, so this is just
refactoring dead code. I think it's an improvement though,
as the new comments explain more of why things work the way they do.

BUG=none

Review-Url: https://codereview.chromium.org/2081473002
Cr-Original-Commit-Position: refs/heads/master@{#401165}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9882d61c25bbebe84e82a7d559cae6f0807a4775
2016-06-22 02:16:36 +00:00
agrieve 6d69ce09d5 Refactor: include apk_under_test.jar in full_class_path (and add TODO)
proguard.py filters out the newly added entry, so this change is
entirely a no-op. Makes the code a bit more understandable imo.

BUG=none

Review-Url: https://codereview.chromium.org/2083683002
Cr-Original-Commit-Position: refs/heads/master@{#400772}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c34096a861aad0076fd89975ba97143e8b46135d
2016-06-20 20:46:31 +00:00
paulmiller a9c75687b5 Revert of Roll internal Google Play Services (Chromium part) (patchset #3 id:40001 of https://codereview.chromium.org/2063703004/ )
Reason for revert:
downstream part broke

Original issue's description:
> Roll internal Google Play Services (Chromium part)
>
> BUG=613768
>
> Committed: https://crrev.com/27d98c86363d66c877e8ca29c1d34e3578eaa179
> Cr-Commit-Position: refs/heads/master@{#400736}

TBR=agrieve@chromium.org,mariakhomenko@chromium.org,jbudorick@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=613768

Review-Url: https://codereview.chromium.org/2085723002
Cr-Original-Commit-Position: refs/heads/master@{#400754}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7ddd5ccd700c4859e47282fce3e87e3e590b7b2a
2016-06-20 20:06:49 +00:00
paulmiller 4ee747a9ae Roll internal Google Play Services (Chromium part)
BUG=613768

Review-Url: https://codereview.chromium.org/2063703004
Cr-Original-Commit-Position: refs/heads/master@{#400736}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 27d98c86363d66c877e8ca29c1d34e3578eaa179
2016-06-20 18:42:52 +00:00
mlopatkin 87fed9f820 [GN] Lint Android resources
Lint is still run only within android_library/android_apk targets but resources
folders and generated resources ZIPs from direct dependencies are added to this
run. ZIPs are extracted to temporary folders during linting.

This approach requires a big rewrite of existing dependencies. Before the patch
every library that needs to reference something from R.java of the other library
has to directly depend on the resource target that generates this R.java, for
example chrome_java depended on ui_java_resources while also dependening on
ui_java. This is the only way to get R.java from ui_java_resources in
chrome_java. This causes Lint to lint ui_java_resources twice (within
chrome_java and ui_java) and may produce false positives. This patch changes
these R.java dependencies to transitives, so chrome_java only depends on ui_java
and still gets all R.java from its resources.

Only resources that are the part of the library/APK should be direct
dependencies of this library otherwise Lint will not work properly.

Resource folders/ZIPs are propagated to dependent libraries via build_config
files. Each android_resources target publishes its resource folders in its
build_config; it also writes list of resources_zips of direct dependencies which
have no own package names - these are generated resources, conceptually part of
the same target. Library/APK targets expose list of folders and ZIPs from
dependencies via their own build_config which is read by Lint.

BUG=595810

Review-Url: https://codereview.chromium.org/2062633002
Cr-Original-Commit-Position: refs/heads/master@{#400727}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 18749bd362a7a8b7f4c1185c838d724dea5fad85
2016-06-20 18:18:47 +00:00
perezju 3abf0fb458 Reland of [Android] Ensure perf test runner does not create shards for blacklisted devices. (patchset #1 id:1 of https://codereview.chromium.org/2059253002/ )
Reason for revert:
CL wasn't responsible for the v8 breakage

Original issue's description:
> Revert of [Android] Ensure perf test runner does not create shards for blacklisted devices. (patchset #4 id:60001 of https://codereview.chromium.org/2039363002/ )
>
> Reason for revert:
> Possibly breaking v8 perf bots.
>
> Original issue's description:
> > [Android] Ensure perf test runner does not create shards for blacklisted devices.
> >
> > BUG=617559
> >
> > Committed: https://crrev.com/15c70d1120b419bc68a484d8ecce5773433466f0
> > Cr-Commit-Position: refs/heads/master@{#398197}
>
> TBR=jbudorick@chromium.org,perezju@chromium.org,mikecase@chromium.org
> # Not skipping CQ checks because original CL landed more than 1 days ago.
> BUG=617559
>
> Committed: https://crrev.com/c89b1748ad3fee34318dd63b32e881a7361743ce
> Cr-Commit-Position: refs/heads/master@{#399460}

TBR=jbudorick@chromium.org,mikecase@chromium.org,rnephew@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=617559

Review-Url: https://codereview.chromium.org/2084493003
Cr-Original-Commit-Position: refs/heads/master@{#400659}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e0ce69beeada5f4918d278c5cf8afe10165e84ce
2016-06-20 12:33:02 +00:00
jbudorick 90de4b481b [Android] Stop gtests & instrumentation tests on receiving SIGTERM.
BUG=620723

Review-Url: https://codereview.chromium.org/2078563002
Cr-Original-Commit-Position: refs/heads/master@{#400430}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5dc7bbe9e52fd447f0c54d52d671c7d00c962ea5
2016-06-17 15:18:23 +00:00
perezju f10d92dd14 [build/android] Switch hand-rolled 'ls' to StatDirectory
Replace previous hand-rolled shell commands with more robust
alternatives from device_utils.

In particular "install_metadata", which used to be just the
output of "ls -l" on the device, is now a list of dictionaries
with stat file data for each installed package on the device.

BUG=552376

Review-Url: https://codereview.chromium.org/2069113002
Cr-Original-Commit-Position: refs/heads/master@{#400123}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 40cb86544a3c7f5fc2cca51dc181624b2995eed8
2016-06-16 10:38:55 +00:00
jbudorick 1da4347051 [Android] Fall back to active_devices if the known device list file is empty.
BUG=v8:5098

Review-Url: https://codereview.chromium.org/2070043002
Cr-Original-Commit-Position: refs/heads/master@{#400018}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 88778e91c8f95c4e08eaa35de38017a6061c16d2
2016-06-15 21:48:12 +00:00
mlopatkin b4042584e2 Use contents of python deps to get md5 stamp instead of paths only
While contents of python dependencies doesn't affect contents of a depfile it
definitely affects the output: typical usage of CallAndWriteDepfileIfStale only
regenerates script's output if md5 sum changes, in a helper function. If content
of the python file (like lint.py) isn't used to generate md5 then it leads to
weird results: do a full build, change lint.py to always throw exception in
_OnStaleMd5, re-run build, but nothing happens, _OnStaleMd5 isn't called.

BUG=619329

Review-Url: https://codereview.chromium.org/2061573002
Cr-Original-Commit-Position: refs/heads/master@{#400012}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3218d50d461833795d64c71f8b4c0517e58a8b50
2016-06-15 21:23:44 +00:00
jbudorick c42aa3e460 Revert of [Android] Use devil for status and recovery in bb_device_status_check. (RELAND) (patchset #2 id:20001 of https://codereview.chromium.org/2062773004/ )
Reason for revert:
suspect this is breaking the chromium.perf bots due to issues w/ json writing

Original issue's description:
> [Android] Use devil for status and recovery in bb_device_status_check. (RELAND)
>
> This is a reland of https://codereview.chromium.org/2056343003.
>
> BUG=619045,619342
>
> Committed: https://crrev.com/4402e164201005d703e7943a4326425cb0c67d75
> Cr-Commit-Position: refs/heads/master@{#399891}

TBR=rnephew@chromium.org,dpranke@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=619045,619342

Review-Url: https://codereview.chromium.org/2071533002
Cr-Original-Commit-Position: refs/heads/master@{#399919}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8194d961a45ccd17758a6b90dbf5f31e6a4f3522
2016-06-15 16:27:33 +00:00
jbudorick 289fb7e32a [Android] Use devil for status and recovery in bb_device_status_check. (RELAND)
This is a reland of https://codereview.chromium.org/2056343003.

BUG=619045,619342

Review-Url: https://codereview.chromium.org/2062773004
Cr-Original-Commit-Position: refs/heads/master@{#399891}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4402e164201005d703e7943a4326425cb0c67d75
2016-06-15 14:05:49 +00:00
thakis 5e212360a9 "up-to-date" should only use hyphens when used as compound modifier of a noun
See bug, apparently it's "an up-to-date thing" but "thing is up to date".
The bug is only about grd files, but I went through `git grep -l up-to-date`
while I was at it.

BUG=344535
TBR=IPC owner
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation;tryserver.blink:linux_blink_rel

Review-Url: https://codereview.chromium.org/2059143002
Cr-Original-Commit-Position: refs/heads/master@{#399698}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3e861deabe8e47db274ed779acc1a3b80837e16d
2016-06-14 14:25:32 +00:00
yolandyan 6dcbdfeae8 Create script to upload/download third party lib jar
BUG=579638

Review-Url: https://codereview.chromium.org/2035133003
Cr-Original-Commit-Position: refs/heads/master@{#399630}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: bfb18782b19b68a0128ad76ba90f3b1e79d9f69e
2016-06-14 01:07:36 +00:00
rnephew 06468a7af2 Revert of [Android] Ensure perf test runner does not create shards for blacklisted devices. (patchset #4 id:60001 of https://codereview.chromium.org/2039363002/ )
Reason for revert:
Possibly breaking v8 perf bots.

Original issue's description:
> [Android] Ensure perf test runner does not create shards for blacklisted devices.
>
> BUG=617559
>
> Committed: https://crrev.com/15c70d1120b419bc68a484d8ecce5773433466f0
> Cr-Commit-Position: refs/heads/master@{#398197}

TBR=jbudorick@chromium.org,perezju@chromium.org,mikecase@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=617559

Review-Url: https://codereview.chromium.org/2059253002
Cr-Original-Commit-Position: refs/heads/master@{#399460}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c89b1748ad3fee34318dd63b32e881a7361743ce
2016-06-13 15:53:55 +00:00
fmeawad ea70305807 Revert of [Android] Use devil for status and recovery in bb_device_status_check. (patchset #2 id:20001 of https://codereview.chromium.org/2056343003/ )
Reason for revert:
Speculative revert as it seems to be crashing the host_info step on all Android bots.

BUG=619342

Original issue's description:
> [Android] Use devil for status and recovery in bb_device_status_check.
>
> BUG=619045
>
> Committed: https://crrev.com/391365fc50704855ec9eeb91c53cbe0d47d229e9
> Cr-Commit-Position: refs/heads/master@{#399350}

TBR=rnephew@chromium.org,jbudorick@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=619045

Review-Url: https://codereview.chromium.org/2063563002
Cr-Original-Commit-Position: refs/heads/master@{#399379}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 411b1fdaa505528a049701676bc801803cd91bff
2016-06-11 21:40:44 +00:00
jbudorick e3d91384eb [Android] Use devil for status and recovery in bb_device_status_check.
BUG=619045

Review-Url: https://codereview.chromium.org/2056343003
Cr-Original-Commit-Position: refs/heads/master@{#399350}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 391365fc50704855ec9eeb91c53cbe0d47d229e9
2016-06-11 01:53:47 +00:00
mikecase eb93e0ae8e [Android] Fix provision devices failure getting timeout.
Fixing provision devices script failing if timeout is not manually
set and one of the devices is unresponsive.

BUG=619088

Review-Url: https://codereview.chromium.org/2059863002
Cr-Original-Commit-Position: refs/heads/master@{#399270}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 39419395ebe93d10dde4107415decb81ae851eb4
2016-06-10 21:22:13 +00:00
jbudorick 9bbfcd5cce [Android] Disable check_return when running exe tests.
Executable tests return a nonzero exit code on test failure, which is
fine from the test runner's perspective.

BUG=pdfium:415

Review-Url: https://codereview.chromium.org/2050473007
Cr-Original-Commit-Position: refs/heads/master@{#399026}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9c97682478b816179cd0ac920e202a7b83a0f241
2016-06-09 21:40:20 +00:00
jbudorick b0f402b76c [Android] Make android templates in build/ usable without java.
BUG=pdfium:38

Review-Url: https://codereview.chromium.org/2048133003
Cr-Original-Commit-Position: refs/heads/master@{#398912}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ced2a2577cd15e8bda92e873e853578bcdbca996
2016-06-09 16:43:23 +00:00
perezju 08420a9c08 Migrate some DeviceUtils clients to List/StatDirectory
Migrate some previous uses of the (now deprecated) Ls method, and
instances of hand rolled shell 'ls' commands to the new available
methods.

Also a bit of cleanup on RunShellCommand uses.

BUG=552376

Review-Url: https://codereview.chromium.org/2045833004
Cr-Original-Commit-Position: refs/heads/master@{#398907}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5ad37228088780af64b5a8a5d8f2ece618f4ae3e
2016-06-09 16:40:11 +00:00
agrieve 80f4193c5a Disable dx --incremental for libraries with only 1 .java file
The theory is that there is a bug for libraries with only a single .java
file.

BUG=617935,616075

Review-Url: https://codereview.chromium.org/2045313002
Cr-Original-Commit-Position: refs/heads/master@{#398782}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1cc61f54ccbd4048afc6f6f09d1bf98c8c1a48ab
2016-06-09 04:34:49 +00:00
bpastene 2ff05a61e4 Add option to android test_runner to specify what devices to run on.
BUG=612360

Review-Url: https://codereview.chromium.org/2045583004
Cr-Original-Commit-Position: refs/heads/master@{#398609}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8a61f0862d71b51516175fc5903082ca1c495f55
2016-06-08 17:30:48 +00:00
agrieve 46421cbcf9 Reland #2: Move side-loaded test data /sdcard -> /sdcard/gtestdata
Reason for reland:
- content_browsertests and component_browsertests updated to
clear the correct private data directory between test runs.

Uses delete_device_stale=True when pushing. This will prevent tests
mistakenly passing when they depend on stale data files from a previous test.

TBR=jbudorick@chromium.org,thakis@chromium.org,mef@chromium.org,torne@chromium.org
BUG=607169,617213,616155

Review-Url: https://codereview.chromium.org/2043803003
Cr-Original-Commit-Position: refs/heads/master@{#398601}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d4d66d4d0353020ddf9f1423d08cf39ed911c329
2016-06-08 16:56:47 +00:00
agrieve dfc3625a7c Fix build/apk_test.gypi since webrtc still requires it.
It was broken by https://codereview.chromium.org/1975153003

BUG=webrtc:5956

Review-Url: https://codereview.chromium.org/2041723006
Cr-Original-Commit-Position: refs/heads/master@{#398295}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 36409f70bd88b63079bebd69e4871e89e7d09756
2016-06-07 14:25:27 +00:00
rnephew 2ef552d259 [Android] Ensure perf test runner does not create shards for blacklisted devices.
BUG=617559

Review-Url: https://codereview.chromium.org/2039363002
Cr-Original-Commit-Position: refs/heads/master@{#398197}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 15c70d1120b419bc68a484d8ecce5773433466f0
2016-06-07 02:18:47 +00:00
jbudorick 693f4add8e [Android] Ensure test names are unique during retry determination.
BUG=604568

Review-Url: https://codereview.chromium.org/2032253004
Cr-Original-Commit-Position: refs/heads/master@{#398145}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: eba90f11ff3ffbe16c56c8161eab48538005a32c
2016-06-06 22:33:16 +00:00
agrieve 3796016944 Revert of Reland of Move side-loaded test data /sdcard -> /sdcard/gtestdata (patchset #3 id:300001 of https://codereview.chromium.org/2018663002/ )
Reason for revert:
Breaking quota-related tests in content_browsertests
https://crbug.com/617213

Original issue's description:
> Reland of Move side-loaded test data /sdcard -> /sdcard/chromium_tests_root
>
> Reason for reland:
> Updated webview tests that broke (WebViewLayoutTest.java)
>
> And use delete_device_stale=True when pushing. This will prevent tests
> mistakenly passing when they depend on stale data files from a previous test.
>
> TBR=jbudorick@chromium.org,thakis@chromium.org,mef@chromium.org
> BUG=607169
>
> Committed: https://crrev.com/2524a0db714a44fbce723e00f6ed914e6d143cb6
> Cr-Commit-Position: refs/heads/master@{#396479}

TBR=jbudorick@chromium.org,thakis@chromium.org,mef@chromium.org,torne@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=607169,617213,616155

Review-Url: https://codereview.chromium.org/2044523003
Cr-Original-Commit-Position: refs/heads/master@{#398137}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 55ff9438e11da5a78a6ba5d100cebfcfdbc07deb
2016-06-06 22:15:51 +00:00
hzl a1ba9c2936 Added instructions on how to use code coverage.
Added coverage.md file for emma code coverage instructions for both
instrumentation and junit tests.

BUG=608085

Review-Url: https://codereview.chromium.org/2031743002
Cr-Original-Commit-Position: refs/heads/master@{#397474}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1ccac19f89c5bcc7bdd978384520b9cfd218f14f
2016-06-02 18:23:35 +00:00
jbudorick 26b58d527a [Android] Attempt to continue on timeout in perf test runner setup.
BUG=596974

Review-Url: https://codereview.chromium.org/2029833003
Cr-Original-Commit-Position: refs/heads/master@{#397420}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 776800974c2d5834279964ea6634425e1447f031
2016-06-02 15:43:19 +00:00
mikecase 2a6b328092 [Android] Build changes needed for Robolectric 3.0.
Robolectric uses javac annotation processors when building. This
means it will need to pass some "-processor RobolectricProcessor" to
javac as well as some "-Akey=value" args

Additionally, since this processor is run by javac, Robolectric can't
be compiled using the interface.jars. This is why I am adding an
enable_interface_jars_javac option for GN.

Finally, Robolectric uses the Java services functionality. I will
need to add some configs to the META-INF/services/ dir in the
Robolectric jars for this to work correctly. This is the purpose
of the --provider-configurations option I am adding.

BUG=

Review-Url: https://codereview.chromium.org/2014983003
Cr-Original-Commit-Position: refs/heads/master@{#397262}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 14569c856b4cd3a362f89a3b913f744b9a210732
2016-06-01 22:05:28 +00:00
jbudorick 984d01c0d6 [Android] Fix UNKNOWN handling for local instrumentation tests.
BUG=616168

Review-Url: https://codereview.chromium.org/2025993002
Cr-Original-Commit-Position: refs/heads/master@{#397223}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6f1ecb2db65dc83bc4a445f5a30e0895cf923954
2016-06-01 20:16:38 +00:00
jbudorick 6319743b6a [Android] Check for non-empty test name before creating gtest result.
BUG=

Review-Url: https://codereview.chromium.org/2027833002
Cr-Original-Commit-Position: refs/heads/master@{#396975}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 244896cb6f4dc9acb2cf14203c3bc50941df951f
2016-05-31 23:36:25 +00:00
jbudorick 0f91d0ee76 [Android] Add --adb-path option for tombstones.py.
BUG=526305

Review-Url: https://codereview.chromium.org/2022533002
Cr-Original-Commit-Position: refs/heads/master@{#396636}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3e0f4b217906154d47d3e7470d3ac7e3cb4a39ef
2016-05-28 04:51:34 +00:00
agrieve a3802f0af2 Reland of Move side-loaded test data /sdcard -> /sdcard/chromium_tests_root
Reason for reland:
Updated webview tests that broke (WebViewLayoutTest.java)

And use delete_device_stale=True when pushing. This will prevent tests
mistakenly passing when they depend on stale data files from a previous test.

TBR=jbudorick@chromium.org,thakis@chromium.org,mef@chromium.org
BUG=607169

Review-Url: https://codereview.chromium.org/2018663002
Cr-Original-Commit-Position: refs/heads/master@{#396479}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2524a0db714a44fbce723e00f6ed914e6d143cb6
2016-05-27 16:00:32 +00:00
jbudorick 06819181d4 [Android] Fix unknown handling in gtest_test_instance.
BUG=615086,615291
TBR=dewittj@chromium.org

Review-Url: https://codereview.chromium.org/2014333002
Cr-Original-Commit-Position: refs/heads/master@{#396378}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f7461118211ccac06090eb8b70d25c52aa314a1b
2016-05-27 04:33:49 +00:00
ynovikov d96032ba08 Enable NativeActivity based Android tests.
ANGLE Android tests use native OpenGL ES rendering,
and require NativeActivity to provide the rendering surface.
Existing tests should keep using Activity,
as they don't implement ANativeActivity_onCreate().

BUG=angleproject:1362
TEST=Compile angle_end2end_tests

Review-Url: https://codereview.chromium.org/1975153003
Cr-Original-Commit-Position: refs/heads/master@{#396361}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 389d9e445c27af560f0d370a2f9f3c69b0dd812d
2016-05-27 02:36:21 +00:00
jbudorick 551bbd2666 [Android] Attempt to continue after single-device failure in cleanup_device.
BUG=596974

Review-Url: https://codereview.chromium.org/2015723003
Cr-Original-Commit-Position: refs/heads/master@{#396222}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3cee1c9cd4b3d25e0c983a503c0938aebb034ac8
2016-05-26 17:50:42 +00:00
agrieve de866a2e5b Revert of 👔 Move side-loaded test data /sdcard -> /sdcard/gtestdata (patchset #17 id:320001 of https://codereview.chromium.org/1926793002/ )
Reason for revert:
Broke webview tests:
https://build.chromium.org/p/chromium.android/builders/Android%20Webview%20M%20%28dbg%29/builds/9501

Original issue's description:
> Move side-loaded test data /sdcard -> /sdcard/chromium_tests_root
>
> And use delete_device_stale=True when pushing. This will prevent tests
> mistakenly passing when they depend on stale data files from a previous test.
>
> BUG=607169
>
> Committed: https://crrev.com/0fe567512193cc8fbfcfd006ff1d504bd6346290
> Cr-Commit-Position: refs/heads/master@{#396169}

TBR=jbudorick@chromium.org,thakis@chromium.org,mef@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=607169

Review-Url: https://codereview.chromium.org/2011763007
Cr-Original-Commit-Position: refs/heads/master@{#396174}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5a7a6cd176bd3c1a9524893801b8d177ebe0f63a
2016-05-26 14:54:38 +00:00
agrieve 06f71977e5 Move side-loaded test data /sdcard -> /sdcard/chromium_tests_root
And use delete_device_stale=True when pushing. This will prevent tests
mistakenly passing when they depend on stale data files from a previous test.

BUG=607169

Review-Url: https://codereview.chromium.org/1926793002
Cr-Original-Commit-Position: refs/heads/master@{#396169}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0fe567512193cc8fbfcfd006ff1d504bd6346290
2016-05-26 13:51:34 +00:00
hzl 40663bb9fb Made junit coverage-dir take directory, not file.
--coverage-dir option for junit tests should take directory name, not file name.
With the change, we are able to run the command like this:
'out-gn/Debug/bin/run_clank_junit_tests --coverage-dir /tmp/coverage/junit'.
Then clank_junit_test.ec will be created in the junit directory.

BUG=

Review-Url: https://codereview.chromium.org/2003213002
Cr-Original-Commit-Position: refs/heads/master@{#395936}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f9b5e71a566772a1a80d3e670ed584f60bce71df
2016-05-25 18:21:40 +00:00
scottmg d10dcf7dad Revert of Add FrameHost mojo service (patchset #23 id:490001 of https://codereview.chromium.org/1964273002/ )
Reason for revert:
Async request for zoom level doesn't work in all cases https://crbug.com/614348 https://crbug.com/613979.

I thought https://www.chromium.org/developers/design-documents/mojo/chrome-ipc-to-mojo-ipc-cheet-sheet#TOC-Threading-Model implied the ordering would be correct, but it seems that was too hopeful.

Original issue's description:
> Add FrameHost mojo service
>
> Adds new frame-level service with one initial method to handle host zoom
> level.
>
> This moves zoom level supply from async_resource_handler.cc to being a
> request made when render_frame_impl handles a willSendRequest.
>
> The goal of this change is to remove the dependency of
> content/browser/loader on the rest of content/browser in particular
> here, removing the use of c/b/host_zoom_map_impl.h in
> content/browser/loader/async_resource_handler.cc.
>
> BUG=598073,609607
> CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation
>
> Committed: https://crrev.com/68c6f2ce16d9807b5cb82679099c82c40f39e911
> Cr-Commit-Position: refs/heads/master@{#394547}

TBR=dcheng@chromium.org,ben@chromium.org,jam@chromium.org,nasko@chromium.org,wjmaclean@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=598073,609607,614348,613979
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation

Review-Url: https://codereview.chromium.org/2007203002
Cr-Original-Commit-Position: refs/heads/master@{#395761}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 34ce95dd9c2ca3b90fc87169f1e4ed266e7bb94b
2016-05-25 01:08:42 +00:00
hzl 12e9cc4d86 Added the --screenshot-directory option for Android instrumentation tests.
--screenshot option was broken for instrumentation tests. In this cl,
the option is enabled. With argument --screenshot, the device will take
a screenshot whenever an instrumentation test fails.

BUG=613405

Review-Url: https://codereview.chromium.org/1998383002
Cr-Original-Commit-Position: refs/heads/master@{#395662}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 35d5e3dd14ae616db29806f3052b400f2de1945a
2016-05-24 19:05:01 +00:00
tedchoc d2ab5bf923 Enhance the error message if the build fails due to a bad zip file.
I killed an ongoing build and a zip file got corrupted.  Then all
subsequent builds were failing, but I didn't know where.

This adds/clears up the message IMO.

Previous output:
  File "/...../src/build/android/gyp/util/build_utils.py", line 228, in
ExtractAll
    with zipfile.ZipFile(zip_path) as z:
  File "/usr/lib/python2.7/zipfile.py", line 770, in __init__
    self._RealGetContents()
  File "/usr/lib/python2.7/zipfile.py", line 811, in _RealGetContents
    raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file

New output:
  File "../../build/android/gyp/javac.py", line 90, in
_ExtractClassFiles
    build_utils.ExtractAll(jar_path, path=dest_dir,
predicate=extract_predicate)
  File "/...../src/build/android/gyp/util/build_utils.py", line 229, in
ExtractAll
    raise Exception('Invalid zip file: %s' % zip_path)
Exception: Invalid zip file: gen/base/base_java__compile_java.javac.jar

BUG=

Review-Url: https://codereview.chromium.org/2001353002
Cr-Original-Commit-Position: refs/heads/master@{#395545}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e8198a4d058fb88e7d4314587a0f0e8992a31c15
2016-05-24 08:39:43 +00:00
pkotwicz f2db5d1d84 Always suppress DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED
According to the docs, using AccessController is discouraged:
https://developer.android.com/reference/java/security/AccessController.html

BUG=None

Review-Url: https://codereview.chromium.org/1989403004
Cr-Original-Commit-Position: refs/heads/master@{#395469}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 76a016568a6b224945dd21b04e3eb783673f0e37
2016-05-23 23:57:53 +00:00
hzl 4dba02b9c7 Fixed coverage dir for instrumentation tests.
Fixed coverage dir option for instrumentation tests, so that we should
be able to pull run time coverage data from devices to bot.

BUG=608072

Review-Url: https://codereview.chromium.org/1964183003
Cr-Original-Commit-Position: refs/heads/master@{#395419}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 111b5841249ab4c8e14ed1b0af2328d5e739a140
2016-05-23 21:38:07 +00:00
jbudorick fe9f2205ce [Android] Expose each try result in test results JSON.
BUG=609588

Review-Url: https://codereview.chromium.org/1987763002
Cr-Original-Commit-Position: refs/heads/master@{#395328}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 999e16207089e4c849084033f74d6a1f2a95d00f
2016-05-23 15:25:01 +00:00
jbudorick f81cc40000 Revert of Added the --screenshot option. (patchset #7 id:120001 of https://codereview.chromium.org/1981043004/ )
Reason for revert:
breaks downstream

Original issue's description:
> Added the --screenshot option.
>
> --screenshot option was broken for instrumentation tests. In this cl,
> the option is enabled. With argument --screenshot, the device will take
> a screenshot whenever an instrumentation test fails.
>
> BUG=611538
>
> Committed: https://crrev.com/09891bc02742f34a11a6d8ffd8993066f6c1b62c
> Cr-Commit-Position: refs/heads/master@{#394843}

TBR=mikecase@chromium.org,hzl@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=611538

Review-Url: https://codereview.chromium.org/1998903002
Cr-Original-Commit-Position: refs/heads/master@{#394956}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5a6fa1e0d268e6ef3f15aff3bb63fae8b94396cd
2016-05-20 01:43:41 +00:00
hzl 6298b2d7ab Added the --screenshot option.
--screenshot option was broken for instrumentation tests. In this cl,
the option is enabled. With argument --screenshot, the device will take
a screenshot whenever an instrumentation test fails.

BUG=611538

Review-Url: https://codereview.chromium.org/1981043004
Cr-Original-Commit-Position: refs/heads/master@{#394843}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 09891bc02742f34a11a6d8ffd8993066f6c1b62c
2016-05-19 20:00:19 +00:00
jbudorick 6d3275dc6e [Android] Raise more shard timeouts on Lollipop Low-End Tester.
BUG=
TBR=dpranke@chromium.org,mdjones@chromium.org

Review-Url: https://codereview.chromium.org/1996013003
Cr-Original-Commit-Position: refs/heads/master@{#394809}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8932b41af57792b3f5522d577c6b4b4178b319cd
2016-05-19 17:53:53 +00:00
agrieve afa9b4a9c0 Fix resource_sizes.py resource ID lookups when whitelist Pragmas exist
Affects official release bots, which use:
  enable_resource_whitelist_generation=true

BUG=609365

Review-Url: https://codereview.chromium.org/1997713002
Cr-Original-Commit-Position: refs/heads/master@{#394783}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 12ff4bb705b167690adbf35f5eaedaab69aac865
2016-05-19 15:58:57 +00:00
twellington cdadc1d3b1 Update checks for N+
Replace checks for Build.VERSION.CODENAME.equals("N") wieth
Build.VERSION.CODENAMES.equals("N") || Build.VERSION.SDK_INT > Build.VERSION_CODES.M.

Eventually we will want the check to be just for SDK_INT, but for M51 we'll
use the ||.

BUG=586703

Review-Url: https://codereview.chromium.org/1989203003
Cr-Original-Commit-Position: refs/heads/master@{#394615}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 96a31a443985b11f125797d32f837eff42f2efb3
2016-05-19 00:20:49 +00:00
scottmg c059bd24e5 Add FrameHost mojo service
Adds new frame-level service with one initial method to handle host zoom
level.

This moves zoom level supply from async_resource_handler.cc to being a
request made when render_frame_impl handles a willSendRequest.

The goal of this change is to remove the dependency of
content/browser/loader on the rest of content/browser in particular
here, removing the use of c/b/host_zoom_map_impl.h in
content/browser/loader/async_resource_handler.cc.

BUG=598073,609607
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation

Review-Url: https://codereview.chromium.org/1964273002
Cr-Original-Commit-Position: refs/heads/master@{#394547}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 68c6f2ce16d9807b5cb82679099c82c40f39e911
2016-05-18 21:11:37 +00:00