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

Issue 10051021: apk-based test runner work for android (Closed)

Created:
8 years, 8 months ago by John Grabowski
Modified:
8 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, brettw-cc_chromium.org
Visibility:
Public.

Description

apk-based test runner work for android. 2 unit test bundles converted over (ipc, base). OFF by default; enable with a gyp var. E.g. GYP_DEFINES="$GYP_DEFINES gtest_target_type=shared_library" android_gyp Some useful commands: adb uninstall org.chromium.native_test adb install -r out/Release/base_unittests_apk/ChromeNativeTests-debug.apk adb shell am start -n org.chromium.native_test/org.chromium.native_test.ChromeNativeTestActivity For the moment, all apks can be built simultaneously but use the same activity name. Thus you cannot have more than one installed at the same time. BUG=None TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133053

Patch Set 1 #

Patch Set 2 : #

Total comments: 51

Patch Set 3 : #

Total comments: 16

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+976 lines, -32 lines) Patch
M base/android/java/base.xml View 1 2 3 4 3 chunks +17 lines, -7 lines 0 comments Download
M base/android/jni_android.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M base/base.gyp View 1 2 3 4 3 chunks +55 lines, -1 line 0 comments Download
M build/all_android.gyp View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M build/android/buildbot_functions.sh View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
M build/android/buildbot_fyi.sh View 1 1 chunk +0 lines, -2 lines 0 comments Download
M build/android/buildbot_try_compile_test.sh View 1 chunk +1 line, -0 lines 0 comments Download
M build/android/envsetup.sh View 1 1 chunk +7 lines, -2 lines 0 comments Download
M build/android/run_tests.py View 1 2 3 4 8 chunks +28 lines, -8 lines 0 comments Download
M build/android/single_test_runner.py View 1 2 3 4 3 chunks +13 lines, -4 lines 0 comments Download
M build/android/test_package.py View 1 2 3 3 chunks +11 lines, -2 lines 0 comments Download
A build/android/test_package_apk.py View 1 2 3 1 chunk +91 lines, -0 lines 0 comments Download
M build/android/test_result.py View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M build/common.gypi View 1 2 3 4 2 chunks +9 lines, -3 lines 0 comments Download
M ipc/ipc.gyp View 1 2 3 chunks +50 lines, -1 line 0 comments Download
A media/base/android/OWNERS View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M media/base/android/java/java.gyp View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
A testing/android/AndroidManifest.xml View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
A testing/android/OWNERS View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
A testing/android/generate_native_test.py View 1 2 3 1 chunk +194 lines, -0 lines 0 comments Download
A testing/android/java/src/org/chromium/native_test/ChromeNativeTestActivity.java View 1 2 3 1 chunk +66 lines, -0 lines 0 comments Download
A testing/android/native_test.gyp View 1 2 3 1 chunk +96 lines, -0 lines 0 comments Download
A testing/android/native_test_apk.xml View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
A testing/android/native_test_launcher.cc View 1 2 1 chunk +190 lines, -0 lines 0 comments Download
A testing/android/res/values/strings.xml View 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
John Grabowski
Sending to Androiders before others. Rework of http://chromiumcodereview.appspot.com/9834037/ Lots of ideas/logic/code/mojo stolen from Marcus
8 years, 8 months ago (2012-04-12 00:09:20 UTC) #1
Yaron
So it definitely seems like you want a template for that but seems reasonable to ...
8 years, 8 months ago (2012-04-12 01:29:52 UTC) #2
bulach
nice stuff, looking forward to have this in place!! a few general suggestions below: http://codereview.chromium.org/10051021/diff/2001/base/android/java/base.xml ...
8 years, 8 months ago (2012-04-12 15:51:42 UTC) #3
John Grabowski
Feedback applied; thx http://chromiumcodereview.appspot.com/10051021/diff/2001/base/android/java/base.xml File base/android/java/base.xml (right): http://chromiumcodereview.appspot.com/10051021/diff/2001/base/android/java/base.xml#newcode15 base/android/java/base.xml:15: <property name="dest.dir" location="${PRODUCT_DIR}/base_java"/> On 2012/04/12 15:51:42, ...
8 years, 8 months ago (2012-04-13 01:11:37 UTC) #4
bulach
lgtm thanks john! this is truly exciting, looking forward to it! a few suggestions and ...
8 years, 8 months ago (2012-04-13 09:42:51 UTC) #5
Peter Beverloo
Thanks jrg! Some more nits.. http://chromiumcodereview.appspot.com/10051021/diff/8004/build/android/test_package_apk.py File build/android/test_package_apk.py (right): http://chromiumcodereview.appspot.com/10051021/diff/8004/build/android/test_package_apk.py#newcode82 build/android/test_package_apk.py:82: def StripAndCopyExecutable(self): This function ...
8 years, 8 months ago (2012-04-13 10:01:49 UTC) #6
John Grabowski
http://chromiumcodereview.appspot.com/10051021/diff/2001/testing/android/java/src/org/chromium/native_test/ChromeNativeTestActivity.java File testing/android/java/src/org/chromium/native_test/ChromeNativeTestActivity.java (right): http://chromiumcodereview.appspot.com/10051021/diff/2001/testing/android/java/src/org/chromium/native_test/ChromeNativeTestActivity.java#newcode41 testing/android/java/src/org/chromium/native_test/ChromeNativeTestActivity.java:41: // triggers nativeTestFailed(). On 2012/04/13 09:42:51, bulach wrote: > ...
8 years, 8 months ago (2012-04-13 22:51:02 UTC) #7
John Grabowski
+jam, +mark for ipc and base owners
8 years, 8 months ago (2012-04-13 22:53:01 UTC) #8
jam
ipc lgtm
8 years, 8 months ago (2012-04-15 22:19:19 UTC) #9
Mark Mentovai
LGTM
8 years, 8 months ago (2012-04-16 15:26:39 UTC) #10
bulach
lgtm thanks john, I agree with the new failure mode.. a few minor nits, feel ...
8 years, 8 months ago (2012-04-16 15:44:30 UTC) #11
Ryan Sleevi
Just a few drive-by nits that can probably be addressed as follow-ups. Just wanted to ...
8 years, 8 months ago (2012-04-17 01:02:05 UTC) #12
John Grabowski
Thx for feedback Ryan; I'll apply the changes in follow-up CLs with Yaron. http://codereview.chromium.org/10051021/diff/16001/testing/android/native_test_launcher.cc File ...
8 years, 8 months ago (2012-04-18 21:31:09 UTC) #13
John Grabowski
+ some media/OWNERS
8 years, 8 months ago (2012-04-18 21:45:37 UTC) #14
scherkus (not reviewing)
media lgtm w/ nit/question http://codereview.chromium.org/10051021/diff/29001/media/base/android/OWNERS File media/base/android/OWNERS (right): http://codereview.chromium.org/10051021/diff/29001/media/base/android/OWNERS#newcode2 media/base/android/OWNERS:2: bulach@chromium.org OCD nit: it seems ...
8 years, 8 months ago (2012-04-18 22:43:19 UTC) #15
John Grabowski
OCD accomodated (both files). Thanks guys.
8 years, 8 months ago (2012-04-19 00:36:39 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrg@chromium.org/10051021/40001
8 years, 8 months ago (2012-04-19 00:45:21 UTC) #17
commit-bot: I haz the power
Try job failure for 10051021-40001 (retry) on mac_rel for step "update". It's a second try, ...
8 years, 8 months ago (2012-04-19 02:03:26 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrg@chromium.org/10051021/40001
8 years, 8 months ago (2012-04-19 18:20:30 UTC) #19
commit-bot: I haz the power
8 years, 8 months ago (2012-04-19 21:02:12 UTC) #20
Change committed as 133053

Powered by Google App Engine
This is Rietveld 408576698