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

673 Коммитов

Автор SHA1 Сообщение Дата
yfriedman@chromium.org c5949d2c12 Reduce verbosity of Android builds.
There's a lot of boilerplate from running ant. Passing '-q' silences most of it.

BUG=164395
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@173688 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-18 07:54:35 +00:00
yfriedman@chromium.org 6a86cd6140 [Android] Output unchecked warnings and fix existing instances.
BUG=164395


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@173658 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-18 06:56:14 +00:00
jcivelli@chromium.org 1001eacbad Refactoring JavaScript modal dialog.
Small refactoring of the JavaScript modal dialogs so they use the system class
more, and some minor changes for testing.

BUG=156745
TEST=Navigate to http://www.w3schools.com/js/js_popup.asp and try all the alert
     box examples.
TBR=ben


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@173582 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-18 00:01:36 +00:00
frankf@google.com 1ba811a25b Don't report the gtest return code as a TestResult object.
Fix some style issues.

BUG=165529

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@173555 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-17 22:19:11 +00:00
mnaganov@chromium.org 550230af20 [Android WebView] Fix FindBugs warnings in AwSettingsTest
R=benm@chromium.org
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@173465 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-17 15:12:20 +00:00
frankf@google.com 746da183cb Partial revert of crrev.com/172937.
Add back the logic of dropping devices of we fail
to get gtest lists.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@173217 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-14 22:01:07 +00:00
frankf@google.com 8938b55546 Remove --performance_test from Android gtest runner.
We no longer run page cycler tests.

BUG=165529

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@173185 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-14 19:18:26 +00:00
marja@chromium.org 0c8f34339f Android pylib: measurement name escaping fix.
The original re.sub wasn't doing at all what wanted. Also, added / to be
replaced, because we now have URLs in measurement names, and measurement names
are also used for constructing directory names.

BUG=NONE
NOTRY=true


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@173167 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-14 16:19:00 +00:00
jknotten@chromium.org 0841cb5ffc Fix build/android/run_tests.py
When a device fails to report test results, there is an name exception
when warning about this. This is because 'current_device' is not
a bound variable.

TEST=
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@173154 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-14 15:05:31 +00:00
marja@chromium.org d47c5edb47 Telemetry: Yet another histogram printing fix.
TBR=bulach@chromium.org

BUG=NONE
NOTRY=true


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@173142 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-14 10:17:24 +00:00
jcivelli@chromium.org 16f6ec67b4 Adding extra logs to investigate a crasher.
A weird crasher seems to indicate SanboxedProcessService can be run again in
the same process.
This CL adds logs to validate that hypothesis.

BUG=164069
TEST=None


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@173122 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-14 07:35:10 +00:00
marja@chromium.org f7fb2e0382 Telemetry: More elegant histogram printing.
We now consider the _by_url data important for histograms, and only print out
histograms one by one. So we don't need hacks in perf_tests_helper for printing
out a list of histograms (for which we don't any more know which page they refer to).

BUG=158323
NOTRY=true


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@172939 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-13 20:00:12 +00:00
frankf@google.com 0434125cf6 Clean up Android gtest runners.
- Remove obsolete rebaseline option
- Fix a bug with reporting skipped tests
- Fix some style issues

BUG=165529

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@172937 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-13 19:59:06 +00:00
nileshagrawal@chromium.org bbc6eca263 Android: Disable failing breakpad unittests
BUG=165916

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@172933 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-13 19:48:11 +00:00
fischman@chromium.org 88f3a2fcf1 Make it harder to accidentally run envsetup.sh in a subshell
(instead of sourcing it in the current shell)

Relanding r172828, which was reverted in r172836 due to crbug.com/165964.

TBR=ilevy@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@172912 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-13 18:56:12 +00:00
pliard@chromium.org 0eaa9cfc4d Fire SystemMonitor::{RESUME,SUSPEND}_EVENT on Android.
This improves SystemMonitor on Android by firing RESUME/SUSPEND events when the
Android main activity goes to foreground/background.
This lets the Android port use the same code path as other platforms to support
the close idle network connections functionnality.

SUSPEND events are now fired 1 minute after the main activity goes to
background.

Additionnally this CL cleans up ActivityStatus used by the Java side
SystemMonitor class. ActivityStatus was suffering from various refactorings and
was providing a counter intuitive interface with the Listener/StateListener
duality.
In particular it was possible to call SystemMonitor.onPause/Resume() as opposed
to onStateChange(). This could lead to SystemMonitor.getActivity() returning
null. The issue was raised while this CL was prepared.

BUG=164495

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@172864 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-13 11:46:23 +00:00
marja@chromium.org 92c38c3243 Revert 172828. This broke check_deps. You identified this problem
in the code review comments, not sure what went wrong. Was the wrong
patch set committed?
> Make it harder to accidentally run envsetup.sh in a subshell 
> (instead of sourcing it in the current shell).
> 
> 
> Review URL: https://chromiumcodereview.appspot.com/11547023

TBR=fischman@chromium.org
Review URL: https://codereview.chromium.org/11568008

git-svn-id: http://src.chromium.org/svn/trunk/src/build@172836 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-13 09:00:49 +00:00
fischman@chromium.org 37afd2e869 Make it harder to accidentally run envsetup.sh in a subshell
(instead of sourcing it in the current shell).


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@172828 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-13 05:58:40 +00:00
tonyg@chromium.org 8a7c955818 Don't truncate graph and trace names for perf results.
This was an arbitrary limit that isn't necessary and truncation broke Dromaeo
results which have unique parts after 40 characters.

BUG=164015
TEST=None


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@172733 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-13 00:45:15 +00:00
newt@chromium.org 7d00b4310a [Android] Add process_resources.py to build Android library resources.
This generates the copy of R.java used to compile the library jar (formerly
done in gyp) and adds a new step to crunch image resources.

The imaging crunching step fixes the link preview 9-patch drawing artifact,
among other benefits.

BUG=163602

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@172655 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-12 21:01:08 +00:00
frankf@google.com 932d3f2051 Fix the corner case issue with Android test sharder.
Previously all gtests would run if the shard list was empty.

BUG=165529

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@172630 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-12 18:53:54 +00:00
digit@chromium.org b6e4e6219c Android: fix breakpad_unittests execution.
The build/android/ scripts could not run the breakpad_unittests script
properly for two reasons:

- First, a special helper binary needs to be pushed to the device.
  This patch modifies test_package.py to take care of that.

- Second, the GTest result value file is stored in /data/local/tmp/
  for executable tests, instead of /sdcard/, as assumed by
  test_package_executable.py.

BUG=165355


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@172513 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-12 03:12:16 +00:00
ppi@chromium.org 5523081e7e Implement TestRootCerts for Android
Currently we are unable to plant our test root certificate in Android trust store to run our certificate verification tests against it.

The patch adds custom test trust store to the java backend, allowing to run the certificate verification tests against custom set of root certificates.

The actual installation of our test root certificate is being done by TestRootCerts class, consistently with what we do on other platforms.

BUG=147786

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@172488 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-12 01:31:55 +00:00
aberent@chromium.org aa9475ae7f Print OMAP temperature data
Print an info message giving the temperature at which the OMAP decided to
thermally throttle.
Print an info message giving the current OMAP temperature every time there is
a check for thermal throttling.
Include the device serial number in all thermal throttling messages.

BUG=164989


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@172357 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-11 18:41:12 +00:00
aruslan@chromium.org e3d9ec2f9c Disabling all breakpad unittests.
Exact list of breakpad unit tests failing on official release:

http://clankbotmaster:8120/builders/release-official-clankium/builds/224/steps/breakpad_unittests/logs/stdio
FAILED=20 ['ExceptionHandlerTest.InstructionPointerMemory', 'ExceptionHandlerTest.InstructionPointerMemoryMinBound', 'ExceptionHandlerTest.InstructionPointerMemoryMaxBound', 'LinuxPtraceDumperTest.MergedMappings', 'LinuxPtraceDumperTest.VerifyStackReadWithMultipleThreads', 'MinidumpWriterTest.DeletedBinary', 'MinidumpWriterTest.MinidumpSizeLimit', 'ElfCoreDumpTest.TestElfHeader', 'ElfCoreDumpTest.ValidCoreFile', 'FileIDStripTest.StripSelf', 'FileIDStripTest.StripSelf', 'FileIDTest.UniqueHashes32', 'FileIDTest.ElfClass', 'FileIDTest.UniqueHashes64', 'FileIDTest.UniqueHashes32', 'LinuxLibcSupportTest.strtoui', 'FileIDTest.UniqueHashes64', 'PageAllocatorTest.SmallObjects', 'LinuxLibcSupportTest.read_decimal_ptr', 'gtest exit code: 1']

BUG=165355


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@172274 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-11 07:28:21 +00:00
aruslan@chromium.org d1d06e095a Disabling IPC release-only fuzzing test as well
(Bunch of debug tests have already been disabled.)

BUG=165321


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@172263 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-11 04:29:34 +00:00
newt@chromium.org 8f45e040d9 [Android] screenshot.py: handle positional arguments.
This allows the filename to be passed as a positional argument and
complains if there is more than one positional argument.

BUG=164644

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@172181 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-10 23:24:42 +00:00
bulach@chromium.org 181ba5e13b Telemetry: shard tests on android.
This script allows to:
1. run all telemetry tests in N devices as a single step in the buildbot.
Each run will save its results in the buildbot.
2. A separate step will then essentially print them.

This is very similar mechanism to the existing one downstream, which will be deprecated
and replaced by this as soon as it lands.

BUG=163503
TEST=build/android/bb_run_sharded_steps.py


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@172044 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-10 12:49:27 +00:00
digit@chromium.org 71f9e06482 build/java_cpp_template.gypi: new build rules.
This patch adds a new .gypi file that allows one to generate Java source
files by parsing template files with the host C pre-processor. The main
use case is the ability to generate Java sources defining constants matching
their C/C++ counterparts.

This is actually a generalisation of the technique that was used in net/net.gyp
to generate a NetError.java source mirroring the definitions found in
net/base/net_error_list.h

BUG=none


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@172041 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-10 12:38:24 +00:00
newt@chromium.org 01a368d9b8 [Android] Add screenshot command line tool.
This modifies the no longer used monkeyrunner_screenshot.py into a
simple screenshot tool.

BUG=164644

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@171615 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-06 22:47:36 +00:00
shashishekhar@chromium.org 51bf7244a8 Change test running logic to run tests without any size annotation.
Currently some tests without any test size annotation but with any other
annotation (like PhoneOnly) are not run. These tests are not disabled and
should be run, all disabled tests should now have a DisabledTest annotation.


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@171434 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-06 06:47:29 +00:00
dtrainor@chromium.org 12431c9e64 Implement annotation support for JS<->Java interface
Instead of relying on a boolean to determine whether or not to rely on the
@JavascriptInterface annotation for injected APIs, allow the caller to pass
in an annotation that will be placed on the methods they want injected.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@171352 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-05 23:27:41 +00:00
ilevy@chromium.org f7868985aa Provisionally switch android webview tests to CQ
BUG=162670
NOTRY=True


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@171144 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-05 03:31:57 +00:00
yfriedman@chromium.org 8f55ff34f6 Remove references to android_upstream_bringup.
It's not used anymore.


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@171128 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-05 02:28:08 +00:00
mnaganov@chromium.org 8cea6ddecc [Android] Implement WebSettings.setAppCache{Enabled|Path}
AppCacheEnabled is mapped onto WebPreferences.application_cache_enabled, which goes directly into WebKit Settings.

AppCachePath is only used as a flag to enable AppCache. We can't make use of the full path given, because in Chromium the Application Cache directory lives inside the browser context (profile).

The tests added trigger a DCHECK in disk cache, unless the profile is empty when the test starts. This makes impossible to run them both now, so only one of them is enabled for now.

Android CTS tests WebSettings.testAppCache{Disabled|Enabled} are passing with this patch.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@171074 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-04 22:55:43 +00:00
digit@chromium.org d6e95af750 Re-enable dynamic NEON support in Skia.
The Skia build depends on arm_neon_optional=1 being defined in GYP_DEFINES
to enable dynamic NEON support. It looks like this option was lost in
translation during the upstreaming of build/android/.

Note that this won't fix crbug.com/161834, i.e. on JB and higher, the
sandboxing currently prevents the CPU feature detection from working, but
it's a first step in the right direction (it fixes the code for ICS devices
though).

BUG=164002

R=joth@chromium.org,torne@chromium.org,djsollen@chromium.org,tomhudson@chromium.org,reed@chromium.org


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@171001 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-04 18:13:33 +00:00
tonyg@chromium.org 7be8d771cb Delete sunspider performance_ui_test.
It was converted to a Telemetry test which the perf bots are using now. That
makes one less user of the automation proxy.

BUG=None
TEST=None


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@170817 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-03 21:41:11 +00:00
ilevy@chromium.org a357a1460e Reduce android asan buildbot tasks
- Remove some unnecessary calls.
  Builder now only compiles and uploads.
  Tester now only runs standard tests.

TBR=yfriedman@chromium.org
BUG=160952
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@170648 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-01 03:38:30 +00:00
ilevy@chromium.org 530cbc42b8 Add asan android buildbot scripts
- Also add suppost for asan=1 gyp define, which implicitly
  sets clang=1.

R=yfriedman@chromium.org
BUG=160952
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@170631 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-01 02:15:04 +00:00
frankf@google.com 9f25fd8c6c Raise an exception if a unittest target is missing.
BUG=163653

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@170592 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-30 23:29:12 +00:00
jamesr@chromium.org e1d9c912ea Fix android run_tests.py
Local change slipped in to commit

BUG=163653
TBR=frankf@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@170509 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-30 19:36:53 +00:00
pliard@chromium.org 55e9f5071a Ensure host_forwarder is killed when setting up sharding.
This fixes the following issue:
- TestSharder.SetupSharding() in run_java_tests.py wasn't calling
  the super class' SetupSharding() method which kills host_forwarder. The call
  to Forwarder.KillHost() was moved to RunShardedTest() which isn't supposed to
  be overridden. This should be more robust.

Additionally in case '$ host_forwarder kill-server' failed for any reason,
Forwarder.KillHost() now falls back to pkill.

BUG=163036


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@170437 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-30 10:56:29 +00:00
jamesr@chromium.org 89f99cf0f9 Add perf tests based on json representation of layer tree
This extends cc_perftests to run perf tests based on a json dump of a layer tree
with minimal code changes and adds a tree representing a tab switch UI with
two stacks of 10 layers each.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@170411 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-30 05:51:45 +00:00
michaelbai@chromium.org 4c8219d41d Added back the passed test.
BUG=117940


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@170340 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-30 01:46:33 +00:00
shashishekhar@chromium.org 9923d75e44 Re-enable KeywordEditorControllerTest.
These tests pass now, looks like they got fixed.
BUG=139165


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@170331 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-30 01:35:13 +00:00
michaelbai@chromium.org 3080520f1d Fixed TopSitesTest.Blacklisting issue for Android
BUG=146857

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@170218 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-29 17:33:33 +00:00
ppi@chromium.org 59848d952d Fix URLFetcherDownloadProgressTest to work with remote test server
The URLFetcherDownloadProgressTest assumes that the file being
downloaded is present on the machine runing the tests. This is
not true on Android, where a remote server is used instead.

Access to the file before starting the download is not necessary
to verify the consistency of data reported in download progress
callbacks, which is the aim of the test.

The patch checks if the total download size reported in the
callback remains constant, consistently with the way in which
download progress already is being verified.

BUG=161242

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@170206 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-29 16:59:41 +00:00
yfriedman@chromium.org e09108e943 Make repeated running of instrumentation tests faster.
Running proguard is slow as mollases. Don't do it unless needed.
This could actually improve bot time a bit as we break out the different
sizes to run tests with.


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@169723 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-27 20:30:13 +00:00
tfarina@chromium.org 031871c523 base/prefs: Break the dependency in chrome_paths.h
BUG=155525
TEST=unit_tests --gtest_filter=JsonPrefStoreTest*
R=joi@chromium.org


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@169701 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-27 19:09:17 +00:00
pliard@chromium.org 54e0576113 Fix CrossProcessNotificationMultiProcessTest.Basic on Android.
On Android the ashmem API is used to deal with shared memory. This API doesn't
provide any way to open a memory region created by another process for security
reasons. The only way to share memory on Android is to share the underlying
file descriptor between processes.
This can be accomplished by:
- Creating a new shared memory region in a process. Note that this region can
  be anonymous (i.e. the string provided to ashmem_create_region() can be
  empty).
- Forking and keeping open both in the parent and child processes the file
  descriptor corresponding to the previously created memory region.
- Doing an mmap() in both processes (nothing special here).

The unit test was deadlocking (stuck in the while loop in the child process)
since the call to CreateNamed() wasn't opening the existing shared memory
region (created by the parent process) but was actually creating a new shared
memory region.
This means that the two processes were actually seeing different memory
regions.

Since this also works on POSIX platforms, the unit test was modified to follow
this strategy on all POSIX systems (including Android). On Windows the old
strategy (using non-anonymous shared memory) is still used.

BUG=136720


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@169662 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-27 15:47:17 +00:00
pliard@chromium.org f221468601 Fix ProcessUtilTest.FDRemapping on Android.
This provides a simple implementation of file descriptors remapping on Android.

BUG=136720


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@169652 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-27 13:44:52 +00:00
marja@chromium.org 948b0c0a96 Fix histogram printing for Telemetry tests.
The previous version was printing out only the first histogram.

BUG=

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

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@169631 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-27 10:48:45 +00:00
ilevy@chromium.org 525defe232 Android tests: Always run PrintStepResultIfNeeded
- DispatchInstrumentationTests was throwing an exception
  so python was not printing step failure.

R=Yaron
NOTRY=true


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@169555 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-27 01:58:09 +00:00
yfriedman@chromium.org 9b03adc7ac Add empty default for test_data flag.
This fixes the issue where some test suites don't have additional data to push.

NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@169551 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-27 01:17:13 +00:00
dfalcantara@chromium.org 38bc52aec2 Revert 169327 - Fix histogram printing for Telemetry tests.
This appears to break Chrome for Android perf tests, in addition to
the kraken benchmark upstream.

-------------------
Log output:
Traceback (most recent call last):
  File "clank/build/run_crossbrowser_perftests.py", line 1429, in <module>
    sys.exit(main(sys.argv))

  File "clank/build/run_crossbrowser_perftests.py", line 1416, in main
    passed &= chrome_benchmarks.Run()

  File "/usr/local/google/b/build/slave/soju-official-perf-noflash-clankium/build/src/clank/build/../../build/android/pylib/base_test_runner.py", line 79, in Run
    return self.RunTests()

  File "clank/build/run_crossbrowser_perftests.py", line 329, in RunTests
    return self.RunCrossBrowserPerfTests(options.filter, options.force_disabled)

  File "clank/build/run_crossbrowser_perftests.py", line 379, in RunCrossBrowserPerfTests
    passed &= bool(RunTheTest())

  File "clank/build/run_crossbrowser_perftests.py", line 368, in RunTheTest
    return test_fn()

  File "clank/build/run_crossbrowser_perftests.py", line 1222, in PaintBlankBenchmark
    timeout)

  File "clank/build/run_crossbrowser_perftests.py", line 426, in RunPaintBenchmarkHelper
    timeout=timeout))

  File "/usr/local/google/b/build/slave/soju-official-perf-noflash-clankium/build/src/clank/build/perf_test_runner.py", line 629, in RunPerfTest
    result, units, result_type=result_type)

  File "/usr/local/google/b/build/slave/soju-official-perf-noflash-clankium/build/src/clank/build/../../build/android/pylib/perf_tests_helper.py", line 127, in PrintPerfResult
    output += '\nAvg %s: %f%s' % (measurement, avg, units)

  TypeError: float argument required, not str

-------------------
Original commit:
The previous version was printing out only the first histogram.

BUG=

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

TBR=marja@chromium.org
Review URL: https://codereview.chromium.org/11418165

git-svn-id: http://src.chromium.org/svn/trunk/src/build@169510 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-26 22:30:42 +00:00
pliard@chromium.org e29d41125c Use the new forwarder2's Daemon implementation in device_forwarder.
This lets device_forwarder be controlled (started and killed) like
host_forwarder (see r167167).

This has the main benefit of moving the setup/tear down complexity from the
Python Forwarder wrapper code to the forwarder itself so that various clients
(including WebKit) can use forwarder2 more easily (e.g. no need to use pexpect
anymore (which is not available in WebKit)).

This implied a refactoring in the Daemon class so that its clients don't have
to duplicate the socket-related code.


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@169334 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-23 12:39:34 +00:00
marja@chromium.org d96ee93a74 Fix histogram printing for Telemetry tests.
The previous version was printing out only the first histogram.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@169327 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-23 10:36:19 +00:00
aberent@chromium.org 06b2a01f02 Specify the test files to be used as an argument to the instrumentation tests
This allows different test sets to use different test data, and in particular
allows new test sets, needing new data files, to be written without
modifying the core test system.

BUG=162395


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@169306 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-22 20:44:20 +00:00
peter@chromium.org 57b938cfa2 Failing webkit_unit_tests or TestWebKitAPI shouldn't block running layout tests
BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@169084 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-21 19:15:46 +00:00
torne@chromium.org 4482faab95 Android: fix cpu_features for WebView build.
The WebView build doesn't have third_party/android_tools/ndk with the
added gyp file, but the cpufeatures code has already been built as part
of the system. Introduce a .gypi that can be included to get the
appropriate dependency for the current build type.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@169026 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-21 12:37:39 +00:00
michaelbai@chromium.org c754399054 Fix TemplateURLFetcherTest.* for Android.
BUG=139427


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@169001 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-21 07:35:42 +00:00
nileshagrawal@chromium.org 3d25d9d7bd Android:Enable some tests in ui_unittests
BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168975 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-21 04:20:47 +00:00
nileshagrawal@chromium.org 46be1083af Android:Enable some unit_tests which are passing now
BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168962 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-21 04:02:50 +00:00
tonyg@chromium.org 6c7a9bed52 Install ContentShell.apk on android perf bot tester.
BUG=None
TEST=Manual on linux

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168877 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-20 20:57:51 +00:00
bulach@chromium.org b4b2f9f175 Android: fixes after r168792.
Removes obsolete reference since the package has moved.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168819 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-20 17:18:05 +00:00
mkosiba@chromium.org 267ff261c5 [android_webview] Enable navigation interception for iframes.
This enables navigation interception for navigations in iframes.
The feature is limited to iframes that do not have a http(s) source.

BUG=None


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168811 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-20 16:40:25 +00:00
ppi@chromium.org ecdf5af33f Fix and enable the PAC fetcher NoCache test on Android
The NoCache test for the PAC fetcher verifies that an attempt to
fetch a PAC script fails once the server is killed, thus assuring
that PAC files are not cached.

Due to the device-server / port forwarding layout of running 
gtests on Android, the specific error being returned by the 
fetch attempt is "Connection reset by peer" rather than 
"Connection refused". This patch takes this into consideration.

BUG=161763

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168805 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-20 15:16:06 +00:00
newt@chromium.org 9f88f3be34 Add Java resources to content and chrome.
This adds Java resources directly to the content and chrome folders and starts
accessing them through the Java classes org.chromium.content.R and
org.chromium.chrome.R instead of using AppResource.

A following CL will remove these resources from ContentShell and other build
targets that currently provide duplicates of these resources.  The following CL
will also remove remaining references to AppResource.

This is the second of three CLs to replace AppResource with R:
1. http://codereview.chromium.org/11363150 - Support Java resources within content
2. http://codereview.chromium.org/11360207 - Add Java resources to content and chrome
3. http://codereview.chromium.org/11377117 - Remove AppResource and unneeded resources

BUG=136704

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168759 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-20 08:26:29 +00:00
aelias@chromium.org 3080df6769 Fixes for nonmodal pinch zoom.
In Android 4.2, pinch gestures send both pinch events (for the
zoom-in/out part of the pinch) and scroll events (for double-finger
panning).  The previous logic in LayerTreeHostImpl created a pan from
the pinch event, resulting in 2x overpanning on Android 4.2.

In order to have compatible gesture generation in older Android versions as
well, I copy-pasted the latest Android GestureDetector.java file into the
Chromium tree and use that instead of the system file.

BUG=161909

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168721 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-20 04:11:57 +00:00
newt@chromium.org d82a0d737e Enable Android APKs to be build with R.java in a custom package.
BUG=158558


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168704 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-20 02:17:23 +00:00
michaelbai@chromium.org 3f9857272d Fix the ChromePaths.UserCacheDir for Android
BUG=139431


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168693 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-20 01:56:39 +00:00
yfriedman@chromium.org 57a4a7168e Move ContentShell and ChromiumTestShell instrumentation tests to main waterfall.
These are non-flaky and we have sufficient capacity.

NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168652 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-20 00:19:23 +00:00
torne@chromium.org 0fdc2664d8 Android WebView: allow for multiple target architectures.
The WebView will eventually need to be built for multiple target
architectures. Prepare for this by passing --suffix .arm to gyp when
generating the makefiles, and including an architecture-specific
makefile at the top level. Also, remove the hardcoding of arm as the
target architecture in envsetup.sh.

The previous change I made to .gitignore to only ignore *.host.mk and
*.target.mk instead of *.mk has been reverted in favour of just
specifically un-ignoring files called Android.mk (which are
handwritten).

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168506 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-19 11:09:26 +00:00
ilevy@chromium.org 24dd778429 Add android chromium.perf top level scripts
BUG=159643
R=cmp
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168362 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-17 03:11:22 +00:00
newt@chromium.org 986e331cb8 Support Java resources within content.
This provides support for android-style resource folders in content and other
non-apk Java targets. The AppResource hack can then be removed shortly.

Details: while building a non-apk target (e.g. chromium_content.jar), we
generate an R.java file with non-final constants and in the appropriate Java
package (e.g. org.chromium.content.R) using the resources in the target (e.g.
content/public/android/java/res). This R.java is used to produce the jar, but is
not included in the jar itself.

When we later build an apk, we merge the resources from the apk (e.g.
org/chromium/content_shell/res) with the resources from the non-apk targets it
depends on (e.g. content/public/android/java/res). A new R.java is generated
using the merged resources with the correct mapping from resources to integer
IDs. This R.java file is copied into each needed package (e.g.
org.chromium.content.R and org.chromium.content_shell.R) and included in the
apk.

This is the first of three CLs to replace AppResource with R:
1. http://codereview.chromium.org/11363150 - Support Java resources within content
2. http://codereview.chromium.org/11360207 - Add Java resources to content and chrome
3. http://codereview.chromium.org/11377117 - Remove AppResource and unneeded resources

BUG=136704

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168283 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-16 20:39:20 +00:00
jknotten@chromium.org bb03599d93 Fix findbugs uncalled private method in WebContentsDelegateAndroid
This findbugs warning seems to be related to the overloading of the
name onLoadProgressChanged. As discussed in earlier codereview
https://codereview.chromium.org/11365199/ , it is a good idea
to have the methods differently named anyway, since they have
different purposes.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168189 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-16 11:54:39 +00:00
mek@chromium.org 4566026917 Add a class to replace ImageLoadingTracker with a nicer API.
This adds a new extensions::ImageLoader class, which mostly serves the same purpose as ImageLoadingTracker, but with some differences. It currently doesn't do any caching, and it uses callbacks instead of a delegate to pass the loaded image back to the caller. This should make this new class much nicer to use.
Also ported some ILT usage to the new ImageLoader class.

BUG=141673


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168155 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-16 07:40:47 +00:00
cjhopman@chromium.org e75eedd6de Specify jar name for apks in java_apk.gypi
Previously, we had to keep this name in sync in multiple places, the
"fake" xxx_java target and in sdk-targets.xml. Instead, it should be set
only in java_apk.gypi and then passed along to each of the places that
we were specifying it before.

Also, delete unused 'output' block and unneeded xxx_java dependencies.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168148 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-16 07:31:49 +00:00
bulach@chromium.org 6b4e9713c8 Android: fixes FYI builder.
Following https://chromiumcodereview.appspot.com/11312239/, fixes the out
directory location.

BUG=
TEST=android fyi bots

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168015 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-15 20:40:36 +00:00
digit@chromium.org b780475045 android: Print error when trying to build on 32-bit host.
This patch changes build/android/envsetup.sh to detect that the user
is running on a 32-bit host system, and print an error message
in this case, since a full build will fail (linker runs out of memory,
because the generated files are too large).

This can be overriden with the new --try-32 flag, in case someone
really wants to try a build. This would only be useful if one
needs to rebuild a "small" target, not do a complete build.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@168009 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-15 20:34:29 +00:00
peter@chromium.org 845b0d71a4 Modify the Android test running scripts so they can be used from WebKit
In order to avoid duplicating most of the run-tests-on-devices logic, make
sure that the Android scripts are able to be usable from a WebKit checkout.
Two flags have been added for this: --webkit, which is necessary as a file's
path on the host and device are not per se equal anymore, and --out-directory,
accepting a path as it's not always in the Chromium source directory.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@167999 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-15 19:57:16 +00:00
skyostil@chromium.org 8d07804078 Remove temporary shim for ContentViewCore.updateVSync
Review URL: https://chromiumcodereview.appspot.com/11366175

git-svn-id: http://src.chromium.org/svn/trunk/src/build@167859 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-15 04:44:04 +00:00
nyquist@chromium.org 0e337943da Add support for generating jars from protos and add cacheinvalidation_java.
The cacheinvalidation_java target is also added to build/all_android.gyp to
ensure it is always built since nothing currently depends on it upstream.
When all of Android-specific sync code is upstreamed, a target for sync
should be used instead of cacheinvalidation.

BUG=158382

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@167746 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-14 21:20:47 +00:00
jknotten@chromium.org 225294444a Move WebContentsDelegateAndroid to content/components
1. Move chrome/browser/component/web_contents_delegate_android to
   content/components/web_contents_delegate_android.
2. Rename package org.chromium.chrome.browser.component.
   web_contents_delegate_android to org.chromium.content.components.
   web_contents_delegate_android.
3. Remove shouldOverrideUrlLoading from WebContentsDelegateAndroid
   interface, which is no longer required.

I will follow up with a second change to completely remove
chrome/browser/component/web_contents_delegate_android once
external dependencies on it have been removed.

BUG=157575


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@167670 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-14 14:05:14 +00:00
pliard@chromium.org b874de851a Enable 307 net unit tests on Android.
This is possible since r167167 landed.

BUG=146979


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@167653 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-14 11:38:55 +00:00
iannucci@chromium.org 693c711ddb Selective build clobbering feature (landmines.py and android build scripts).
Adds the ability for devs/troopers/etc. to set 'landmines' in the tree so that
the build will selectively clobber when a builder moves over a revision with such
a change.

This cl has an basis landmines.py, and hooks the clobber mechanism to the android
build scripts.

The relevant cl which implements this for
compile.py is here: https://chromiumcodereview.appspot.com/11234013/

I'm planning to also implement an informational invocation for gclient to let devs know
about any potential landmines so they can decide if they need to clobber.

This previously attempted to land as: https://chromiumcodereview.appspot.com/11175016

R=ilevy@chromium.org,maruel@chromium.org
BUG=121897


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@167595 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-14 04:59:48 +00:00
nyquist@chromium.org 64562a877b Check in protobuf java code and generate lite jar.
Since we only need the lite version of protobuf, we generate a jar file based
on includes in the maven pom.xml file for the lite profile.

BUG=158382

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@167557 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-14 01:23:40 +00:00
nileshagrawal@chromium.org 9f390c6bf0 Android: Warning on license check fail.
LIcense check is failing too frequenly, we should put it on the main builder/CQ.
Making the step failure a warning for now (it should not block tests).

BUG=160741

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@167469 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-13 21:17:29 +00:00
frankf@chromium.org 74afc98e0e Should recursively make screenshot out dir.
This is only used for testing on Android.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@167259 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-12 23:23:16 +00:00
pliard@chromium.org 70b2f71b84 Support HTTP test-server based net unit tests on Android.
This changes forwarder2 to support both test-server spawner and HTTP server
forwarding.

The main issue was that the device_forwarder was killed when instantiating a
second Forwarder (Python object).
Test server based unit tests require two device-to-host redirections, one for
the test server spawner and one for the HTTP server.
The port used by the HTTP server is allocated dynamically which means that we
can't know the full forwarding configuration before we spawn a HTTP server
(through the test server spawner).

This CL changes the forwarder to let it forward new ports while it is running
by making host_forwarder a daemon. This is similar to how ADB works.

This also means that a single host_forwarder process (daemon) can now handle
multiple devices.

BUG=146979


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@167167 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-12 12:46:37 +00:00
aruslan@chromium.org df84b527b1 Replace VSyncMonitor with compositor's VSyncPulseMonitor.
Differences:
- Constructor doesn't require View.
- The listener callback is called at most MAX_VSYNC_COUNT times.
- VSYNC_TIMEOUT is not used and Terminator is not created.
- Minimal timer-based ICS support is added, but see http://crbug.com/156397.

BUG=160017

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@167095 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-10 19:07:10 +00:00
jknotten@chromium.org e00a15b016 Move navigation interception component to content/components
1. Move C++ source from chrome/browser/component/navigation_interception
   to content/components/navigation_interception.
2. Change the namespace from navigation_interception:: to content::
3. Change Java package from org.chromium.chrome.browser.components.
   navigation_interception to org.chromium.content.components.
   navigation_interception.

I will follow up with another patch to completely remove
chrome/browser/component/navigation_interception once external
dependencies have been updated to use the component at its new
component

BUG=157575

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166883 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-09 10:06:13 +00:00
ilevy@chromium.org aea3e288d8 Fix findbugs failure on Release buildtype.
Also cleaning up steps a bit.

R=yfriedman@chromium.org

NOTRY=True


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166791 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-08 22:52:28 +00:00
ilevy@chromium.org 446837e802 Add android findbugs to main builder / main trybot
- this will stick these tests on CQ. But I will try to rewrite
  them as a presubmit test next week.

NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166752 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-08 20:59:03 +00:00
pliard@chromium.org 191521e795 Upstream recent downstream changes in envsetup.sh.
A superset of this change was needed to fix a bug downstream. Note that the bug
doesn't exist upstream since it was caused by a piece of code not upstreamed.

Therefore the only purpose of this change is to decrease the upstream vs
downstream diff.


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166699 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-08 18:11:02 +00:00
pliard@chromium.org 8cbdbb400f Fix findbugs_diff in ContentVideoView.java.
Findbugs was emitting:
M P SIC: Should org.chromium.content.browser.ContentVideoView$FullScreenMediaController be a _static_ inner class?  At ContentVideoView.java

NOTRY=true
TEST=findbugs_diff.py


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166675 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-08 14:30:52 +00:00
jknotten@chromium.org ef38b69c93 Fix Findbugs Warnings
TestWebServer moved from Android WebView to net.test in
https://chromiumcodereview.appspot.com/11366108 , but the
findbugs file was not correctly updated.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166668 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-08 12:45:06 +00:00
cramya@chromium.org a36930902a Disabling failing/crash webkit_unit_tests
BUG=159935


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166665 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-08 12:21:18 +00:00
mkosiba@chromium.org 8a9a13e51a Add android_webview_unittests to the FYI android bot.
This makes the android FYI test runners run android_webview
native unittests.

BUG=None


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166663 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-08 12:17:18 +00:00
nileshagrawal@chromium.org 3bb3dae148 Android: Fix invocations of TestResult.LogFull
Also remove the tests_to_run output from summay if we do not have the list of tests.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166602 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-08 04:39:09 +00:00
peter@chromium.org c7cb0e1d3f Export the build type as part of Android's build bot baseline setup
The WebKit tester builds in release mode, which we need to tell the run_tests.py
script about. Otherwise it'll assume a debug build, causing it to be unable to
find the webkit_unit_tests and TestWebKitAPI APKs.

BUG=136774

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166519 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-07 21:12:05 +00:00
jknotten@chromium.org aecc5cdb78 Move Android WebView Test WebServer to net.
Move Android WebView Test WebServer to net so that other test code can
make use of it.

BUG=159601


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166493 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-07 19:40:41 +00:00
peter@chromium.org aaf54ef3a5 Fix running WebKit layout tests by not indenting a continuation.
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166440 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-07 15:44:55 +00:00
cjhopman@chromium.org aff218abd9 Remove unneeded symbolic link to libraries.
The stack annotation tool has been changed to work with Chrome output
directory structure and so we no longer need to create the artificial
structure in out/android.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166423 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-07 15:08:01 +00:00
peter@chromium.org 8869e2b098 Teach the WebKit bots how to run layout tests, TestWebKitAPI and webkit_unit_tests for Android
This will enable them to run the suites themselves. Having more detailed error
messages and uploading the created results will be implemented after this.

BUG=136774

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166417 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-07 13:53:14 +00:00
eugenis@chromium.org 7eaafcbdc6 Support running Android apk-based tests under ASan.
BUG=137569
Review URL: https://codereview.chromium.org/11361125

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166394 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-07 12:14:16 +00:00
tedchoc@chromium.org feb3978829 Fix adb_run_content_shell to correctly pass URL.
Also fixes testshell to support launching with a URL and triggering
new intents (and fixes it's adb_run_chromium_testshell.

BUG=159602


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166357 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-07 04:53:26 +00:00
frankf@chromium.org 7e62b5f5df Add TakeScreenshot command to android_commands.
Also, take screenshots using /system/bin/screencap instead of monkeyrunner.

BUG=158851

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166273 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-06 21:44:58 +00:00
bulach@chromium.org 581d3136c6 Android: fixes instrumentation tests call to LogFull.
Following:
https://chromiumcodereview.appspot.com/11363088
add an extra empty parameter.

BUG=
TEST=instrumentation tests on android


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166208 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-06 14:34:48 +00:00
torne@chromium.org bb85c64ec5 Android: fix webview build.
TARGET_ARCH doesn't get set in the webview path through envsetup;
hardcode it to ARM for now. This will be revisited once envsetup has
been tidied up to make this less complicated.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166198 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-06 12:46:17 +00:00
bulach@chromium.org 983e2624ca Android: uses an object rather than the Boolean for synchronizing LibraryLoad.
BUG=159173


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166193 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-06 12:33:51 +00:00
pkotwicz@chromium.org bff60ca8cf Cleanup resource_bundle_unittest
BUG=None
Test=ResourceBundleTest.*

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166134 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-06 03:53:18 +00:00
nileshagrawal@chromium.org b360e14245 Android: Report step failure when tests time out.
Currently when tests time out, we retry them but still mark the step as
a warning, which does not cause a step failure.

We should report a failure when tests time out. Also adding more stats
on how many tests we were supposed to run and how many we failed to run.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166132 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-06 03:45:53 +00:00
vandebo@chromium.org db864e9b52 Revert 166085 - Selective build clobbering feature (landmines.py and android build scripts).
It looks like this made win extract_build fail.

Adds the ability for devs/troopers/etc. to set 'landmines' in the tree so that
the build will selectively clobber when a builder moves over a revision with such
a change.

This cl has an basis landmines.py, and hooks the clobber mechanism to the android
build scripts. 

The relevant cl which implements this for
compile.py is here: https://chromiumcodereview.appspot.com/11234013/

I'm planning to also implement an informational invocation for gclient to let devs know
about any potential landmines so they can decide if they need to clobber.

R=cmp,maruel@chromium.org
BUG=121897

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

TBR=iannucci@chromium.org
Review URL: https://codereview.chromium.org/11293111

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166105 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-06 01:53:24 +00:00
iannucci@chromium.org 378a534dbb Selective build clobbering feature (landmines.py and android build scripts).
Adds the ability for devs/troopers/etc. to set 'landmines' in the tree so that
the build will selectively clobber when a builder moves over a revision with such
a change.

This cl has an basis landmines.py, and hooks the clobber mechanism to the android
build scripts. 

The relevant cl which implements this for
compile.py is here: https://chromiumcodereview.appspot.com/11234013/

I'm planning to also implement an informational invocation for gclient to let devs know
about any potential landmines so they can decide if they need to clobber.

R=cmp,maruel@chromium.org
BUG=121897

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166085 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-06 00:13:27 +00:00
nileshagrawal@chromium.org 150fbdb816 Android: Fix finbugs step on experimental bots.
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@166079 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-06 00:05:56 +00:00
bulach@chromium.org 13689003bf Android: improves test sharding reliability.
Originally test sharding for android was written with performance in mind
(i.e., to scale up the test speed per device).
Now that we're on the main waterfall, we need to improve reliability as
devices may randomly drop offline during tests.
This patch captures exceptions in key places and retries if there are enough
devices available.

BUG=153718
TEST=run android tests, randomly unplugging devices


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@165918 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-05 11:49:15 +00:00
michaelbai@chromium.org 51b11c3559 Run findbugs and findbugs-plugin test on clang bot.
- Also rebaseline the known bugs.

BUG=156116


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@165848 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-03 07:10:30 +00:00
nileshagrawal@chromium.org 7252b31adc Android: Fix test runner retry mode
Currently, whenever the test runner script retries a test suite,
it goes in fast_and_loose mode and never comes out of it.
This causes the test script to not push test data for any other test suite.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@165789 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-02 22:58:53 +00:00
ilevy@chromium.org 2e7b043b6d Android: Disable WebContentsVideoCaptureDeviceTest
Disable WebContentsVideoCaptureDeviceTest.*

These are timing out on android phones.  Unfortunately our
test runners did not go red for this timeout.  We are fixing
the test runner issue separately.

BUG=159234
TEST=Verify correct number of content_unittest tests passed

R=nileshagrawal@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@165764 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-02 22:11:55 +00:00
kaiwang@chromium.org ec31d07ffe Disable DeathTests inside unit_tests for android
BUG=155883
TBR=sievers@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@165763 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-02 22:03:06 +00:00
bulach@chromium.org a093bd53df Android: makes "apk_package" optional in adb_install_apk.py
We can derive the package name from the mandatory apk.

BUG=
TEST=adb_install_apk.py --apk ContentShell.apk


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@165450 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-01 18:55:26 +00:00
aberent@chromium.org 60f22f06c5 Add a class for management of thermal throttling
The new class allows detection of whether the device is now, or has been, thermally throttled, hence allowing rejection of performance results affected by thermal throttling.

BUG=158575


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@165367 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-01 13:44:43 +00:00
pauljensen@chromium.org 9fd231c3fb Account for server vs host clock skew in cookie expiration times.
When setting a cookie's expiration time in the cookie store we need
to take into account any difference between the HTTP server and the
host machine's real time clock.  This reverts 159685 which reverted 146616.

BUG=135131
TEST=net_unittests --gtest_filter=CookieMonster/CookieStoreTest/0.TestCookieDeletion

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@165323 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-11-01 10:29:16 +00:00
ilevy@chromium.org 0953d74fb4 Remove obsolete android buildbot scripts
- These scripts were moved to buildbot subdirectory.  Deleting
  the placeholders that were in place until buildbot masters
  could be restarted.

R=cmp
NOTRY=True


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@165251 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-31 23:10:53 +00:00
frankf@chromium.org 8457e74561 Add an option for disabling java assertions.
BUG=153837

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@165212 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-31 19:30:52 +00:00
yfriedman@chromium.org 323a4e8249 Pass target architecture to build/android/envsetup.sh
TARGET_PRODUCT and other parameters generated by lunch command is not
necessary any more since the build got switched to being based on
SDK/NDK. This CL lets the target architecture be passed from envsetup.sh.
Currently two arch's values are accepted: arm(default), x86.

TEST=Built successfully with both target architecture values - arm and x86
    using following commands:
    . build/android/envsetup.sh  -> arm
    . build/android/envsetup.sh -t arm -> arm
    . build/android/envsetup.sh -t x86 -> x86
    Other commands tested:
    . build/android/envsetup.sh -h -> prints help
    . build/android/envsetup.sh -t bogus -> prints help and stops

BUG=

Review URL: https://codereview.chromium.org/11260008
Patch from Jinsuk Kim <jinsukkim@google.com>.

git-svn-id: http://src.chromium.org/svn/trunk/src/build@165185 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-31 17:25:20 +00:00
marja@chromium.org 2921891021 Chrome remote control multi-page tests: Enable printing out histograms.
BUG=158323

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@165132 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-31 09:25:47 +00:00
michaelbai@google.com dc5d885643 The findbugs_diff and lib.
- findbugs_diff.py analyzes the org.chrome.* classes by calling findbug.py.

- findbugs.py is python lib, it calls the FindBugs by different configration.
  The caller could configure the classes to analyze, filter, known_bugs,
  whether rebaseline etc.

BUG=156116

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@165024 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-30 22:00:05 +00:00
frankf@chromium.org 6e13a4b587 Restart app before running monkey test.
Also remove dependency on env variables during import of apk_info.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@165022 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-30 21:51:15 +00:00
shashishekhar@chromium.org e53aeb0290 Move webkit_compositor_bindings_unittests from experimental step to Android waterfall.
webkit_compositor_bindings_unittests are quite stable and have been running
on experimental bots.
Move them to Android main builder so that we can catch any breaks.

BUG=152702


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@164952 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-30 18:44:01 +00:00
mnaganov@chromium.org 1d42dec2d7 Add build/android scripts for Chromium TestShell
This is to match existing scripts for Content Shell.

There seem to be inconsistency in usages of 'testshell' vs. 'test_shell'. Since the build target is called 'chromium_testshell', and the package is called 'org.chromium.chrome.testshell', I'm leaning towards using this spelling.

R=digit@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@164808 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-30 01:07:38 +00:00
jcivelli@chromium.org e68c1f0147 Adding a new method to python tests on Android.
BUG=None
TEST=None


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@164741 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-29 21:35:03 +00:00
frankf@chromium.org 82cbdf8f7f Make --test-apk option mandatory.
BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@164405 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-26 21:09:59 +00:00
shashishekhar@chromium.org 8fb3f4d036 Move cc_unittests from experimental step to Android waterfall.
cc_unittests are quite stable and have been running on experimental bots.
Move them to Android main builder so that we can catch any breaks.

BUG=152702


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@164285 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-26 07:37:00 +00:00
aberent@chromium.org 95e5e463d2 Upstream remaining differences in android/build python files
Re-enable unit tests in single_test_runner (these are no longer flaky)
Allow stack trace, since we now admit we are doing an Android version of Chrome
Add keep_test_server_ports option to instrumentation tests.

BUG=136980


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@164117 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-25 18:43:25 +00:00
shouqun.liu@intel.com eedd42baa2 Fix the failed cases in URLFetcherFileTest on Android.
* Push the needed data files to target device.
* Set the correct document root.

BUG=
TEST=net_unittests --gtest_filter=URLFetcherFileTest.*


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@164061 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-25 13:17:28 +00:00
shashishekhar@chromium.org aec3d9d218 Compile webkit_compositor_bindings_unittests on Android.
Compile webkit_compositor_bindings_unittests on Android and add
them to android experimental step.

BUG=152702


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@164015 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-25 04:58:59 +00:00
yongsheng.zhu@intel.com 0632bc0c07 Retry tests on other bots if the device is unresponsive/offline
Currently this works for offline devices when trying to access files
on devices or emulators.
Use DeviceUnresponsiveError to indicate the device is offline.

BUG=153718
TESTS=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@164013 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-25 04:46:22 +00:00
tonyg@chromium.org 17dd849f0b Wrap "import pexpect" in a try-expect.
This allows it to work on Windows. Example of failure:
http://build.chromium.org/p/chromium.perf/builders/Win7%20GPU%20%28ATI%29%20Perf/builds/5665/steps/scrolling_benchmark/logs/stdio

BUG=154343
TEST=None

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@163845 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-24 16:42:55 +00:00
skaslev@chromium.org 771d6f68ad Moved SkCanvasVideoRenderer to media/filters.
SkCanvasVideoRenderer will be used for rendering YUV video streams by
the software compositor. To avoid circular dependencies cc/ cannot depend
on webkit/ hence the move.

Also changed the interface of SkCanvasVideoRenderer::Paint to accept
gfx::RectF instead of gfx::Rect. The gfx::Rect was converted to a
floating point SkRect anyway and we actually use the floating point
version from the software compositor.


BUG=150016


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@163829 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-24 15:13:22 +00:00
bulach@chromium.org 03fe9f16fc Android: upstream latest changes for build/android.
- add instrumentation test options for printing buildbot failures;
- allow test_apk option to point to a fully qualified path;

BUG=136980
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@163810 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-24 11:18:31 +00:00
ilevy@chromium.org 5ea95a311b Fix pexpect import in android_commands.py
The "from pylib" import assumed cwd was build/android,
which is not always the case.

BUG=154343
TBR=bulach
NOTRY=True

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@163783 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-24 06:22:09 +00:00
tonyg@chromium.org ee33208c46 Move pexpect try-except to pexpect wrapper file.
BUG=None
TEST=None

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@163565 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-23 15:52:14 +00:00
shashishekhar@chromium.org 605c9783ae Remove redundant command line option.
--sdk option is no longer used or needed.

BUG=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@163456 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-23 00:29:14 +00:00
tonyg@chromium.org 1a551e8510 In android_commands.py, surround pexpect import in try-except.
This allows Chrome Remote Control to import this file on platforms like Windows
where pexpect is not available. This works because it never calls the methods
that actually use pexpect.

Example failure:
http://build.chromium.org/p/chromium.perf/builders/Win7%20GPU%20%28Nvidia%29%20Perf/builds/5757/steps/scrolling_benchmark/logs/stdio

BUG=154343
TEST=Manual

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@163395 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-22 21:58:45 +00:00
bulach@chromium.org 33a8691734 Android: start upstreaming some of our perf tests.
- fix some "forwarder" issues on chrome_remote_control.
- adds a "platform" interface to crc so that tests can grab stats from
the platform, where possible.
- integrates "surface stats collector" with scrolling tests.

BUG=155678,11187036,138479
TEST=./tools/perf/run_tests --browser=android-chrome testScrolling

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@163361 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-22 20:21:49 +00:00
dfalcantara@chromium.org 53b7b9213c [Android] Move command line flag file
Move the command line flag file from /data/local/tmp to /data/local

BUG=143146


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@163102 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-20 00:05:35 +00:00
bulach@chromium.org 9a6c02436f Android: upstream flakiness dashboard support for instrumentation tests.
BUG=136980
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@163008 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-19 16:55:43 +00:00
michaelbai@chromium.org 94ff9c9d27 Removed CXX_target for Android
Don't rely on compiler_version.py, we pass in the gcc_version for Android

Also revert the previous compiler_version.py change.

BUG=143889


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@162808 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-18 22:08:06 +00:00