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

Issue 17076008: content_shell: Move BrowserTestSystemMessageHandler and use it in layout tests for Android (Closed)

Created:
7 years, 6 months ago by Peter Beverloo
Modified:
7 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, jochen+watch_chromium.org, DaleCurtis
Visibility:
Public.

Description

content_shell: Move BrowserTestSystemMessageHandler and use it in layout tests for Android Android needs to use a nested message loop in order to execute the layout tests. We have an implementation of this for content_browsertests as BrowserTestSystemMessageHandler, but this lives in /content/test/ which content_shell cannot depend on. Move it to /content/public/test/ as NestedSystemMessageHandler and update content_browsertests to depend on that instead. For content_shell, implement support of starting the nested loop, and use it when running layout tests. BUG=232044 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207215

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -372 lines) Patch
M content/content_shell.gypi View 2 chunks +1 line, -1 line 0 comments Download
M content/content_tests.gypi View 1 2 5 chunks +24 lines, -2 lines 0 comments Download
A + content/public/test/android/javatests/src/org/chromium/content/browser/test/NestedSystemMessageHandler.java View 1 3 chunks +5 lines, -5 lines 0 comments Download
A + content/public/test/nested_message_pump_android.h View 1 4 chunks +9 lines, -9 lines 0 comments Download
A + content/public/test/nested_message_pump_android.cc View 1 9 chunks +13 lines, -13 lines 0 comments Download
M content/shell/android/browsertests_apk/content_browser_tests_android.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
D content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/BrowserTestSystemMessageHandler.java View 1 chunk +0 lines, -128 lines 0 comments Download
M content/shell/shell_browser_main.cc View 1 4 chunks +30 lines, -2 lines 0 comments Download
D content/test/browser_test_message_pump_android.h View 1 chunk +0 lines, -44 lines 0 comments Download
D content/test/browser_test_message_pump_android.cc View 1 chunk +0 lines, -164 lines 0 comments Download
M content/test/content_test_launcher.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Peter Beverloo
+jochen for content +bulach for Android/general feedback
7 years, 6 months ago (2013-06-17 14:50:29 UTC) #1
nilesh
https://codereview.chromium.org/17076008/diff/1/content/public/test/browser_test_message_pump_android.h File content/public/test/browser_test_message_pump_android.h (right): https://codereview.chromium.org/17076008/diff/1/content/public/test/browser_test_message_pump_android.h#newcode14 content/public/test/browser_test_message_pump_android.h:14: // MessgePump to be used for content browsertests on ...
7 years, 6 months ago (2013-06-17 17:37:27 UTC) #2
bulach
lgtm, but please make nilesh and bots happy :) small suggestions below: https://codereview.chromium.org/17076008/diff/1/content/public/test/android/javatests/src/org/chromium/content/browser/test/BrowserTestSystemMessageHandler.java File content/public/test/android/javatests/src/org/chromium/content/browser/test/BrowserTestSystemMessageHandler.java ...
7 years, 6 months ago (2013-06-17 17:41:22 UTC) #3
Peter Beverloo
content_shell: Move BrowserTestSystemMessageHandler and use it in layout tests for Android Android needs to use ...
7 years, 6 months ago (2013-06-17 18:36:29 UTC) #4
Peter Beverloo
Thank you for the quick looks! I addressed your comments, please take another look Nilesh. ...
7 years, 6 months ago (2013-06-17 18:41:56 UTC) #5
nilesh
On 2013/06/17 18:41:56, Peter Beverloo wrote: > Thank you for the quick looks! I addressed ...
7 years, 6 months ago (2013-06-17 20:31:14 UTC) #6
Peter Beverloo
On 2013/06/17 20:31:14, nilesh wrote: > lgtm, Please make sure you run content_browsertests (using android_fyi_dbg ...
7 years, 6 months ago (2013-06-18 10:44:04 UTC) #7
jochen (gone - plz use gerrit)
lgtm
7 years, 6 months ago (2013-06-18 10:46:24 UTC) #8
Peter Beverloo
Cheers for the reviews! android_fyi_dbg_triggered_tests is now happy, so putting this on the queue again. ...
7 years, 6 months ago (2013-06-18 15:56:55 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peter@chromium.org/17076008/45001
7 years, 6 months ago (2013-06-18 15:57:17 UTC) #10
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=9972
7 years, 6 months ago (2013-06-18 16:08:00 UTC) #11
Peter Beverloo
+phajdan for content/test and content/public/test OWNERS.
7 years, 6 months ago (2013-06-18 16:18:34 UTC) #12
Paweł Hajdan Jr.
It's not obvious to me why you're moving things to content/public - it looks like ...
7 years, 6 months ago (2013-06-18 16:48:50 UTC) #13
Peter Beverloo
content/shell/ uses it, which may only depend on /content/public/test/ (thus not /content/test/). See the dependency ...
7 years, 6 months ago (2013-06-18 16:52:44 UTC) #14
Paweł Hajdan Jr.
On 2013/06/18 16:52:44, Peter Beverloo wrote: > content/shell/ uses it, which may only depend on ...
7 years, 6 months ago (2013-06-18 17:39:36 UTC) #15
jam
lgtm
7 years, 6 months ago (2013-06-18 17:58:59 UTC) #16
Paweł Hajdan Jr.
Just in case, LGTM .
7 years, 6 months ago (2013-06-18 18:13:36 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peter@chromium.org/17076008/45001
7 years, 6 months ago (2013-06-18 23:40:36 UTC) #18
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=165493
7 years, 6 months ago (2013-06-19 02:47:05 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peter@chromium.org/17076008/45001
7 years, 6 months ago (2013-06-19 10:40:58 UTC) #20
commit-bot: I haz the power
7 years, 6 months ago (2013-06-19 12:01:44 UTC) #21
Message was sent while issue was closed.
Change committed as 207215

Powered by Google App Engine
This is Rietveld 408576698