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

4033 Коммитов

Автор SHA1 Сообщение Дата
peconn a9f15aa731 📷 Create RenderTestRule which fails after test method finishes.
This CL:
- Removes RenderUtils.
- Creates RenderTestRule with most of the RenderUtils functionality.
- Updates render tests to RenderTestRule.
- Removes the 'regenerate-goldens' flag. This is not needed because the
  RenderTestRule will throw an Exception once the test method has
  finished, so all image renders and diffs will be saved anyway.
- Simplifies the rendering logic.

BUG=614305

Review-Url: https://codereview.chromium.org/2901053003
Cr-Original-Commit-Position: refs/heads/master@{#474978}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1c831a5af48331b017f2bf3d6a07abb40f143626
2017-05-26 10:25:44 +00:00
wnwen 427c444f50 Android: Update gradle version
BUG=620034

Review-Url: https://codereview.chromium.org/2902043003
Cr-Original-Commit-Position: refs/heads/master@{#474313}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b4b2d1e1fb916471009d5b5393e0851f1a56bab1
2017-05-24 16:09:53 +00:00
aberent 6c11a23d06 Retreive screenshots captured by tests from test devices.
We are creating some new instrumentationt tests which capture
screenshots as they run. Clear the test device's screenshot
directory before they run.

Add a --ui-screenshot-dir to test_runner.py. If specified then,
once the tests have been run, the screenshots are copied to
the given directory on the host.

BUG=721289

Review-Url: https://codereview.chromium.org/2874173002
Cr-Original-Commit-Position: refs/heads/master@{#474231}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b9e451ab1f65fec40a11146a868aa07565a74390
2017-05-24 09:54:26 +00:00
Kai Ninomiya 635fbbd49a Manual roll src/third_party/catapult/ 08a6e0ac1..2d3f5e75d
Adds a new Catapult third_party dependency to android test_runner.pydeps

Bug: catapult:#2865
Bug: https://chromium-review.googlesource.com/c/512763/#message-7ecc79d227f765e88d01cc2e0fb548a927e4a52f
Change-Id: Iabe9aa6dfecbaa00a59b62bfc58e20cce833037a
Reviewed-on: https://chromium-review.googlesource.com/513005
Reviewed-by: Michael Case <mikecase@chromium.org>
Reviewed-by: John Budorick <jbudorick@chromium.org>
Reviewed-by: Ned Nguyen <nednguyen@google.com>
Commit-Queue: Kai Ninomiya <kainino@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#474042}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 711b5cd6696a3ee46c38e2032f0014e63a0b0f0b
2017-05-23 20:43:45 +00:00
hzl e03903d637 Include logcat created by StrictMode and test_runner_py.
BUG=724528

Review-Url: https://codereview.chromium.org/2893063003
Cr-Original-Commit-Position: refs/heads/master@{#474002}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 22a0819bb760a2a6f96a1058e488a596022545c6
2017-05-23 18:51:24 +00:00
John Budorick 49dbc111d3 [android] Keep Services in the main dex.
TBR=wychen@chromium.org,yusufo@chromium.org,mlamouri@chromium.org

Bug: 725534
Change-Id: Ifc0696d08d82d0ea41fc96c7ef09e54cf161b3f2
Reviewed-on: https://chromium-review.googlesource.com/512365
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: John Budorick <jbudorick@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#473946}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7c3794d854df4e63add43319efec1ed9cde39921
2017-05-23 17:00:20 +00:00
John Budorick 82a79a5d28 [android] Increase emulator wait time to five minutes.
Still attempting to resuscitate x86 Emulator Tester on
chromium.android.fyi.

TBR=yolandyan@chromium.org,hzl@chromium.org

Change-Id: I7da60ce19b0b6d6b3d3007638bbcb7534eefd40f
Reviewed-on: https://chromium-review.googlesource.com/509290
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: John Budorick <jbudorick@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#473582}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f72054ceedbf07e177d5b740aca7a2c196f9be46
2017-05-22 15:41:00 +00:00
pasko 967b589bc9 Workaround python time.strptime flake in Android tests
In general time.strptime is not threadsafe in python: [1]. This causes
flaky errors on various bots that test Android because catapult [2]
talks to devices from different threads (for multiple reasons).

One observation in the python bug ([1]) says that only importing parts
of strptime is racy, so importing it early enough before any threading
is started would remove this kind of flake.

This workaround is used in other parts of chromium and catapult itself,
so we can probably be more preventive by doing it in a central place.
For now let's just reduce the flake.

[1] time.strptime not thread safe
    https://bugs.python.org/issue7980

[2] Catapult is the home for several performance tools that span from
    gathering, displaying and analyzing performance data.
    https://github.com/catapult-project/catapult

BUG=724524

Review-Url: https://codereview.chromium.org/2891403002
Cr-Original-Commit-Position: refs/heads/master@{#473545}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: bfb763ee9499a5f88993910c2401ac5550e9ac38
2017-05-22 10:45:57 +00:00
mikecase 2b46c91bec Fix markupsafe pydeps import issue.
Pydeps would use markupsafe system module over the one in
third_party causing presubmit issues.

Review-Url: https://codereview.chromium.org/2896583003
Cr-Original-Commit-Position: refs/heads/master@{#473229}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 79ae465115ced930a6daeb8a58f0aa7dfa07f6af
2017-05-19 17:29:22 +00:00
John Budorick 40b6bc4eeb [android] Raise emulator deps installation timeout to 5 min each.
TBR=yolandyan@chromium.org,hzl@chromium.org

Change-Id: I2ff11f1b5c0978080c0f888fc4e3e3834468b38f
Reviewed-on: https://chromium-review.googlesource.com/508854
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: John Budorick <jbudorick@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#473198}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8a539dd4fc8b43c58f6119df8fe07a20013fbab0
2017-05-19 15:34:19 +00:00
hzl 8da5cdfbbb Make the table cells clickable, instead of the strings inside.
Previously the strings inside table cells on clickable, but it takes
accurate mouse control and aiming.

In this cl, we are making the whole cell clickable,
to make the table easier to use.

BUG=717682

Review-Url: https://codereview.chromium.org/2888723002
Cr-Original-Commit-Position: refs/heads/master@{#473035}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e111db0385aeceaf3e0c03f3f57568f908be46b5
2017-05-19 02:18:14 +00:00
paulmiller c04568fd85 Fix detection of GMS proguard.txt files
We were mistakenly checking the existence of the directory containing
the file, rather than the actual file.

BUG=706943

Review-Url: https://codereview.chromium.org/2885413003
Cr-Original-Commit-Position: refs/heads/master@{#472931}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a0fbb7c0d4e4b52d9170031a8883c60e19f4916c
2017-05-18 21:06:05 +00:00
mikecase 3d08394bb4 Remove importing CSS for results details page.
Removing this for a few reasons. (1) We don't use much CSS from
the file we import. (2) It couples our results details page with
the waterfall CSS file (things like classnames info/interface were
used in that CSS but don't seem to do anything special just looking
at results detail page) and (3) we might want local result detail
pages eventually.

Review-Url: https://codereview.chromium.org/2886323003
Cr-Original-Commit-Position: refs/heads/master@{#472903}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e99ade7b40d361233acfad8d735dc66a34799de6
2017-05-18 19:36:15 +00:00
John Budorick 1ba388a890 [android] Raise install_emulator_deps download system image timeout to 60s.
Currently timing out on chromium.android.fyi:x86 Emulator Tester.

TBR=yolandyan@chromium.org,hzl@chromium.org

Change-Id: Idcedf2a14f0c3c52eee56b8f70b178cca7619fb6
Reviewed-on: https://chromium-review.googlesource.com/508261
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: John Budorick <jbudorick@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#472848}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1af8c70d0ce0ccc19e3d65b94e7ae8407f9ec5ca
2017-05-18 17:02:11 +00:00
mikecase 9533d5e033 Add --render-results-dir arg to store render results locally.
If --render-results-dir is specified, the render result images
will get pulled from the device and stored there locally.

BUG=722779

Review-Url: https://codereview.chromium.org/2889663003
Cr-Original-Commit-Position: refs/heads/master@{#472670}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 39e3f9e3bdd92088ebf9c48bfd9395ebe38d7801
2017-05-18 04:57:46 +00:00
mikecase ce01161d91 Add vertical-align:top to render test images.
This fixes the alignment for when the render test images are a
different size than the golden image. The images are compared by
lining up the top-left corner. Setting vertical-align:top makes
it easier to visualize how the diff image was constructed in this
case.

Review-Url: https://codereview.chromium.org/2884833002
Cr-Original-Commit-Position: refs/heads/master@{#472616}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c4f60b915d897050dac3d7532ff8c1e0139c1821
2017-05-18 00:53:16 +00:00
mikecase 4bf778f42e Remove unused --save-perf-json arg from test_runner.py.
Review-Url: https://codereview.chromium.org/2886023002
Cr-Original-Commit-Position: refs/heads/master@{#472582}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 834b125e7df0de36eda259f5fe3d49bfadfd197f
2017-05-17 21:54:14 +00:00
wnwen 6d87cae42f Android: Add resources back to Android Studio
Resources were not collected for the pseudo all module before. Adding it
back, but skipping the generated resources folders.

BUG=722302

Review-Url: https://codereview.chromium.org/2888923002
Cr-Original-Commit-Position: refs/heads/master@{#472485}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: dc177240b50784d9fe81d654e129275028e6d97f
2017-05-17 17:18:54 +00:00
hzl b3a902729d Include DEBUG:I information into logcat.
Stack traces are presented as DEBUG:I, but the previous logcat filter
does not include such logcat.

In this cl, we are including DEBUG:I into the logcat.

BUG=721811

Review-Url: https://codereview.chromium.org/2882793002
Cr-Original-Commit-Position: refs/heads/master@{#472172}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d82dbc620a69d659b7cdf4d105e62a8cb62156dc
2017-05-16 18:37:19 +00:00
Rouslan Solomakhin 7571a8a731 Rename payments/ui/EditorView to payments/ui/EditorDialog
The word "View" is used in the MVC sense, which is not conventional for
Android code. Android uses View to mean a widget. However. EditorView is
a Dialog. Therefore, it should be named EditorDialog to follow Android
conventions.

Bug: 722382
Change-Id: I47e720098ce43def28d1db1f6a23a70e84def527
Reviewed-on: https://chromium-review.googlesource.com/505870
Reviewed-by: John Budorick <jbudorick@chromium.org>
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#471913}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9edfd334b6666cd0e42b8f6994cb7807b6ad8f0c
2017-05-15 21:45:10 +00:00
peconn dea3a3058e 📷 Add toggling zoom and test title to RenderTest results.
BUG=614305

Review-Url: https://codereview.chromium.org/2875263002
Cr-Original-Commit-Position: refs/heads/master@{#471761}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0d5366d038448a862755eab685548c90bbbda7d5
2017-05-15 14:53:38 +00:00
mikecase cb040e9300 (Reland) Specify --gs-results-bucket arg for chromium.android bots.
This should trigger these bots to start uploading screenshots
of test failures as well as uploading render test results in the
future.

Review-Url: https://codereview.chromium.org/2880063002
Cr-Original-Commit-Position: refs/heads/master@{#471595}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4e3a7c4082bdd25b35036e77b1d8870a47e63e9a
2017-05-13 17:13:48 +00:00
hzl 3639cca7d3 Sort suites in suite table based on number of failed test cases.
We want to show suites that have failed test cases at the top of the
suite table, by default.

BUG=720382

Review-Url: https://codereview.chromium.org/2875803004
Cr-Original-Commit-Position: refs/heads/master@{#471534}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ad4f5792cb064c721831860a180e4f25f99cf186
2017-05-13 01:45:43 +00:00
mikecase 90ecc63021 (Reland x3) Expose resources in Robolectric/JUnit tests.
Will let people use Android resources in Robolectric tests.
To use, specify package_name GN variable in junit_binary
targets with your apps package name.

This change will also (basically) require that you use the
generated wrappers from out_dir/bin/run_<suite name> to run
the tests since GN will be generating many arguments to
pass along to the test runner.

BUG=693573

Review-Url: https://codereview.chromium.org/2864693002
Cr-Original-Commit-Position: refs/heads/master@{#471523}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0b6b35f669cfd191e369832a9385d939650c244b
2017-05-13 01:13:00 +00:00
mikecase aeddaf1e8f Add content addressed uploading helper function for render tests.
We will be uploading the same golden images over and over for
render tests. Uploading images by md5sum so that we can avoid
storing/uploading multiple copies of the same exact file.

Also CL fixes small bug in _IsRenderTest helper function. Now
properly identifies tests with RenderTest feature annotation.

Review-Url: https://codereview.chromium.org/2876183003
Cr-Original-Commit-Position: refs/heads/master@{#471488}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c5fdbf8734c0194ecf673f8627cfdbb0bbb9a895
2017-05-12 23:35:16 +00:00
John Budorick 187b2c62e3 [android] Only allow ELF files as library candidates in symbolization.
With crrev.com/686094f6b082e2595bc5d429cdcdaa3b76217501, we started
writing a python script to <output dir>/<suite_name>. The stack
symbolization script was picking up that script as a possible library
for symbolization. This change prevents it from doing so.

Bug: 719984
TBR=agrieve@chromium.org

Change-Id: Id0591ad05a531b7cf2037ced1fef36dd8d767bce
Reviewed-on: https://chromium-review.googlesource.com/504909
Commit-Queue: John Budorick <jbudorick@chromium.org>
Reviewed-by: Michael Case <mikecase@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#471463}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 46858e064d251775e93c4f8fc7fe2da367ccaf36
2017-05-12 22:20:50 +00:00
aluo 00764a82f6 Avoid crashing due to missing trace_output option in Monkey test
BUG=712895

Review-Url: https://codereview.chromium.org/2872813003
Cr-Original-Commit-Position: refs/heads/master@{#471154}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2b6930c7e92c1c2df1576907c6b965ac72a752ce
2017-05-12 00:52:21 +00:00
mikecase 1498887221 Add render test results to the results_details webpage.
This will (1) make render tests perform pixel-wise
comparison and generate diff images, (2) allow you
to specify output directory for where to dump the
result images on the device, and (3) upload the results
to be visible from buildbot status page.

Review-Url: https://codereview.chromium.org/2866103002
Cr-Original-Commit-Position: refs/heads/master@{#471144}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 49c5485e248597a4afe07101241bda3c3060cad8
2017-05-12 00:31:19 +00:00
hzl 8d912cdc64 Add link to flakiness dashboard for each test case
Create a link to flakiness dashboard for each test case, so that engineers will see the flakiness level for that test case.

BUG=717631

Review-Url: https://codereview.chromium.org/2873723002
Cr-Original-Commit-Position: refs/heads/master@{#471122}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 20892f4eb9dad7ed0b1720dc3718dbc5db5f0d7f
2017-05-11 23:45:19 +00:00
jbudorick 0098abfc6a [Android] Remove --test-arguments arg from test_runner.py.
Deprecated in favor of passing such arguments to test_runner.py
directly.

BUG=700366

Review-Url: https://codereview.chromium.org/2855483003
Cr-Original-Commit-Position: refs/heads/master@{#471096}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6a94be3b51f4a7d8b49ff2c4fb690dc12b7a6ae3
2017-05-11 22:38:43 +00:00
ctzsm 59c78fcba7 Rename android_webview_test_apk
This CL renames:
1) buildbot testing configuration files,
2) eclipse .classpath configuration,
3) build/android/pylib/results/report_results.py.

BUG=701938

Review-Url: https://codereview.chromium.org/2873833002
Cr-Original-Commit-Position: refs/heads/master@{#470829}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c6d9643652e2e36849a5022fd1364d437d1ee951
2017-05-11 05:48:31 +00:00
mikecase 4774fdc9e5 Move screenshot capture to Java-side.
Currently, the post-test screenshots are taken on the python after
the test has finished (and Activity destroyed). Moving the
screenshot capture into Android code so we can snap a pic before
Activity is gone.

Review-Url: https://codereview.chromium.org/2854823007
Cr-Original-Commit-Position: refs/heads/master@{#470816}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fc8efc725e151ffc2f2584b75d9c52fd16cf3721
2017-05-11 05:09:00 +00:00
Simeon Anfinrud 271f128a64 Revert "[Chromecast] Suppress a crashing lint warning."
This reverts commit 477db25e38327a2891aa3c02e1b112d0308f9306.

Chromecast internal code no longer uses the files that were
causing the suppressed lint errors, so we can remove these.

BUG=669629
TEST=build internal Cast apk

Change-Id: I38d9eb6284788276f7f776f139b9f74c9f2668e5
Reviewed-on: https://chromium-review.googlesource.com/493774
Commit-Queue: Simeon Anfinrud <sanfin@chromium.org>
Reviewed-by: Stephen Lanham <slan@chromium.org>
Reviewed-by: Michael Case <mikecase@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#470361}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 064434bb26e0cf8c916b11ecd988041bdb1f1c40
2017-05-09 17:14:41 +00:00
avayvod 9b4b28cf76 [Android, Tools] Speed up gn_to_cmake.py with caching
BUG=694699
TEST=local run

Review-Url: https://codereview.chromium.org/2866863003
Cr-Original-Commit-Position: refs/heads/master@{#470299}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 23bc56150efb4ae54f6662e8552ac693fb41d485
2017-05-09 13:02:47 +00:00
mikecase de992cd4b4 Invoke gsutil with -quiet in our test_runner scripts.
By default, gsutil will look for updates every 30 days. To prevent
this update prompt from interupting tests, adding -q option.

Review-Url: https://codereview.chromium.org/2867503002
Cr-Original-Commit-Position: refs/heads/master@{#470232}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6b2241e2042fe5365c84d84828c8db3a3625c18f
2017-05-09 05:11:35 +00:00
hzl daf9b13350 Fix feedback to populate the right content in issue creation page.
Previously, server url is 'storage.googleapis.com'. And the issue
creation page can include the current page url in the description of the
issue. However then we start to use 'storage.cloud.google.com', which
will automatically redirect to a temporary signed url when visiting the
page. Thus including the temporary signed url in the issue creation page
is not useful.

In this cl, we generate the result details link when we create the html
file. And as a result is able to include the original page url, not the
signed url in the description.

BUG=717634

Review-Url: https://codereview.chromium.org/2854083004
Cr-Original-Commit-Position: refs/heads/master@{#470078}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 29948291955ddcd6c0cba23173c06e072585db29
2017-05-08 19:43:57 +00:00
finnur 8cecf8f5b6 Use larger vector graphics for special tiles and fix selection ring.
BUG=656015

Review-Url: https://codereview.chromium.org/2843973002
Cr-Original-Commit-Position: refs/heads/master@{#469635}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 403845af284556f00645e2790618722fb99f9d34
2017-05-05 13:16:19 +00:00
wnwen 6f77b182f9 Android: Fix generate_gradle.py
Bugs causing split-project and use-gradle-resources to not work
correctly. Also fix the jinja template.

BUG=620034

Review-Url: https://codereview.chromium.org/2858233002
Cr-Original-Commit-Position: refs/heads/master@{#469372}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f011a78f3f93e0f52b89b29a4b40b2e2f879733c
2017-05-04 17:35:36 +00:00
mikecase cef928f76f (Reland) Add post-test screenshots to results detail.
Review-Url: https://codereview.chromium.org/2786773002
Cr-Original-Commit-Position: refs/heads/master@{#469237}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2bb1cf11d22d50c5750d8d3b1356f0caa43d359e
2017-05-04 01:30:46 +00:00
mikecase ddd7ce1bf4 Move Android resource_zip files into own build subdir.
Want to move resources.zip files out of gen/ directory since they
won't get packaged by several of the Builder bots. We will need
these resources.zip files for JUnit tests.

BUG=693573

Review-Url: https://codereview.chromium.org/2862603002
Cr-Original-Commit-Position: refs/heads/master@{#469191}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 54c8a0f1de1a3cf8599dde9efb7bc61f08fef03f
2017-05-03 23:18:56 +00:00
hzl 4a9cb05f41 [Android] Enable test_results_presentation for gtests in chromium.linux.json.
This cl is for gtests on the android bots that are (still) on chromium.linux.

BUG=605572

Review-Url: https://codereview.chromium.org/2849343002
Cr-Original-Commit-Position: refs/heads/master@{#469137}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 23935bc344576994ce5eb91be72a3907f7a68f3e
2017-05-03 21:41:54 +00:00
zpeng 8b56510f3b Update retrolambda to 2.5.1
BUG=642600

Review-Url: https://codereview.chromium.org/2854323004
Cr-Original-Commit-Position: refs/heads/master@{#469056}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b5d37e705dd1caea0446240e7381d28470d33218
2017-05-03 18:56:18 +00:00
aelias d4b07aa51e Revert of (Reland x2) Expose resources in Robolectric/JUnit tests. (patchset #4 id:60001 of https://codereview.chromium.org/2842603002/ )
Reason for revert:
TileGroupTest failing on waterfall, see http://crbug.com/717820

BUG=717820

Original issue's description:
> (Reland x2) Expose resources in Robolectric/JUnit tests.
>
> Will let people use Android resources in Robolectric tests.
> To use, specify package_name GN variable in junit_binary
> targets with your apps package name.
>
> This change will also (basically) require that you use the
> generated wrappers from out_dir/bin/run_<suite name> to run
> the tests since GN will be generating many arguments to
> pass along to the test runner.
>
> BUG=693573
>
> Review-Url: https://codereview.chromium.org/2842603002
> Cr-Commit-Position: refs/heads/master@{#468822}
> Committed: bc26a6f5b4

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

Review-Url: https://codereview.chromium.org/2859583004
Cr-Original-Commit-Position: refs/heads/master@{#468871}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a0f8ac5d596602275b1820e3f63d4966430f0de7
2017-05-03 02:03:01 +00:00
mikecase 82d9e2218d (Reland x2) Expose resources in Robolectric/JUnit tests.
Will let people use Android resources in Robolectric tests.
To use, specify package_name GN variable in junit_binary
targets with your apps package name.

This change will also (basically) require that you use the
generated wrappers from out_dir/bin/run_<suite name> to run
the tests since GN will be generating many arguments to
pass along to the test runner.

BUG=693573

Review-Url: https://codereview.chromium.org/2842603002
Cr-Original-Commit-Position: refs/heads/master@{#468822}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: bc26a6f5b4ed9ee2b84878c17e8f4149db815db7
2017-05-02 23:47:35 +00:00
jbudorick d972ca5a8e [Android] Keep extracted secondary dex files when clearing data in tests. (RELAND)
BUG=716029

Review-Url: https://codereview.chromium.org/2853003003
Cr-Original-Commit-Position: refs/heads/master@{#468728}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 73357e2349014d7638b891070dc5d557e78f87fa
2017-05-02 18:59:06 +00:00
zpeng eaec2ed236 Update lint suppressions.xml
BUG=717473

Review-Url: https://codereview.chromium.org/2853293002
Cr-Original-Commit-Position: refs/heads/master@{#468641}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 20f63c58374f5028b3d70c153afa10e2beec3052
2017-05-02 15:30:11 +00:00
zpeng f9e57da207 Update to newer Android Lint and suppress new Lint errors
This CL updates DEPS to enable updated Android Lint that would work for
Java 8. Also, it adds inline suppression for newly discovered Lint
errors. Additionally, it suppresses Lint deprecation warning for
"android:singleLine". Moreover, it suppresses Lint warnings "AuthLeak",
"VisibleForTests", etc. for tests, and Lint error "ByteOrderMark" in
generated android_chrome_strings.xml (crbug.com/715196).

BUG=635567,669999

Review-Url: https://codereview.chromium.org/2830843004
Cr-Original-Commit-Position: refs/heads/master@{#468545}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5512e732f9513b2e5b3f8c47f146dfa5c3582b6d
2017-05-02 03:18:09 +00:00
jbudorick 853f22fc61 [Android] Fix stack symbolization when packed relocations are on.
We had been looking in lib.stripped for the library when symbolizing
debuggerd traces. The libraries in lib.stripped are not the ones with
packed relocations, though, so the resulting symbolization was wrong.

This CL generates a wrapper script around the stack symbolization
script that points to the correct library to use for symbolization.
It also contains a few tests that intentionally crash in various ways.
These are all disabled by default and should only ever be run manually
for testing out instrumentation test crash tooling.

BUG=712265

Review-Url: https://codereview.chromium.org/2840193003
Cr-Original-Commit-Position: refs/heads/master@{#468206}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 276cc56b7c04cc3a28ec6315feb00f056ea8327b
2017-04-29 01:34:58 +00:00
hzl c5e677ab7b Dump empty json to output when no shard json file is given.
Previously when test results presentation does not receive any json
input file, the script will raise a parser error. This is confusing to
developer, because they may mistake the parser error in this script as
the cause of the crash, instead of the reason why no json input file is
given at the first place.

In this cl, test results presentation will not raise error anymore when
no json file is given.

BUG=715972

Review-Url: https://codereview.chromium.org/2845973004
Cr-Original-Commit-Position: refs/heads/master@{#467834}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 043d55636176cf1c5f9b0ff29c9c853bb538dbd5
2017-04-28 02:08:05 +00:00
wnwen 24b506bc33 Android: Remove apk modules for Android Studio
It is no longer necessary to list all the apk targets as separate
modules now that we have the _all pseudo module. Having the separate
modules resulted in bugs where Android Studio could not distinguish
between prod code and test code since some modules viewed dirs as prod
and some as test. The --split-projects flag can be used to see the
dependency graph, and when only a single module will be generated, the
_all pseudo module will not replace it.

For android studio's _all pseudo module, move all known test dirs to
androidTest instead of main so that they are properly displayed when
filtered.

BUG=620034

Review-Url: https://codereview.chromium.org/2837863002
Cr-Original-Commit-Position: refs/heads/master@{#467704}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e851ad470036997a9a43b0ee2710442f1b5c2096
2017-04-27 16:21:42 +00:00