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

Issue 2238573002: Add WebWidgetTestProxy. (Closed)

Created:
4 years, 4 months ago by lfg
Modified:
4 years, 3 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dcheng, dglazkov+blink, jochen+watch_chromium.org, kinuko+watch, mlamouri+watch-content_chromium.org, mlamouri+watch-blink_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add WebWidgetTestProxy. This patch adds a WebWidgetTestProxy interface that is instantiated when running LayoutTests and wraps RenderWidget in order to execute test-specific code. This is a reland of https://codereview.chromium.org/2174663005/. BUG=583347 Committed: https://crrev.com/1568d113829186f7b1e7a96adbcac2b3a5818056 Cr-Commit-Position: refs/heads/master@{#415308}

Patch Set 1 #

Patch Set 2 : fix site_isolation bot #

Total comments: 5

Patch Set 3 : rebase #

Patch Set 4 : addressing comments #

Patch Set 5 : go back to using callback/lazyinstance #

Patch Set 6 : add missing files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -49 lines) Patch
M components/test_runner/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M components/test_runner/test_runner.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M components/test_runner/web_test_interfaces.h View 2 chunks +3 lines, -2 lines 0 comments Download
M components/test_runner/web_test_interfaces.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M components/test_runner/web_view_test_proxy.h View 7 chunks +5 lines, -22 lines 0 comments Download
M components/test_runner/web_view_test_proxy.cc View 2 chunks +1 line, -1 line 0 comments Download
M components/test_runner/web_widget_test_client.h View 3 chunks +8 lines, -1 line 0 comments Download
M components/test_runner/web_widget_test_client.cc View 6 chunks +11 lines, -10 lines 0 comments Download
A components/test_runner/web_widget_test_proxy.h View 5 1 chunk +114 lines, -0 lines 0 comments Download
A + components/test_runner/web_widget_test_proxy.cc View 5 1 chunk +4 lines, -3 lines 0 comments Download
M content/public/test/layouttest_support.h View 4 3 chunks +11 lines, -2 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 4 chunks +22 lines, -2 lines 0 comments Download
M content/shell/renderer/layout_test/layout_test_content_renderer_client.cc View 4 3 chunks +26 lines, -3 lines 0 comments Download
M content/test/layouttest_support.cc View 1 2 3 4 6 chunks +38 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetImpl.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewFrameWidget.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewFrameWidget.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameWidget.h View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebWidget.h View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (22 generated)
lfg
+lukasza, please take a look. PS1 is what I had landed before, and PS2 are ...
4 years, 4 months ago (2016-08-11 15:40:40 UTC) #6
Łukasz Anforowicz
Thanks - LGTM with minor nits / suggestions. https://codereview.chromium.org/2238573002/diff/40001/content/renderer/render_widget.h File content/renderer/render_widget.h (right): https://codereview.chromium.org/2238573002/diff/40001/content/renderer/render_widget.h#newcode139 content/renderer/render_widget.h:139: using ...
4 years, 4 months ago (2016-08-11 17:19:28 UTC) #7
lfg
Please, take another look. https://codereview.chromium.org/2238573002/diff/40001/content/renderer/render_widget.h File content/renderer/render_widget.h (right): https://codereview.chromium.org/2238573002/diff/40001/content/renderer/render_widget.h#newcode139 content/renderer/render_widget.h:139: using RenderWidgetCreatedCallback = void (*)(RenderWidget*); ...
4 years, 4 months ago (2016-08-11 19:49:39 UTC) #8
Łukasz Anforowicz
Still LGTM. I agree that the code using function pointers does look better and simpler ...
4 years, 4 months ago (2016-08-11 19:58:45 UTC) #9
lfg
+jochen, please take a look.
4 years, 4 months ago (2016-08-11 20:11:16 UTC) #11
lfg
+jam, please take a look (jochen@ is OOO).
4 years, 4 months ago (2016-08-11 20:16:13 UTC) #13
jam
On 2016/08/11 20:16:13, lfg wrote: > +jam, please take a look (jochen@ is OOO). What ...
4 years, 4 months ago (2016-08-11 21:24:52 UTC) #14
lfg
On 2016/08/11 21:24:52, jam wrote: > On 2016/08/11 20:16:13, lfg wrote: > > +jam, please ...
4 years, 4 months ago (2016-08-11 22:02:36 UTC) #15
jam
https://codereview.chromium.org/2238573002/diff/40001/content/test/layouttest_support.cc File content/test/layouttest_support.cc (right): https://codereview.chromium.org/2238573002/diff/40001/content/test/layouttest_support.cc#newcode120 content/test/layouttest_support.cc:120: if (!(g_widget_test_proxy_callback == 0)) { On 2016/08/11 19:49:39, lfg ...
4 years, 4 months ago (2016-08-15 20:07:44 UTC) #16
lfg
On 2016/08/15 20:07:44, jam wrote: > https://codereview.chromium.org/2238573002/diff/40001/content/test/layouttest_support.cc > File content/test/layouttest_support.cc (right): > > https://codereview.chromium.org/2238573002/diff/40001/content/test/layouttest_support.cc#newcode120 > ...
4 years, 4 months ago (2016-08-15 21:57:12 UTC) #17
lfg
On 2016/08/15 21:57:12, lfg wrote: > On 2016/08/15 20:07:44, jam wrote: > > if (!g_widget_test_proxy_callback.Get().is_null()))? ...
4 years, 4 months ago (2016-08-17 17:04:10 UTC) #30
jochen (gone - plz use gerrit)
deferring to jam@ happy to rubberstamp once he approves
4 years, 4 months ago (2016-08-23 12:54:54 UTC) #31
lfg
jam: ping
4 years, 3 months ago (2016-08-26 15:13:29 UTC) #32
jam
lgtm
4 years, 3 months ago (2016-08-29 21:20:58 UTC) #33
jochen (gone - plz use gerrit)
lgtm
4 years, 3 months ago (2016-08-30 12:13:45 UTC) #34
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/2238573002/120001
4 years, 3 months ago (2016-08-30 13:18:50 UTC) #37
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 3 months ago (2016-08-30 16:06:59 UTC) #38
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 16:10:12 UTC) #40
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/1568d113829186f7b1e7a96adbcac2b3a5818056
Cr-Commit-Position: refs/heads/master@{#415308}

Powered by Google App Engine
This is Rietveld 408576698