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

Issue 2785883004: Add missing TaskScheduler on tests using RendereWidgetHostImpl (Closed)

Created:
3 years, 8 months ago by tzik
Modified:
3 years, 8 months ago
Reviewers:
kinuko, gab
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add missing TaskScheduler on tests using RendereWidgetHostImpl RenderWidgetHostImpl constructor requires an instance of TaskScheduler on Windows. Its absence causes DCHECK failure or null ptr access failure only on Windows, which is hard to find for non-windows devs. This CL adds a DCHECK to detect it on non-Windows build, so that we notice the failure earlier, and also fixes the failure detected by the DCHECK. BUG=696919 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2785883004 Cr-Commit-Position: refs/heads/master@{#461134} Committed: https://chromium.googlesource.com/chromium/src/+/5d6c4a51e01d9f6d37e24b1964bb482421808b73

Patch Set 1 #

Patch Set 2 : Merge branch 'task_scheduler_instance' into rwh_dcheck #

Patch Set 3 : merge the other CL into this #

Patch Set 4 : mac fix #

Patch Set 5 : another mac fix #

Patch Set 6 : mac compile fix #

Patch Set 7 : mac test fix #

Patch Set 8 : +comment #

Patch Set 9 : yet another mac fix #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -8 lines) Patch
M content/browser/frame_host/render_widget_host_view_child_frame_unittest.cc View 1 2 3 chunks +6 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_editcommand_helper_unittest.mm View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -6 lines 1 comment Download
M content/browser/renderer_host/text_input_client_mac_unittest.mm View 1 2 3 4 5 6 7 4 chunks +17 lines, -1 line 1 comment Download

Messages

Total messages: 48 (35 generated)
tzik
PTAL
3 years, 8 months ago (2017-03-31 04:15:12 UTC) #5
kinuko
Looks like some tests are failing on DCHECK?
3 years, 8 months ago (2017-03-31 04:41:54 UTC) #8
tzik
On 2017/03/31 04:41:54, kinuko wrote: > Looks like some tests are failing on DCHECK? Updated ...
3 years, 8 months ago (2017-03-31 04:51:31 UTC) #14
kinuko
lgtm if it goes green
3 years, 8 months ago (2017-03-31 05:22:29 UTC) #17
tzik
kinuko: I updated text_input_client_mac_unittest.mm for a test fix. Could you take another look to it?
3 years, 8 months ago (2017-03-31 11:22:48 UTC) #29
kinuko
One test's still failing for PS7, is that fixed?
3 years, 8 months ago (2017-03-31 11:37:17 UTC) #30
tzik
On 2017/03/31 11:37:17, kinuko wrote: > One test's still failing for PS7, is that fixed? ...
3 years, 8 months ago (2017-03-31 11:49:52 UTC) #31
tzik
On 2017/03/31 11:37:17, kinuko wrote: > One test's still failing for PS7, is that fixed? ...
3 years, 8 months ago (2017-03-31 12:03:16 UTC) #36
tzik
On 2017/03/31 12:03:16, tzik wrote: > On 2017/03/31 11:37:17, kinuko wrote: > > One test's ...
3 years, 8 months ago (2017-03-31 13:42:55 UTC) #39
kinuko
still lgtm https://codereview.chromium.org/2785883004/diff/160001/content/browser/renderer_host/text_input_client_mac_unittest.mm File content/browser/renderer_host/text_input_client_mac_unittest.mm (right): https://codereview.chromium.org/2785883004/diff/160001/content/browser/renderer_host/text_input_client_mac_unittest.mm#newcode65 content/browser/renderer_host/text_input_client_mac_unittest.mm:65: // deletes the MRPH before scheduled MRPH ...
3 years, 8 months ago (2017-03-31 14:26:55 UTC) #41
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/2785883004/160001
3 years, 8 months ago (2017-03-31 15:21:57 UTC) #43
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://chromium.googlesource.com/chromium/src/+/5d6c4a51e01d9f6d37e24b1964bb482421808b73
3 years, 8 months ago (2017-03-31 15:54:42 UTC) #46
gab
3 years, 8 months ago (2017-03-31 18:06:59 UTC) #48
Message was sent while issue was closed.
drive-by comment about ScopedTaskScheduler :)

https://codereview.chromium.org/2785883004/diff/160001/content/browser/render...
File
content/browser/renderer_host/render_widget_host_view_mac_editcommand_helper_unittest.mm
(right):

https://codereview.chromium.org/2785883004/diff/160001/content/browser/render...
content/browser/renderer_host/render_widget_host_view_mac_editcommand_helper_unittest.mm:136:
base::test::ScopedTaskScheduler task_scheduler(&message_loop);
I think you can merge the two lines above (ScopedTaskScheduler comes with an
implicit MessageLoop if not handed one and no callers below use |message_loop|
explicitly.

PS: Yeah, I know, this is kind of a mess... Aimed to be solved by
https://docs.google.com/document/d/1QabRo8c7D9LsYY3cEcaPQbOCLo8Tu-6VLykYXyl3P...

Powered by Google App Engine
This is Rietveld 408576698