Commit Graph

527 Commits

Author SHA1 Message Date
Jim Chen
f9d5091d8f Bug 1200343 - Add native calls for pref events; r=snorp
This patch adds two native calls to PrefsHelper to avoid using
GeckoEvent for getting prefs.
2015-09-28 12:07:09 -04:00
Wes Kocher
0e4ee0396c Backed out 4 changesets (bug 1200343) for android talos failures
Backed out changeset 67dc42cbf02b (bug 1200343)
Backed out changeset b077acafcebb (bug 1200343)
Backed out changeset e115ca114601 (bug 1200343)
Backed out changeset 905e1fb54fd4 (bug 1200343)
2015-09-25 13:21:58 -07:00
Jim Chen
689ccc7670 Bug 1200343 - Add native calls for pref events; r=snorp
This patch adds two native calls to PrefsHelper to avoid using
GeckoEvent for getting prefs.
2015-09-25 15:03:34 -04:00
Nick Alexander
b8eab59285 Bug 1108782 - Part 2: Explode AAR files at configure time. r=glandium
This gets us a limited version of AAR support: we can consume static
AAR libraries, where here static does not refer to linking, but to
static assets that are fixed at build-backend time and not modified
(or produced) during the build.  This lets us pin our dependencies
(and move to Google's versioned Maven repository packages, away from
Google's unversioned ad-hoc packages).

By restricting to static AAR libraries, we avoid having to handle
truly complicated dependency trees, as changing parts of generated AAR
files require delicate rebuilding of the APKs (and internal libraries)
that depend on the AAR files.

It is possible that we will generate AARs in the tree at some time.
Right now, we don't do that, even for GeckoView: the AARs produced are
assembled as artifacts at package time and are intended for external
consumption.  We might want this for GeckoView and Fennec at some
time; we should consider using Gradle everywhere at that point.

The patch itself does the simplest possible thing (which has precedent
from Gradle and other build systems): it simply "explodes" the AAR
into the object directory and uses existing mechanisms to refer to the
exploded pieces.

AARs have both required and optional components.  Each component is
defined with an expected and required flag. If a component is expected
and not present, or not expected and is present, an error is raised.
If the component is expected and present, autoconf's ifelse() macro is
used to define the relevant AAR_* component variables.  If the
component is not expected and not present, no action is taken.  A
consuming build backend therefore can guard all AAR_* component
variables with just the top-level AAR variable.

Many AAR files have empty assets/ directories.  This patch doesn't
explode empty assets/ directories, protecting against trivial changes
to AAR files that don't impact the build.

There's a lot not to like in this approach, including:

* We need to manually reference internal AAR libs;
* I haven't separated the pinned version numbers out of configure.in.

However, it's closer to what we want than what we have!
2015-09-22 10:04:26 -07:00
Nick Alexander
19cfacbf3c Bug 1108782 - Part 1: straighten out Java classpaths. r=glandium
This commit is us getting out of our own way.  We were specifying
-classpath twice, once in $(JAVAC) and once in java-build.mk.  Only
the latter of these is active.  This a problem for ANDROID_EXTRA_JARS
-- those JARs should be on the classpath and input to $(DX) -- and
JARs that should be on the classpath but *not* input to $(DX).  This
commit removes the global flags to $(JAVAC) and adds
JAVA_{BOOT}CLASSPATH_JARS.  This required some hijinkery moving
wildcards to moz.build files, but everything seems to work.

As well as clarifying some parts of the build, part 2 uses this work
to modify the classpath.
2015-08-31 13:35:05 -07:00
Alexander Buck
555ec663c4 Bug 1168294 - Remove redundant null checks in DirCursor classes. r=mcomella 2015-06-04 12:13:00 -04:00
Geoff Brown
ea9427e2f7 Bug 1156425 - Allow Android test jobs to run for up to 90 minutes; r=RyanVM 2015-08-27 11:29:00 -06:00
Nick Alexander
ed54e3e6de Bug 1195388 - Part 1: Make ANDROID_APK_{NAME,PACKAGE} moz.build variables. r=gps
This paves the way for defining additional Android packages in
moz.build, which is a step toward moving the special
mobile/android/base/Makefile.in aapt invocations into the generic
java-build.mk framework.

The new variables are both passthru variables for now: in the future,
we'll roll them into some aggregate Android APK definition.

It's worth noting that references to the variables in Makefile.in
files are only defined after including rules.mk (and thereby
backend.mk).  This only required a few changes in the tree but it
confused me for some time.
2015-08-19 12:34:58 -07:00
Jonathan Almeida [:jonalmeida]
3b5a98f35b Bug 948591 - Intermittent testClearPrivateData | Exception caught - junit.framework.AssertionFailedError: Text string: '^Settings$' is not found! r=mcomella 2015-08-17 00:00:00 -07:00
Nick Alexander
af1552a1e9 Bug 1160563 - Part 2: Make ANDROID_ASSETS_DIRS a moz.build variable. r=gps
We have had singular ANDROID_ASSETS_DIR in Makefile.in for a while.
Fennec itself does not use the existing Makefile.in Android code, for
complicated historical reasons.

This makes the existing variable moz.build-only; generalizes the
existing variable to an ordered list; and adds the equivalent use of
the new list to the Fennec build, with a simple example asset.

This patch also updates the packager to include assets packed into the
gecko.ap_.  Without the packager change, the assets/ directory in the
ap_ gets left out of the final apk.  This whole approach is totally
non-standard but is more or less required to support our single-locale
repack scheme.
2015-08-12 11:04:03 -07:00
Sebastian Kaspari
7fee8fcb62 Bug 1186532 - Add RecyclerView library to Robocop builds. r=jonalmeida 2015-07-23 13:27:28 +02:00
Ryan VanderMeulen
078d2ab402 Merge inbound to m-c. a=merge 2015-07-17 10:26:22 -04:00
Ryan VanderMeulen
e18ef27f55 Backed out changeset 7c44c0343564 (bug 1181020) for causing intermittent testAboutPage failures. 2015-07-16 15:11:20 -04:00
Jonathan Almeida
d1667e4b19 Bug 1181020 - Update Robocop to latest version to support RecyclerView. r=mcomella
- Removed old robotium jar in replace for the newer one.
 - Newer robotium has packaging changes which were updated in all tests.
 - Updated in build.gradle and makefile.
2015-07-07 14:18:56 -07:00
Geoff Brown
9e1b74c17f Bug 1179981 - A new test harness for robocop; r=jmaher 2015-07-09 12:30:01 -06:00
Andrew Halberstadt
8cffe8fa6b Bug 1014760 - Move mozlog.structured to mozlog; Move mozlog to mozlog.unstructured, r=jgraham
Mozlog currently has two implementations. The top level package is based on the logging module and is
deprecated. The newer structured logging implementation lives in mozlog.structured. This patch swaps the
two, so the top level mozlog module contains the recommended implementation, while mozlog.unstructured
contains the old one.
2015-07-16 10:38:40 -04:00
Julien Pagès
adabf84aee Bug 1177780 - remove useless stuff in automation.py. r=jgriffin 2015-06-26 22:45:18 +02:00
Carsten "Tomcat" Book
135b0588cd merge mozilla-inbound to mozilla-central a=merge 2015-06-22 14:03:17 +02:00
Geoff Brown
2d1b56f32d Bug 1175540 - Reduce timeouts for many adb devicemanager calls; r=mcote 2015-06-21 13:58:34 -06:00
Jonathan Almeida
fabbc0c392 Bug 1161820 - Replace all back button presses with Solo.goBack in tests. r=liuche CLOSED TREE 2015-06-17 17:24:48 -07:00
Nick Alexander
ce6f8441c5 No bug - Make robocop.apk debuggable. r=me 2015-06-17 09:54:47 -07:00
Michael LoPiccolo
00e081c592 Bug 1168808 - Remove superflous call to getNextView(). r=mcomella 2015-05-29 13:24:05 -05:00
Nick Alexander
ebe9712b0b Bug 1169476 -- Implement |mach robocop --serve|. r=gbrown
This adds a flag to |mach robocop| that does everything to run a
Robocop test except launch the actual test.  Instead of launching the
test, it starts the mochi.test server and launches Fennec with a test
profile; then it sits and waits forever.

This allows regular Java IDEs (IntelliJ, but previously Eclipse) to
run Robocop tests like regular instrumentation tests, "injecting" them
into the prepared testing environment.  It's quite nice!
2015-05-29 17:18:07 -07:00
Geoff Brown
646cf49d72 Bug 1169503 - Allow sutagent to build on Android M; r=snorp 2015-05-29 14:42:59 -06:00
Sylvestre Ledru
bd88f251ce Bug 1168805 - "Useless call ".toLowerCase()" in SUTAgentAndroid.java". r=jmaher 2015-05-27 05:29:00 +02:00
Jonathan Griffin
6de678a759 Bug 1149618 - Remove SpecialPowers from Marionette, r=dburns 2015-05-18 16:36:15 -07:00
Jonathan Griffin
a68f9f6666 Backout cc15c275b1e3 (Bug 1149618) on a CLOSED TREE for suspected debug emulator bustage, a=bustage 2015-05-19 19:35:38 -07:00
Jonathan Griffin
0e5292a487 Bug 1149618 - Remove SpecialPowers from Marionette, r=dburns 2015-05-18 16:36:15 -07:00
Geoff Brown
ed56333d56 Bug 1156425 - Allow Android test jobs to run for up to 75 minutes; r=ryanvm 2015-05-04 10:32:46 -06:00
Nick Alexander
f0175e5217 Bug 938659 - Part 2: build system changes. r=mfinkle 2015-05-01 17:33:03 -07:00
Geoff Brown
866e26fd0c Bug 1160393 - Enable webrtc logging for android; r=bwc 2015-05-01 16:34:36 -06:00
Nick Alexander
7a05994247 Bug 1160030 - Use TEST_HARNESS_FILES to install Robocop ini files. r=froydnj 2015-04-30 10:13:13 -07:00
Nick Alexander
81757a73f4 Bug 1160030 - Use TEST_HARNESS_FILES to install Robocop test files. r=froydnj 2015-04-29 21:40:21 -07:00
Nick Alexander
fd76318d7c Bug 1159390 - Set sharedUserId in robocop.apk. r=gbrown 2015-04-28 11:29:18 -07:00
Geoff Brown
d864243fa2 Bug 1156422 - Improve robustness of logcat collection in checkForCrashes; r=bc 2015-04-21 16:44:42 -06:00
Bhargav Chippada
bd71b83701 Bug 1112605 - FenneNativeElement "unable to find view" error should log human-readable view id. r=Margaret Leibovic 2015-03-05 04:56:00 +01:00
Richard Newman
ae4e88a49b Bug 1077590 - Part 0: minor sanity fixes in FennecNativeDriver. r=gbrown 2015-01-11 17:18:14 -08:00
Nicholas Nethercote
7d0f2f414e Bug 1100851 - Tweak DMD to account for the fact that $DMD can now be undefined. r=glandium.
Now that defining $DMD is no longer necessary to run DMD, this patch does the
following.
- Removes all the places where we set DMD=1 (test harnesses, etc.)
- Still handles DMD=1, for backwards compatibility.
- Prints "$DMD is undefined" at DMD start-up if appropriate.
- Writes a |null| value for |dmdEnvVar| in the JSON if $DMD is undefined. Bumps
  the DMD output version number accordingly.
- Changes a bunch of the test files accordingly, including changing the mode of
  script-ignore-alloc-fns.json in order to test a case where $DMD is undefined.

--HG--
extra : rebase_source : eb1ef5722410734ce6d7658465ff6f442ee4ed49
2014-11-27 21:04:46 -08:00
Geoff Brown
7c034418cd Bug 1093137 - Log stack trace for Robocop exceptions; r=chmanchester 2014-12-01 20:37:09 -08:00
Margaret Leibovic
78a98e1976 Bug 786638 - Create basic framework for testing reading list pages. r=bnicholson,nalexander
--HG--
rename : mobile/android/base/tests/robocop_article.html => mobile/android/base/tests/reader_mode_pages/basic_article.html
2014-11-20 17:47:00 -08:00
Mark Finkle
6db4ff1240 Bug 1098456 - Increase timeout in blockForEvent (hail mary) r=gbrown 2014-11-13 16:53:48 -05:00
Nick Alexander
5357e69019 Bug 1060705 - Part 1: Expose stumbler jar to Robocop. r=garvank 2014-10-31 10:05:00 -04:00
Mark Finkle
4484ac5841 Bug 1088038 - Add some basic tests for video controls and video playback r=snorp 2014-10-23 16:31:06 -04:00
Wes Kocher
595264739e Backed out changeset c1d9f1ea81e9 (bug 1088038) for rc4 failures 2014-10-23 17:06:22 -07:00
Mark Finkle
05ab956f49 Bug 1088038 - Add some basic tests for video controls and video playback r=snorp 2014-10-23 16:31:06 -04:00
Chris Manchester
6227d2af66 Bug 1068429 - Log crashes with structured logging for those using structured logging.;r=ahal 2014-09-23 20:33:31 -04:00
Nils Ohlmeier [:drno]
999a679fe9 Bug 1049688 - Allow override of MOZ_DISABLE_NONLOCAL_CONNECTIONS. r=froydnj 2014-09-22 09:48:00 -04:00
Chris Kitching
c0119e5330 Bug 1067060: Remove redundant typecasts, add final and some override annotations. r=mcomella 2014-09-13 18:58:07 -07:00
Chris Kitching
0809969f77 Bug 1067060: Remove use of SynchronousQueue from RobocopUtils. r=mcomella 2014-09-13 19:27:15 -07:00
Nick Alexander
53b030da7e Bug 874729 - Part 1: Swallow IOErrors when pulling ANR traces. r=jmaher
On my local testing devices, |adb pull| complains about not being able
to read /data/anr/traces.txt but the command succeeds.  The subsequent
local file read produces an IOError.  This ignores that exception.
2014-09-08 16:23:10 -07:00