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

Issue 27518013: Fix content_browsertests on Android. (Closed)

Created:
7 years, 2 months ago by wjia(left Chromium)
Modified:
7 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, erikwright+watch_chromium.org, sadrul, darin-cc_chromium.org
Visibility:
Public.

Description

Fix content_browsertests on Android. The content_browsertests on Android exit before IO thread is joined. Some tasks on IO thread needs to access GetContentClient() which has been reset by ContentShellTestSuiteInitializer::OnTestEnd when test is terminated. To keep closer to production code, this patch tries to not reset ContentClient on Android when test is ended. BUG=181069 R=jam@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=235761

Patch Set 1 #

Total comments: 1

Patch Set 2 : only join threads #

Patch Set 3 : fix variable name #

Patch Set 4 : #

Patch Set 5 : change shutdown sequence of in_process_gpu_thread #

Patch Set 6 : fix un-used variable error #

Patch Set 7 : fix typo #

Patch Set 8 : change to not resetting ContentClient #

Total comments: 1

Patch Set 9 : add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M content/test/content_test_launcher.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
wjia(left Chromium)
7 years, 2 months ago (2013-10-18 01:46:47 UTC) #1
Yaron
+jam who reviewed the CL +kristianm who recently modified this for android https://codereview.chromium.org/27518013/diff/1/content/public/test/browser_test_base.cc File content/public/test/browser_test_base.cc ...
7 years, 2 months ago (2013-10-18 23:03:16 UTC) #2
wjia(left Chromium)
Please hold on review. I am looking into the crash in content_browsertests.
7 years, 2 months ago (2013-10-20 03:16:29 UTC) #3
Kristian Monsen
I think in general tests do not use the java message loop as it does ...
7 years, 2 months ago (2013-10-21 19:58:49 UTC) #4
wjia(left Chromium)
The patch is now ready for review. PTAL.
7 years, 1 month ago (2013-11-01 17:54:26 UTC) #5
jam
+Nilesh who brought up content_browsertests on Android. I don't understand why this is needed. I ...
7 years, 1 month ago (2013-11-06 21:33:52 UTC) #6
wjia(left Chromium)
On 2013/11/06 21:33:52, jam wrote: > +Nilesh who brought up content_browsertests on Android. > > ...
7 years, 1 month ago (2013-11-06 23:37:52 UTC) #7
nilesh
On 2013/11/06 23:37:52, wjia wrote: > On 2013/11/06 21:33:52, jam wrote: > > +Nilesh who ...
7 years, 1 month ago (2013-11-12 00:35:16 UTC) #8
jam
On 2013/11/12 00:35:16, nilesh wrote: > On 2013/11/06 23:37:52, wjia wrote: > > On 2013/11/06 ...
7 years, 1 month ago (2013-11-15 08:25:21 UTC) #9
wjia(left Chromium)
PTAL. Now the patch will not reset ContentClient in ContentShellTestSuiteInitializer::OnTestEnd on Android. This should be ...
7 years, 1 month ago (2013-11-17 17:10:09 UTC) #10
jam
lgtm, thanks https://codereview.chromium.org/27518013/diff/619001/content/test/content_test_launcher.cc File content/test/content_test_launcher.cc (right): https://codereview.chromium.org/27518013/diff/619001/content/test/content_test_launcher.cc#newcode47 content/test/content_test_launcher.cc:47: #if !defined(OS_ANDROID) nit: please add a comment ...
7 years, 1 month ago (2013-11-18 05:41:10 UTC) #11
wjia(left Chromium)
7 years, 1 month ago (2013-11-18 18:13:24 UTC) #12
Message was sent while issue was closed.
Committed patchset #9 manually as r235761 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698