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

Issue 9834037: apk-based test runner work. Not enabled yet. This CL is a combination of upstreaming, ndk/ant-ifi… (Closed)

Created:
8 years, 9 months ago by John Grabowski
Modified:
8 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, brettw-cc_chromium.org, navabi1, Peter Beverloo, Ted C, Jay Civelli
Visibility:
Public.

Description

apk-based test runner work. Not enabled yet. This CL is a combination of upstreaming, ndk/ant-ification, and other tweaks. BUG=None TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128679

Patch Set 1 #

Total comments: 33

Patch Set 2 : apply feedback #

Patch Set 3 : one more line tweak #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+487 lines, -12 lines) Patch
M base/base.gyp View 2 chunks +2 lines, -1 line 1 comment Download
A base/test/android/AndroidManifest.xml View 1 1 chunk +43 lines, -0 lines 4 comments Download
A base/test/android/OWNERS View 1 chunk +2 lines, -0 lines 0 comments Download
A base/test/android/java/org/chromium/ChromeNativeTestActivity.java View 1 chunk +47 lines, -0 lines 3 comments Download
A base/test/android/native_test.gyp View 1 1 chunk +40 lines, -0 lines 2 comments Download
A base/test/android/native_test_apk.xml View 1 1 chunk +37 lines, -0 lines 1 comment Download
A base/test/android/native_test_launcher.cc View 1 1 chunk +190 lines, -0 lines 0 comments Download
M build/all_android.gyp View 1 chunk +9 lines, -2 lines 0 comments Download
M build/android/envsetup.sh View 1 chunk +5 lines, -2 lines 0 comments Download
M build/android/run_tests.py View 1 chunk +2 lines, -1 line 0 comments Download
M build/android/single_test_runner.py View 2 chunks +10 lines, -1 line 0 comments Download
M build/android/test_package.py View 1 chunk +1 line, -0 lines 0 comments Download
A build/android/test_package_apk.py View 1 2 1 chunk +89 lines, -0 lines 0 comments Download
M build/common.gypi View 2 chunks +8 lines, -3 lines 0 comments Download
M build/install-build-deps-android.sh View 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc.gyp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
John Grabowski
jam: for ipc.gyp change (OWNERS) mark: for base.gyp change (OWNERS) bulach: for everything else. Not ...
8 years, 9 months ago (2012-03-23 01:33:45 UTC) #1
bulach
lgtm thanks john! a few nits below, looking forward to have these tests up and ...
8 years, 9 months ago (2012-03-23 10:30:48 UTC) #2
Peter Beverloo
+tedchoc and jcivelli, also some nits. http://chromiumcodereview.appspot.com/9834037/diff/1/base/test/android/AndroidManifest.xml File base/test/android/AndroidManifest.xml (right): http://chromiumcodereview.appspot.com/9834037/diff/1/base/test/android/AndroidManifest.xml#newcode8 base/test/android/AndroidManifest.xml:8: <uses-sdk android:minSdkVersion="8" /> ...
8 years, 9 months ago (2012-03-23 11:15:12 UTC) #3
Mark Mentovai
LGTM. I only reviewed base.gyp and native_test.gyp. http://chromiumcodereview.appspot.com/9834037/diff/1/base/test/android/native_test.gyp File base/test/android/native_test.gyp (right): http://chromiumcodereview.appspot.com/9834037/diff/1/base/test/android/native_test.gyp#newcode7 base/test/android/native_test.gyp:7: ['OS=="android"', { ...
8 years, 9 months ago (2012-03-23 15:00:16 UTC) #4
jam
ipc lgtm
8 years, 9 months ago (2012-03-23 17:17:51 UTC) #5
John Grabowski
Thx for feedback http://chromiumcodereview.appspot.com/9834037/diff/1/base/base.gyp File base/base.gyp (right): http://chromiumcodereview.appspot.com/9834037/diff/1/base/base.gyp#newcode12 base/base.gyp:12: 'test/android/native_test.gyp' On 2012/03/23 10:30:48, bulach wrote: ...
8 years, 9 months ago (2012-03-24 01:59:18 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrg@chromium.org/9834037/4003
8 years, 9 months ago (2012-03-24 01:59:41 UTC) #7
commit-bot: I haz the power
Change committed as 128679
8 years, 9 months ago (2012-03-24 03:57:38 UTC) #8
Satish
Some drive-by comments.. http://codereview.chromium.org/9834037/diff/4003/base/base.gyp File base/base.gyp (right): http://codereview.chromium.org/9834037/diff/4003/base/base.gyp#newcode12 base/base.gyp:12: 'test/android/native_test.gyp' should this file have a ...
8 years, 9 months ago (2012-03-27 13:53:24 UTC) #9
klobag.chromium
8 years, 9 months ago (2012-03-28 00:28:56 UTC) #10
Drive by review.

http://codereview.chromium.org/9834037/diff/4003/base/test/android/AndroidMan...
File base/test/android/AndroidManifest.xml (right):

http://codereview.chromium.org/9834037/diff/4003/base/test/android/AndroidMan...
base/test/android/AndroidManifest.xml:1: <?xml version="1.0" encoding="utf-8"?>
Need copyright.

http://codereview.chromium.org/9834037/diff/4003/base/test/android/AndroidMan...
base/test/android/AndroidManifest.xml:3: package="org.chromium.native_test"
should this be org.chromium.base.native_test? In Android, package name is
unique. So we can't run base unittest together with net unittest.

http://codereview.chromium.org/9834037/diff/4003/base/test/android/AndroidMan...
base/test/android/AndroidManifest.xml:27: <uses-permission
android:name="android.permission.VIBRATE"/>
Why we need VIBRATE for the base unit test?

Should we review all this permissions?

http://codereview.chromium.org/9834037/diff/4003/base/test/android/java/org/c...
File base/test/android/java/org/chromium/ChromeNativeTestActivity.java (right):

http://codereview.chromium.org/9834037/diff/4003/base/test/android/java/org/c...
base/test/android/java/org/chromium/ChromeNativeTestActivity.java:5: package
org.chromium.native_test;
On 2012/03/27 13:53:24, Satish wrote:
> should this file be under a 'org/chromium/native_test' directory instead of
> 'org/chromium'?

For future proof where we may add resources, we should put it under
base/test/android/java/src/org/chromium/native_test.

http://codereview.chromium.org/9834037/diff/4003/base/test/android/native_tes...
File base/test/android/native_test.gyp (right):

http://codereview.chromium.org/9834037/diff/4003/base/test/android/native_tes...
base/test/android/native_test.gyp:19: 'native_test_launcher.cc'
Should we put native and Java in separate target?

http://codereview.chromium.org/9834037/diff/4003/base/test/android/native_tes...
base/test/android/native_test.gyp:26:
'<(PRODUCT_DIR)/ChromeNativeTests-debug.apk',
Why we have to call "-debug"?

http://codereview.chromium.org/9834037/diff/4003/base/test/android/native_tes...
File base/test/android/native_test_apk.xml (right):

http://codereview.chromium.org/9834037/diff/4003/base/test/android/native_tes...
base/test/android/native_test_apk.xml:1: <?xml version="1.0" encoding="UTF-8"?>
copyright?

Powered by Google App Engine
This is Rietveld 408576698