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

Issue 2076583002: Add WebAPK's tests in ChildProcessLauncherTest. (Closed)

Created:
4 years, 6 months ago by Xi Han
Modified:
4 years, 6 months ago
Reviewers:
pkotwicz, no sievers, Maria
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add WebAPK's tests in ChildProcessLauncherTest. Instrument tests are added in ChildProcessLauncherTest to connect to child processes in a WebAPK: - Move ChildProcessLauncherTest from //content to //chrome, because the WebAPKs instruments tests require to pre-install a WebAPK. - A refactoring is done to build a test WebAPK. This is because WebAPK needs to load its host browser's code to create a renderer, we hard code the host browser package name in the test WebAPK be the package of chrome_public_apk. BUG=609122 Committed: https://crrev.com/4b7e057321503b5f833156ee2b26ba85e0384ddd Cr-Commit-Position: refs/heads/master@{#402046}

Patch Set 1 #

Total comments: 10

Patch Set 2 : pkotwicz@'s comments. #

Patch Set 3 : Move ChildProcessLaucherTest back to content. #

Total comments: 3

Patch Set 4 : Move more functions to the helper class. #

Total comments: 3

Patch Set 5 : Move all tests to //content. #

Total comments: 2

Patch Set 6 : Use "external apk" to replace "webapk". #

Patch Set 7 : Fix test failures. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -2 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
D content/public/android/javatests/src/org/chromium/content/browser/ChildProcessLauncherTest.java View 1 2 3 4 5 6 4 chunks +79 lines, -2 lines 0 comments Download

Messages

Total messages: 51 (21 generated)
Xi Han
Hi Peter, this CL depends on CL: https://codereview.chromium.org/2049843004/ Could you please take a look? Thanks!
4 years, 6 months ago (2016-06-16 17:36:40 UTC) #7
pkotwicz
Just a few comments about the BUILD.gn file https://codereview.chromium.org/2076583002/diff/40001/chrome/android/webapk/shell_apk/BUILD.gn File chrome/android/webapk/shell_apk/BUILD.gn (right): https://codereview.chromium.org/2076583002/diff/40001/chrome/android/webapk/shell_apk/BUILD.gn#newcode28 chrome/android/webapk/shell_apk/BUILD.gn:28: "org.chromium.webapk.$webapk_manifest_package_origin.test" ...
4 years, 6 months ago (2016-06-20 19:14:43 UTC) #9
Xi Han
Hi Peter, PTAL, thanks! https://codereview.chromium.org/2076583002/diff/40001/chrome/android/webapk/shell_apk/BUILD.gn File chrome/android/webapk/shell_apk/BUILD.gn (right): https://codereview.chromium.org/2076583002/diff/40001/chrome/android/webapk/shell_apk/BUILD.gn#newcode28 chrome/android/webapk/shell_apk/BUILD.gn:28: "org.chromium.webapk.$webapk_manifest_package_origin.test" On 2016/06/20 19:14:43, pkotwicz ...
4 years, 6 months ago (2016-06-20 20:07:23 UTC) #10
pkotwicz
LGTM!
4 years, 6 months ago (2016-06-20 21:56:57 UTC) #11
Xi Han
Hi Maria, This CL depends on CL (https://codereview.chromium.org/2049843004/). Could you please take a look? Thanks!
4 years, 6 months ago (2016-06-20 22:25:55 UTC) #13
Maria
On 2016/06/20 22:25:55, Xi Han wrote: > Hi Maria, > This CL depends on CL ...
4 years, 6 months ago (2016-06-20 22:50:31 UTC) #14
Xi Han
On 2016/06/20 22:50:31, Maria wrote: > On 2016/06/20 22:25:55, Xi Han wrote: > > Hi ...
4 years, 6 months ago (2016-06-20 22:58:23 UTC) #15
Maria
Good question. I am not actually sure. Adding John here for an opinion of how ...
4 years, 6 months ago (2016-06-20 23:02:54 UTC) #16
jbudorick
On 2016/06/20 23:02:54, Maria wrote: > Good question. I am not actually sure. Adding John ...
4 years, 6 months ago (2016-06-21 10:45:21 UTC) #17
pkotwicz
It might be easier to create a test app - external_child_process_service_apk and add it to ...
4 years, 6 months ago (2016-06-21 13:04:59 UTC) #18
Xi Han
On 2016/06/21 13:04:59, pkotwicz wrote: > It might be easier to create a test app ...
4 years, 6 months ago (2016-06-21 13:41:12 UTC) #19
Xi Han
Hi Maria, I moved the ChildProcessLauncherTest back to content, and introduce subclass ChromeChildProcessLauncherTest. PTAL, thanks! ...
4 years, 6 months ago (2016-06-21 18:26:58 UTC) #23
Maria
https://codereview.chromium.org/2076583002/diff/140001/content/public/android/javatests/src/org/chromium/content/browser/ChildProcessLauncherTest.java File content/public/android/javatests/src/org/chromium/content/browser/ChildProcessLauncherTest.java (right): https://codereview.chromium.org/2076583002/diff/140001/content/public/android/javatests/src/org/chromium/content/browser/ChildProcessLauncherTest.java#newcode252 content/public/android/javatests/src/org/chromium/content/browser/ChildProcessLauncherTest.java:252: CriteriaHelper.pollInstrumentationThread( On 2016/06/21 18:26:58, Xi Han wrote: > Tests ...
4 years, 6 months ago (2016-06-21 21:32:12 UTC) #24
Xi Han
Hi Maria, the failures are resolved and more functions are moved to the helper class. ...
4 years, 6 months ago (2016-06-22 14:30:11 UTC) #27
Maria
lgtm
4 years, 6 months ago (2016-06-22 16:13:00 UTC) #28
Xi Han
Hi Daniel: as promised, we added webAPKs tests in ChildProcessLauncherTest. This CL depends on CL ...
4 years, 6 months ago (2016-06-22 16:58:52 UTC) #30
no sievers
https://codereview.chromium.org/2076583002/diff/200001/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java File content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java (right): https://codereview.chromium.org/2076583002/diff/200001/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java#newcode945 content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java:945: public static ChildProcessConnection allocateBoundConnectionForTesting(Context context, Can we maybe expose ...
4 years, 6 months ago (2016-06-23 17:20:15 UTC) #31
Xi Han
https://codereview.chromium.org/2076583002/diff/200001/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java File content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java (right): https://codereview.chromium.org/2076583002/diff/200001/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java#newcode945 content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java:945: public static ChildProcessConnection allocateBoundConnectionForTesting(Context context, On 2016/06/23 17:20:15, sievers ...
4 years, 6 months ago (2016-06-23 18:47:05 UTC) #32
no sievers
https://codereview.chromium.org/2076583002/diff/200001/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java File content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java (right): https://codereview.chromium.org/2076583002/diff/200001/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java#newcode945 content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java:945: public static ChildProcessConnection allocateBoundConnectionForTesting(Context context, On 2016/06/23 18:47:04, Xi ...
4 years, 6 months ago (2016-06-23 20:19:33 UTC) #33
Xi Han
On 2016/06/23 20:19:33, sievers wrote: > https://codereview.chromium.org/2076583002/diff/200001/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java > File > content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java > (right): > > ...
4 years, 6 months ago (2016-06-23 20:34:59 UTC) #34
no sievers
On 2016/06/23 20:34:59, Xi Han wrote: > On 2016/06/23 20:19:33, sievers wrote: > > > ...
4 years, 6 months ago (2016-06-23 22:04:32 UTC) #35
Xi Han
On 2016/06/23 22:04:32, sievers wrote: > On 2016/06/23 20:34:59, Xi Han wrote: > > On ...
4 years, 6 months ago (2016-06-23 23:02:42 UTC) #36
no sievers
On 2016/06/23 23:02:42, Xi Han wrote: > On 2016/06/23 22:04:32, sievers wrote: > > On ...
4 years, 6 months ago (2016-06-23 23:35:23 UTC) #37
Xi Han
You are right, I only want to test the logic to allocate a connection for ...
4 years, 6 months ago (2016-06-24 19:18:59 UTC) #39
Xi Han
Hi Daniel, PTAL, thanks!
4 years, 6 months ago (2016-06-24 20:00:31 UTC) #41
no sievers
lgtm https://codereview.chromium.org/2076583002/diff/240001/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java File content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java (right): https://codereview.chromium.org/2076583002/diff/240001/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java#newcode429 content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java:429: private static ChildProcessConnection allocateConnection(Context context, nit: is this ...
4 years, 6 months ago (2016-06-24 20:04:35 UTC) #42
Xi Han
Hi Daniel, I updated the tests again to fix failures after using an arbitrary package ...
4 years, 6 months ago (2016-06-24 21:21:31 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2076583002/320001
4 years, 6 months ago (2016-06-25 02:21:58 UTC) #47
commit-bot: I haz the power
Committed patchset #7 (id:320001)
4 years, 6 months ago (2016-06-25 02:56:27 UTC) #49
commit-bot: I haz the power
4 years, 6 months ago (2016-06-25 02:58:29 UTC) #51
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/4b7e057321503b5f833156ee2b26ba85e0384ddd
Cr-Commit-Position: refs/heads/master@{#402046}

Powered by Google App Engine
This is Rietveld 408576698