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

876 Коммитов

Автор SHA1 Сообщение Дата
tonyg 3bd6c7c913 Make host port availability detection more robust.
Previously, it only detected ports that were bound to *, localhost or
127.0.0.1. This detects ports bound to any interface. I noticed this
while investigating 294878, and it could certainly be a source of
flake, but I don't think it's the main one.

BUG=294878

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

Cr-Original-Commit-Position: refs/heads/master@{#299379}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: da7e64810f0305512cd20f0301c2ac1b21d8bc70
2014-10-13 22:33:41 +00:00
jbudorick dc901d7d03 [Android] Push gtest deps in gtest/setup.py.
This patch is an alternative approach to only attempting to push gtest
deps once. (The first attempt to do this, landed in
https://codereview.chromium.org/560133002, caused issues and had to be
reverted.)

BUG=400440

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

Cr-Original-Commit-Position: refs/heads/master@{#299314}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8db64ed2849bd1a919c9004c9456b29467b50520
2014-10-13 17:30:05 +00:00
jbudorick f26ebfbec6 [Android] Reland of 'Add zip pushing and refine push mode selection.'
BUG=400440

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

Cr-Original-Commit-Position: refs/heads/master@{#299284}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8c07d893d4c539c6097e8b249c96785e98c1a9e8
2014-10-13 11:40:06 +00:00
jbudorick 0731401a45 Revert of [Android] Add zip pushing and refine push mode selection.
Broke telemetry_perf_unittests on Android Tests.

TBR=craigdh@chromium.org,cjhopman@chromium.org,klundberg@chromium.org,tonyg@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=400440

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

Cr-Original-Commit-Position: refs/heads/master@{#299133}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7eed7e0b28a56d5f18805cff73459115c4c31d5f
2014-10-10 17:19:46 +00:00
jbudorick a498db7ac9 [Android] Add zip pushing and refine push mode selection.
This patch revises the implementation of DeviceUtils.PushChangedFiles
and changes its interface (slightly).

PushChangedFiles now:
  - takes a list of (host_path, device_path) tuples, each of which are
    analogous to the original parameters.
  - continues to use AndroidCommands.GetFilesChanged to determine which
    files need pushing
  - attempts to pick the fastest method out of:
    - individual file pushes
    - entire directory pushes
    - zip-push-unzip

BUG=400440

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

Cr-Original-Commit-Position: refs/heads/master@{#299098}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b53e3ccca7fa26a51f3980f250f5527581324316
2014-10-10 12:44:06 +00:00
r.kasibhatla 51b043610f Add option to test_runner to specify custom build directory
test_runner.py by default assumes that all unit tests apks
are built into CHROME_SRC_DIR/out. If we have custom build
directory other than out, test_runner.py fails to run the
unit tests. User should be able to run the tests from any
build directory

BUG=None

R=bulach,craigdh

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

Cr-Original-Commit-Position: refs/heads/master@{#298841}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3d57cba32d174aa08f18deee79a4f9e7b39b902a
2014-10-09 10:56:27 +00:00
jbudorick f2e77ea96a Revert of [Android] Don't push deps when listing gtests. (patchset #1 id:1 of https://codereview.chromium.org/560133002/)
Reason for revert:
While we do want to only attempt to push once, this isn't the right way to do it. We should push _before_ attempting to list the tests, then be done with it.

Also, this breaks https://codereview.chromium.org/537063002/

Original issue's description:
> [Android] Don't push deps when listing gtests.
>
> PushDataDeps takes a long time even when all files are on the device
> because calculating the digests of all the files takes _much_ longer
> on a device than it does on a host.
>
> Skipping the push step during test listing -- where the data deps are
> unnecessary -- means that we don't try to push files twice in each
> gtest run, so we skip all of the device-side MD5 calculations that
> would happen in the second run.
>
> BUG=400440
>
> Committed: https://crrev.com/5c10479a0c3572cd41062b453c3e85527b5cfbad
> Cr-Commit-Position: refs/heads/master@{#294667}

TBR=starodub@chromium.org,cjhopman@chromium.org,klundberg@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=400440

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

Cr-Original-Commit-Position: refs/heads/master@{#297948}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fc3ea0426cee341318cdc8d3f9ebb729e1dd64c5
2014-10-02 23:35:47 +00:00
tfarina 1d6b8cc688 Reland the inital attempt to start building ui_base_unittests targets.
Inital commit:  https://crrev.com/430fc906824927713d5a318afb50654e95b699b0

The first attempt was reverted because there was no ui_base_unittests_disabled file to disable the test on Android like there was for ui_unittests.

Reverted by: https://crrev.com/79c886b2fa50d0634d8d8a84903f9a9ea96f5471

The fix for the revert was made by commit at https://crrev.com/4642d9377d3044c81d0f32298ba0c203976c8cc9

BUG=331829, 373148, 299841, 103304
TEST=None
R=sky@chromium.org,maruel@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#297865}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 201471d5acade51f594b703a3ae6307d566a3966
2014-10-02 18:12:27 +00:00
tfarina af0d01d19e Disable DelegateGetFontList test on Android through C++.
Instead of disabling it through a file under build/android, better to
disable it directory in C++ source code to avoid sutle issues in the
bots that was caused when renaming the test or the test suite target
name.

BUG=339980
TEST=ui_unittests_apk
R=sky@chromium.org,primiano@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#297637}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4642d9377d3044c81d0f32298ba0c203976c8cc9
2014-10-01 13:48:15 +00:00
aurimas e94311704d [Android] Print out the command used to run findbugs.
Start printing out the command used to run findbugs to allow for easier
debugging why findbugs might be failing.

BUG=None

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

Cr-Original-Commit-Position: refs/heads/master@{#297463}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9c6ac85c45fae9c17ad08c4f37dc223aa4a38d5d
2014-09-30 18:27:46 +00:00
tonyg 8b9b4c30c7 [Telemetry] Support dumpsys power monitoring on the Nexus 5.
This adds the necessary commands to programmatically disable charging
on the Nexus 5 as well as fixing a bug in the dumpsys power monitor.

BUG=314481

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

Cr-Original-Commit-Position: refs/heads/master@{#297428}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6d11d3ee12a5ef05d5570661737a900105186fc6
2014-09-30 15:39:25 +00:00
jam 1be2f8d56d Pass lsan GYP variable to swarming's test_env so that we can disable the sandbox when it's set.
This copies the logic from tools/build/scripts/slave/runtest.py in swarming.

I changed test_env.py so that it sets CHROME_DEVEL_SANDBOX to be an empty string, instead of unsetting it. The latter doesn't work as Chrome triggers checks in content/browser/browser_main_loop.cc. This is what runtest.py does.

BUG=414808,336218

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

Cr-Original-Commit-Position: refs/heads/master@{#297330}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 92ee4a3cbd8284c6f63cf8ca3eed384ca70b939e
2014-09-30 01:22:29 +00:00
fdegans 28c9b4ece4 [Android] Do not check if cpu0 is online.
BUG=397118

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

Cr-Original-Commit-Position: refs/heads/master@{#296934}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c312255d86fd46b43262d5dbe2ff24bd8dfed793
2014-09-26 14:05:08 +00:00
xians 6b4db59d88 Revert of Reland 588523002: Fix the way how we create webrtc::AudioProcessing in Chrome (patchset #5 id:80001 of https://codereview.chromium.org/597923002/)
Reason for revert:
It fails some aec dump content browser tests on windows, and likely it also breaks the aec dump production code, it is safer to revert it since cut happens today.
http://chromegw.corp.google.com/i/internal.chromium.webrtc/builders/Win7%20Tester/builds/9752/steps/content_browsertests/logs/stdio

Original issue's description:
> The original review thread is in https://codereview.chromium.org/588523002/
>
> Fix the way how we create webrtc::AudioProcessing in Chrome.
>
> TBR=tommi@chromium.org
>
> BUG=415935
> TEST=all webrtc tests in all bots + manual test to verify the agc loggings exist.
>
> Committed: 5ac9f35c3e

TBR=tommi@chromium.org,jochen@chromium.org,maruel@chromium.org,brettw@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=415935

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

Cr-Original-Commit-Position: refs/heads/master@{#296933}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 058a229c7120b29657a8967c6de2ff3d05cfc29d
2014-09-26 14:04:11 +00:00
perkj 07ffa08594 Revert of Start building ui_base_unittests targets. (patchset #1 id:1 of https://codereview.chromium.org/600833002/)
Reason for revert:
Breaks Android waterfall.
http://build.chromium.org/p/chromium.linux/builders/Android%20Tests%20%28dbg%29

Original issue's description:
> Start building ui_base_unittests targets.
>
> This is in preparation for updating the buildbot code. First we need to
> make sure we build those targets, otherwise buildbot will fail.
>
> BUG=331829,373148,299841,103304
> TEST=None
> R=sky@chromium.org,maruel@chromium.org
>
> Committed: https://crrev.com/430fc906824927713d5a318afb50654e95b699b0
> Cr-Commit-Position: refs/heads/master@{#296877}

TBR=cjhopman@chromium.org,sky@chromium.org,maruel@chromium.org,tfarina@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=331829,373148,299841,103304

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

Cr-Original-Commit-Position: refs/heads/master@{#296903}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 79c886b2fa50d0634d8d8a84903f9a9ea96f5471
2014-09-26 07:33:15 +00:00
tfarina 596b7191a0 Start building ui_base_unittests targets.
This is in preparation for updating the buildbot code. First we need to
make sure we build those targets, otherwise buildbot will fail.

BUG=331829,373148,299841,103304
TEST=None
R=sky@chromium.org,maruel@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#296877}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 430fc906824927713d5a318afb50654e95b699b0
2014-09-26 04:09:18 +00:00
jbudorick dcfffaa9ea [Android] Fix UIAutomator test running.
I broke the uiautomator tests with my change to instrumentation test
running in https://codereview.chromium.org/558883003/. The revised
implementation never called _RunTest, which the uiautomator test runner
overrides to run its tests. As a result, we were trying to run the
uiautomator tests with 'am instrument', which (obviously) doesn't work.

This patch revises the implementation of the instrumentation test runner
s.t. it does call _RunTest again.

BUG=417492

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

Cr-Original-Commit-Position: refs/heads/master@{#296835}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 10a670535f86258e35633d855a01dac0a3f11c51
2014-09-25 23:55:01 +00:00
jbudorick 8c90a2cb40 [Android] Make SetJavaAsserts return True if a restart is required.
BUG=417705

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

Cr-Original-Commit-Position: refs/heads/master@{#296736}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ecd91a8874584f5b3768514aece927a06f1b65de
2014-09-25 17:39:17 +00:00
xians 39a2f45eff The original review thread is in https://codereview.chromium.org/588523002/
Fix the way how we create webrtc::AudioProcessing in Chrome.

TBR=tommi@chromium.org

BUG=415935
TEST=all webrtc tests in all bots + manual test to verify the agc loggings exist.

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

Cr-Original-Commit-Position: refs/heads/master@{#296709}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6299e2dbff65201b71f159d185a95d539ee9e810
2014-09-25 15:30:11 +00:00
John Abd-El-Malek 0c1ca92471 Fix ChromeOS Ozone build since it doesn't have xdisplaycheck.
BUG=414808
TBR=phajdan.jr@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#296590}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4789b6a08a408b687ef8015cd3a760f0b2b08386
2014-09-25 00:28:35 +00:00
Paweł Hajdan, Jr 4e4cc243c6 Make isolated tests work with asan
BUG=none
R=maruel@chromium.org, thakis@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#296462}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 31d267935a2d604dd62b440ee8b36af1c762654c
2014-09-24 18:02:55 +00:00
serya e6055f6db8 Implementation of DevTools socket tunneling service for remote debugging.
Test APK in addition to instrumentation tests contains launching activity and foreground service what let duplicate ChromeShell debug socket to a differently named socket. If a device with running ChromeShell and DevToolsBridgeTest's service connect to a Desktop chrome (with USB debugging enabled) then chrome://inspect#devices will show 2 ChromeChell items. Both are debuggable (https://codereview.chromium.org/521573002/ should be applied to Desktop chrome to make the process less surprising). It's suitable for manual tests.

This CL doesn't care of a few known issues:
1. Data channel buffer overflow. Data channel automatically closed in this case.
2. Uncontrolled number of pending sockets. DevTools throttles opening sockets and and keeps sockets that exceeds a threshold hanging.
3. Uncontrolled number of threads (it's actually not a problem if #2 solved, thanks to DevTools throttling).

To keep this CL reasonably simple this issues will be addressed later.

TEST=org.chromium.components.devtools_bridge.SocketTunnelServerTest, see description fro manual testing.
BUG=383418

Committed: https://crrev.com/15044609893faf9b2c2a533aa9a136f288ea20a1
Cr-Commit-Position: refs/heads/master@{#296360}

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

Cr-Original-Commit-Position: refs/heads/master@{#296377}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6c788d675dba4ec185375863cbc53c0803cc4b3e
2014-09-24 09:54:53 +00:00
phoglund 24b9efd2bd Revert of DevTools socket tunnel. (patchset #11 id:300001 of https://codereview.chromium.org/517233002/)
Reason for revert:
Fails to compile on Android: https://build.chromium.org/p/chromium.linux/builders/Android%20Arm64%20Builder%20(dbg)/builds/2163

devtools_bridge/android/javatests/src/org/chromium/components/devtools_bridge/SocketTunnelServerTest.java:291: cannot find symbol
symbol: method sleep()
                sleep();
                ^

Original issue's description:
> Implementation of DevTools socket tunneling service for remote debugging.
>
> Test APK in addition to instrumentation tests contains launching activity and foreground service what let duplicate ChromeShell debug socket to a differently named socket. If a device with running ChromeShell and DevToolsBridgeTest's service connect to a Desktop chrome (with USB debugging enabled) then chrome://inspect#devices will show 2 ChromeChell items. Both are debuggable (https://codereview.chromium.org/521573002/ should be applied to Desktop chrome to make the process less surprising). It's suitable for manual tests.
>
> This CL doesn't care of a few known issues:
> 1. Data channel buffer overflow. Data channel automatically closed in this case.
> 2. Uncontrolled number of pending sockets. DevTools throttles opening sockets and and keeps sockets that exceeds a threshold hanging.
> 3. Uncontrolled number of threads (it's actually not a problem if #2 solved, thanks to DevTools throttling).
>
> To keep this CL reasonably simple this issues will be addressed later.
>
> TEST=org.chromium.components.devtools_bridge.SocketTunnelServerTest, see description fro manual testing.
> BUG=383418
>
> Committed: https://crrev.com/15044609893faf9b2c2a533aa9a136f288ea20a1
> Cr-Commit-Position: refs/heads/master@{#296360}

TBR=mnaganov@chromium.org,tedchoc@chromium.org,erikwright@chromium.org,serya@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=383418

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

Cr-Original-Commit-Position: refs/heads/master@{#296361}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cf0900dae461d90af8ed7604da098690d7c744c3
2014-09-24 07:33:14 +00:00
serya 8b02359e82 Implementation of DevTools socket tunneling service for remote debugging.
Test APK in addition to instrumentation tests contains launching activity and foreground service what let duplicate ChromeShell debug socket to a differently named socket. If a device with running ChromeShell and DevToolsBridgeTest's service connect to a Desktop chrome (with USB debugging enabled) then chrome://inspect#devices will show 2 ChromeChell items. Both are debuggable (https://codereview.chromium.org/521573002/ should be applied to Desktop chrome to make the process less surprising). It's suitable for manual tests.

This CL doesn't care of a few known issues:
1. Data channel buffer overflow. Data channel automatically closed in this case.
2. Uncontrolled number of pending sockets. DevTools throttles opening sockets and and keeps sockets that exceeds a threshold hanging.
3. Uncontrolled number of threads (it's actually not a problem if #2 solved, thanks to DevTools throttling).

To keep this CL reasonably simple this issues will be addressed later.

TEST=org.chromium.components.devtools_bridge.SocketTunnelServerTest, see description fro manual testing.
BUG=383418

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

Cr-Original-Commit-Position: refs/heads/master@{#296360}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 15044609893faf9b2c2a533aa9a136f288ea20a1
2014-09-24 07:13:58 +00:00
jbudorick 9a6b4b0289 [Android] JUnit test runner changes.
BUG=316383

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

Cr-Original-Commit-Position: refs/heads/master@{#295819}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9a6b7b33b31a4023858b295ed290f95d3afa51f0
2014-09-20 00:01:22 +00:00
John Abd-El-Malek e4938e0d0b Fix isolate errors on Android bots because fastbuild wasn't passed in.
R=vadimsh@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#295767}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 03e88dcedd1146c3d1415f7bdc83fd8294267a9a
2014-09-19 19:51:23 +00:00
jbudorick 83cb1b3099 [Android] Allow instrumentation test skipping.
This patch also removes a call to AdbInterface.StartInstrumentation and
implements some of the functionality of am_instrument_parser.py.

BUG=408585

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

Cr-Original-Commit-Position: refs/heads/master@{#295491}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cbcc115def0fe5d2cf4c2018fccbbc16fd4c5aba
2014-09-18 17:51:18 +00:00
jbudorick e4af6527f8 [Android] Don't push deps when listing gtests.
PushDataDeps takes a long time even when all files are on the device
because calculating the digests of all the files takes _much_ longer
on a device than it does on a host.

Skipping the push step during test listing -- where the data deps are
unnecessary -- means that we don't try to push files twice in each
gtest run, so we skip all of the device-side MD5 calculations that
would happen in the second run.

BUG=400440

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

Cr-Original-Commit-Position: refs/heads/master@{#294667}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5c10479a0c3572cd41062b453c3e85527b5cfbad
2014-09-12 21:44:45 +00:00
perezju c9d2a1eeb3 Simpler logic to setup/restore Chrome command line
Simplified the logic to save, set, and restore the command line used to
launch a browser. For efficiency, functions are implemented as single
shell commands to run on the device.

This reduces about 20% of the time taken to start a new browser, and
overall 5% of the total running time of telemety unit tests.

BUG=379378

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

Cr-Original-Commit-Position: refs/heads/master@{#294401}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ed4ecc3210f219f40b77ce5efae5d668915b0ed1
2014-09-11 16:40:44 +00:00
perezju 6c89c14f8b Currently, the most time consuming operation when creating a new browser
during Telemetry tests consists of sending an "adb force-stop" command
to the device, in order to force kill any previous browsers which did
not close as expected.

Sending a kill -9 to the process is, however, more efficient.
This CL also adds some efficiency improvements to DeviceUtils.KillAll.
The change amounts to a 6-7% speedup when running all of telemetry
unittests.

BUG=379378

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

Cr-Original-Commit-Position: refs/heads/master@{#294368}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1fd28e9eb7414c43c3811f684832296a85289b2a
2014-09-11 10:41:28 +00:00
dfalcantara e2827f4bb1 Disable unit test failing on L
TouchActionTest.Pan will start failing upstream as soon as
L bots are added.

BUG=412145

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

Cr-Original-Commit-Position: refs/heads/master@{#294191}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f7bf8b90399a7d861b0125b7db7daa11e108398f
2014-09-10 18:12:29 +00:00
cjhopman dd11b15b83 Make base_unittests_apk actually work
This changes the "test" template to create a shared_library (instead of
an executable) on Android. After this, we can actually run
base_unittests with
`build/android/test_runner.py gtest -s base_unnittests`
as normal (though may need to CHROMIUM_OUT_DIR and BUILDTYPE as
appropriate).

This requires adding the following targets:

//testing/android:native_test_native_code
//testing/android:native_test_util
//testing/android:native_test_jni_headers
//tools/android/md5sum:md5sum
//tools/android/md5sum:md5sum_bin
//tools/android/md5sum:md5sum_prepare_dist
//tools/android/md5sum:md5sum_copy_host

Also, makes it so that native executables are stripped (just like shared
libraries). Adds a simple create_native_execuatable_dist template that
sets up a dist directory for the executable (see
build/android/gyp/native_app_dependencies.gyp).

BUG=359249
TBR=rlarocque

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

Cr-Original-Commit-Position: refs/heads/master@{#294032}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e65ead8fb1a1976682356cf824445476584e70f0
2014-09-09 23:27:27 +00:00
nyquist 54089c7bb6 Add support for CHROMIUM_OUT_DIR to findbugs util.
Currently, the findbugs_diff.py and friends ignore the
CHROMIUM_OUT_DIR environment variable, and hardcodes the out folder
to just be 'out'. This is problematic for developers who use a
different out folder.

This CL makes the generic findbugs util library read the environment
variable, and then default to 'out' if it is not set.

BUG=None

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

Cr-Original-Commit-Position: refs/heads/master@{#293990}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: bb78a46883c8b9a3201b6e2e457dda93de8b7072
2014-09-09 19:47:46 +00:00
tfarina f9bdcd1dbc Reland "ui: Move ui_unittests.gyp into ui/base."
Original description from commit 63e36e6bdaa65d1152dd62f9831128c752bc0408:

ui: Move ui_unittests.gyp into ui/base.

ui_unittests.gyp -> ui_base_tests.gyp (follow gfx_tests.gyp pattern).
ui_unittests_bundle.gypi -> ui/base/ui_base_tests_bundle.gypi
ui_unittests.isolate -> ui_base_tests.isolate

Add a TODO assigned to me to rename ui_unittests target to
ui_base_unittests when buildbot is updated.

It was reverted in commit 6297a2f1e441c46d6f8ca37a3798fe6fbdd6cc4c,
because a test from ui_unittests in ios_dbg_simulator started to
failing.

BUG=331829,373148,299841,103304
TEST=ui_unittests
R=sky@chromium.org,rohitrao@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#293134}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2148b92f9cc676bf2b64dc7e47ef65daac393031
2014-09-03 14:47:45 +00:00
bratell 01d915b296 binarysize tool: Cleaning up some progress output.
R=primiano

BUG=

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

Cr-Original-Commit-Position: refs/heads/master@{#292999}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 42cab11e12ec82915197f300d26007f30b959c6b
2014-09-02 21:22:37 +00:00
Henrik Kjellander 1ec73cd6ef Refactor/cleanup WebRTC-specific Andorid glue code.
Remove a bunch of code that is already longer used or
will become unused when https://review.webrtc.org/22149004/
and https://codereview.chromium.org/505153002/ are landed.

Remove hardcoded paths to the WebRTC isolate files to make
it easier for us to make changes to them, since we can pass
the path to the .isolate file on test execution instead
(keeping the configuration in the WebRTC buildbot recipe instead).
Previously we had to roll our Chromium revision in WebRTC DEPS
every time a change was made before it became used.

Add support for a CHECKOUT_SOURCE_ROOT environment variable
used to make it possible to override the hardcoded path traversal
that is done to find the src/ directory (since it's different for
WebRTC bots). I considered passing a flag into the test_runner.py
scripts instead of using an environment variable, but my opinion is
that it would pollute the code too much since
constants.DIR_SOURCE_ROOT is used in 70 different places.

BUG=webrtc:3741
TEST=local building and test execution using command lines like this:
cd /path/to/webrtc/src
export CHECKOUT_SOURCE_ROOT=`pwd`
build/android/test_runner.py gtest -s tools_unittests --isolate-file-path=webrtc/tools/tools_unittests.isolate

R=navabi@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#292861}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f0a439da1aba8e22b30ede87087418e806f7fa75
2014-09-01 11:09:00 +00:00
tfarina 7bfd4ce15f Revert of ui: Move ui_unittests.gyp into ui/base. (patchset #5 id:80001 of https://codereview.chromium.org/506483002/)
Reason for revert:
it breaks clobber build of ios_dbg_simulator.

Original issue's description:
> ui: Move ui_unittests.gyp into ui/base.
>
> ui_unittests.gyp -> ui_base_tests.gyp (follow gfx_tests.gyp pattern).
> ui_unittests_bundle.gypi -> ui/base/ui_base_tests_bundle.gypi
> ui_unittests.isolate -> ui_base_tests.isolate
>
> Add a TODO assigned to me to rename ui_unittests target to
> ui_base_unittests when buildbot is updated.
>
> BUG=331829,373148,299841,103304
> TEST=ui_unittests
> R=sky@chromium.org
>
> Committed: 60f6892f72

TBR=sky@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=331829,373148,299841,103304

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

Cr-Original-Commit-Position: refs/heads/master@{#292657}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6297a2f1e441c46d6f8ca37a3798fe6fbdd6cc4c
2014-08-29 17:04:07 +00:00
perezju 68d662bf55 Make single shell call in _SetScalingGovernorInternal
Changed implementation to make a single shell call, rather than
pushing files and executing several shell calls.

When running telemetry unittests on android, reduces total execution
time about 12%.

BUG=379378

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

Cr-Original-Commit-Position: refs/heads/master@{#292405}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4bda9f96e6edbc4c208abde787c842f828f2f798
2014-08-28 17:08:44 +00:00
tfarina 78f5cc64c6 ui: Move ui_unittests.gyp into ui/base.
ui_unittests.gyp -> ui_base_tests.gyp (follow gfx_tests.gyp pattern).
ui_unittests_bundle.gypi -> ui/base/ui_base_tests_bundle.gypi
ui_unittests.isolate -> ui_base_tests.isolate

Add a TODO assigned to me to rename ui_unittests target to
ui_base_unittests when buildbot is updated.

BUG=331829,373148,299841,103304
TEST=ui_unittests
R=sky@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#292146}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 63e36e6bdaa65d1152dd62f9831128c752bc0408
2014-08-27 14:33:57 +00:00
primiano@chromium.org 99c8421e4e [Android] Turn heap_profiler_unittests into an apk and reenable them.
heap_profiler_unittests was previously a native executable target.
It turns out that we don't have the harness in place to run native
executable tests reliably on all Android versions due to the PIE
vs non-PIE issue (L vs ICS, see crbug.com/373219).
This caused a revert in crrev.com/416003005.
This change is making heap_profiler_unittests an apk target, following
the same pattern of the other tests we have in the codebase.
This change is also re-adding the tests to the the bot list.

BUG=393964

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@291197 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-21 21:35:37 +00:00
jbudorick@chromium.org 9cfda79f7a [Android] Parallelize provision_devices.py.
BUG=401163

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@290988 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-21 04:17:07 +00:00
jbudorick@chromium.org 1aaf810872 [Android] Fix the location prompt flake in provision_devices.
BUG=401163

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@290353 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-18 20:34:44 +00:00
jbudorick@chromium.org 05c5d814e6 [Android] Make adb shell commands with single quotes run correctly.
BUG=401163

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@290299 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-18 18:05:42 +00:00
jbudorick@chromium.org 3dacbc87ba [Android] Fix misc minor provisioning issues.
BUG=401163

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@290020 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-15 21:45:40 +00:00
mikecase@chromium.org a88ae29275 Changed the test package for chrome_document tests
BUG=
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@289960 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-15 18:56:52 +00:00
mikecase@chromium.org 65bf64fead Added Hera package info in order to run uiautomator tests with hera
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@289725 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-14 23:50:06 +00:00
anton@chromium.org bb7a2e16ae Provide a maximum size on the number of tests to run in one group.
The implementation of thread local storage on Android does not free slots
in a fixed size datastructure with 256 slots. When a large number of tests
run in a single process it is easy to exceed the limit. We don't have
control over how many slots are burnt per test, so we just assume that
one slot is burnt per test. We split the tests so only 256 run in a given
process.

BUG=354405

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@289386 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-13 21:46:34 +00:00
jbudorick@chromium.org 63df0f7767 +jbudorick, -craigdh for build/android/pylib/OWNERS.
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@289313 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-13 16:27:13 +00:00
yojan@google.com 8f46fc3d14 Test Runner changes for @IntegrationTest.
Changes made to treat @IntegrationTest annotation as a test size annotation
with a timeout greater than @EnormousTest. Changes to test runner also made
to allow new line escapes for the .flags file.

BUG=None

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@289098 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-12 22:51:19 +00:00
cjhopman@chromium.org 27654960d9 Update lint and findbugs to use jars instead of class files
Now that this is done, we don't need to leave the class files laying
around anymore. So don't.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@288971 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-08-12 15:10:38 +00:00