Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Issue 10918113: Add initial Chromium TestShell support for Android (Closed)

Created:
8 years, 3 months ago by David Trainor- moved to gerrit
Modified:
8 years, 3 months ago
Reviewers:
sky, Torne, jam, Ted C, Yaron, shashi
CC:
chromium-reviews, Leandro Gracia Gil
Visibility:
Public.

Description

Add initial Chromium TestShell support for Android Add a build target and tie it into android_all. This will build and link Chrome code for a test apk for Android. When it runs it properly loads the library but crashes. Will fix the crashes in subsequent patches, but can fork that work after this is in. BUG=136786 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155950

Patch Set 1 #

Patch Set 2 : Cleaned up some of the code. #

Total comments: 18

Patch Set 3 : Address Yaron's Comments #

Total comments: 8

Patch Set 4 : Address nits and comments (ant, cc files) #

Total comments: 1

Patch Set 5 : Add comment for RegisterApplicationNativeMethods #

Total comments: 24

Patch Set 6 : Yaron and Ted nits #

Patch Set 7 : Remove commented out lines. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+691 lines, -10 lines) Patch
M build/all_android.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A chrome/android/testshell/DEPS View 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/android/testshell/chrome_main_delegate_testshell_android.h View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/android/testshell/chrome_main_delegate_testshell_android.cc View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/android/testshell/java/AndroidManifest.xml View 1 2 3 4 5 1 chunk +61 lines, -0 lines 0 comments Download
A chrome/android/testshell/java/chromium_testshell_apk.xml View 1 2 3 1 chunk +80 lines, -0 lines 0 comments Download
A chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java View 1 2 3 4 5 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellApplication.java View 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/android/testshell/testshell_entry_point.cc View 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/android/testshell/testshell_stubs.cc View 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/app/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/app/android/chrome_android_initializer.h View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/app/android/chrome_android_initializer.cc View 1 2 3 4 5 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/app/android/chrome_main_delegate_android.h View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/app/android/chrome_main_delegate_android.cc View 1 2 3 4 5 1 chunk +55 lines, -0 lines 0 comments Download
M chrome/app/chrome_main_delegate.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/chrome_main_delegate.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_android.cc View 1 2 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
A chrome/chrome_android.gypi View 1 2 3 4 5 6 1 chunk +140 lines, -0 lines 0 comments Download
A chrome/chrome_android_paks.gypi View 1 chunk +103 lines, -0 lines 0 comments Download
M chrome/common/chrome_paths_android.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
David Trainor- moved to gerrit
PTAL :)
8 years, 3 months ago (2012-09-07 20:04:47 UTC) #1
Yaron
Didn't get through it all yet. Just quick comments https://chromiumcodereview.appspot.com/10918113/diff/2001/chrome/android/testshell/chrome_main_delegate_testshell_android.cc File chrome/android/testshell/chrome_main_delegate_testshell_android.cc (right): https://chromiumcodereview.appspot.com/10918113/diff/2001/chrome/android/testshell/chrome_main_delegate_testshell_android.cc#newcode22 chrome/android/testshell/chrome_main_delegate_testshell_android.cc:22: ...
8 years, 3 months ago (2012-09-07 20:53:43 UTC) #2
Torne
Second yaron's comments, but generally looks reasonable and comparable to the stuff I've done for ...
8 years, 3 months ago (2012-09-07 22:12:55 UTC) #3
jam
which parts do you want me to look at? I'm heavily overloaded with content reviews, ...
8 years, 3 months ago (2012-09-07 22:40:26 UTC) #4
David Trainor- moved to gerrit
Yaron: Addressed your changes. That's a good point about the minSdkVersion. I'll look into it ...
8 years, 3 months ago (2012-09-10 18:09:13 UTC) #5
shashi
only looked at ant changes: lgtm https://chromiumcodereview.appspot.com/10918113/diff/23/chrome/android/testshell/java/chromium_testshell_apk.xml File chrome/android/testshell/java/chromium_testshell_apk.xml (right): https://chromiumcodereview.appspot.com/10918113/diff/23/chrome/android/testshell/java/chromium_testshell_apk.xml#newcode15 chrome/android/testshell/java/chromium_testshell_apk.xml:15: <script language="javascript"> configuration.name, ...
8 years, 3 months ago (2012-09-10 18:37:28 UTC) #6
jam
https://codereview.chromium.org/10918113/diff/23/chrome/app/chrome_main_delegate.h File chrome/app/chrome_main_delegate.h (right): https://codereview.chromium.org/10918113/diff/23/chrome/app/chrome_main_delegate.h#newcode20 chrome/app/chrome_main_delegate.h:20: protected: nit: put this before the comment
8 years, 3 months ago (2012-09-10 20:05:13 UTC) #7
David Trainor- moved to gerrit
https://codereview.chromium.org/10918113/diff/23/chrome/android/testshell/java/chromium_testshell_apk.xml File chrome/android/testshell/java/chromium_testshell_apk.xml (right): https://codereview.chromium.org/10918113/diff/23/chrome/android/testshell/java/chromium_testshell_apk.xml#newcode15 chrome/android/testshell/java/chromium_testshell_apk.xml:15: <script language="javascript"> On 2012/09/10 18:37:29, shashi wrote: > configuration.name, ...
8 years, 3 months ago (2012-09-10 21:26:16 UTC) #8
sky
LGTM https://codereview.chromium.org/10918113/diff/13001/chrome/app/android/chrome_main_delegate_android.h File chrome/app/android/chrome_main_delegate_android.h (right): https://codereview.chromium.org/10918113/diff/13001/chrome/app/android/chrome_main_delegate_android.h#newcode17 chrome/app/android/chrome_main_delegate_android.h:17: virtual bool RegisterApplicationNativeMethods(JNIEnv* env); Add a description.
8 years, 3 months ago (2012-09-10 21:26:16 UTC) #9
Yaron
lgtm Feel free to land if changes are straightforward. https://codereview.chromium.org/10918113/diff/24/chrome/android/testshell/chrome_main_delegate_testshell_android.cc File chrome/android/testshell/chrome_main_delegate_testshell_android.cc (right): https://codereview.chromium.org/10918113/diff/24/chrome/android/testshell/chrome_main_delegate_testshell_android.cc#newcode17 chrome/android/testshell/chrome_main_delegate_testshell_android.cc:17: ...
8 years, 3 months ago (2012-09-11 00:01:28 UTC) #10
Ted C
a few extra nits, but lgtm w/ yaron's changes https://chromiumcodereview.appspot.com/10918113/diff/24/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java File chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java (right): https://chromiumcodereview.appspot.com/10918113/diff/24/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java#newcode20 chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java:20: ...
8 years, 3 months ago (2012-09-11 00:10:05 UTC) #11
David Trainor- moved to gerrit
https://codereview.chromium.org/10918113/diff/24/chrome/android/testshell/chrome_main_delegate_testshell_android.cc File chrome/android/testshell/chrome_main_delegate_testshell_android.cc (right): https://codereview.chromium.org/10918113/diff/24/chrome/android/testshell/chrome_main_delegate_testshell_android.cc#newcode17 chrome/android/testshell/chrome_main_delegate_testshell_android.cc:17: // Register the generic Chrome JNI methods first. If ...
8 years, 3 months ago (2012-09-11 00:25:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtrainor@chromium.org/10918113/27
8 years, 3 months ago (2012-09-11 00:25:28 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtrainor@chromium.org/10918113/2034
8 years, 3 months ago (2012-09-11 00:34:36 UTC) #14
commit-bot: I haz the power
8 years, 3 months ago (2012-09-11 05:51:38 UTC) #15
Change committed as 155950

Powered by Google App Engine
This is Rietveld 408576698