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

Issue 1676083002: Extract webkit_unit_tests from blink_web component. (Closed)

Created:
4 years, 10 months ago by jbroman
Modified:
4 years, 9 months ago
Reviewers:
haraken, pdr.
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dcheng, dglazkov+blink, Dmitry Titov, mlamouri+watch-blink_chromium.org, tasak
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extract webkit_unit_tests from blink_web component. - Make BLINK_WEB_IMPLEMENTATION a define exported by the build system, like most of the others, rather than defined in a header. - Create a WebExport.h header (similar to CoreExport.h, etc.) which can be used to export symbols from blink_web to webkit_unit_tests. - Export symbols used from unit tests that aren't yet exported. - Remove build logic to compile unit tests into blink_web component in component (shared_library) builds. - Handle MSVC C4275 issues: base classes are either exported or, if they are clearly pure-interface or pure-data, marked to suppress the warning. - Adds an explicit web -> base dependency (due to platform using base, and gyp not propagating this). This is similar to the equivalent in core. - Unexports WebRTCDataChannelHandlerClient. It's not exported from blink_web, and only happened to work before because one of the modules unit tests included the header, and that was previously linked into blink_web. This makes the blink_web component substantially smaller, as it no longer pulls in unit tests, gtest, and so on. It also unblocks removal of several hacks that existed to accommodate the previous setup. BUG=590749 Committed: https://crrev.com/401833786b54e6b043f2c9b72f97b8fa377156c3 Cr-Commit-Position: refs/heads/master@{#378954}

Patch Set 1 #

Patch Set 2 : seems to work (post-link_core_modules_separately) #

Patch Set 3 : WebExport.h #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : and does it still work if I remove the WebUnitTests hack #

Patch Set 7 : rebase, GN only #

Patch Set 8 : corresponding gyp changes #

Patch Set 9 : Fix C4275 errors (MSVC). #

Patch Set 10 : wtf/Compiler.h includes, for completeness #

Patch Set 11 : WebTestingSupport is no longer exported from blink_web #

Patch Set 12 : explicit base dependency in gyp (due to transitive dependency, similar to existing rule in core) #

Patch Set 13 : WebRTCDataChannelHandlerClient was exported from a component that did not define it #

Patch Set 14 : NON_EXPORTED_BASE for WebRTCDataChannelHandlerClient #

Patch Set 15 : move the word public, for consistency #

Total comments: 1

Patch Set 16 : revert content/ change -- it is not exported #

Patch Set 17 : Win dbg non-oilpan fix: make TextFinder non-copyable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -154 lines) Patch
M third_party/WebKit/Source/core/plugins/PluginView.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/RTCDataChannel.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/modules.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/BUILD.gn View 1 2 3 4 5 6 4 chunks +25 lines, -50 lines 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/ExternalPopupMenu.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/FindInPageCoordinates.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/LinkHighlightImpl.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/PageOverlay.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/PageWidgetDelegate.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/TextFinder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -1 line 0 comments Download
A third_party/WebKit/Source/web/WebExport.h View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameImplBase.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebInputEventConversion.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +13 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebPluginContainerImpl.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/web.gyp View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +23 lines, -41 lines 0 comments Download
M third_party/WebKit/Source/web/web.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/web_tests.gyp View 1 2 3 4 5 6 7 2 chunks +13 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/wtf/Compiler.h View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebCommon.h View 1 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/public/platform/WebRTCDataChannelHandlerClient.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebDocument.h View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/WebElement.h View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/WebHistoryItem.h View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/WebNode.h View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/WebTestingSupport.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 42 (24 generated)
jbroman
I'll probably wait a couple days to make sure the LINK_CORE_MODULES_SEPARATELY inlining has stuck before ...
4 years, 9 months ago (2016-03-01 01:38:02 UTC) #11
haraken
LGTM https://codereview.chromium.org/1676083002/diff/280001/third_party/WebKit/Source/web/ExternalPopupMenu.h File third_party/WebKit/Source/web/ExternalPopupMenu.h (right): https://codereview.chromium.org/1676083002/diff/280001/third_party/WebKit/Source/web/ExternalPopupMenu.h#newcode53 third_party/WebKit/Source/web/ExternalPopupMenu.h:53: class WEB_EXPORT ExternalPopupMenu final : WTF_NON_EXPORTED_BASE(public PopupMenu), public ...
4 years, 9 months ago (2016-03-01 02:41:06 UTC) #12
jbroman
On 2016/03/01 at 02:41:06, haraken wrote: > LGTM > > https://codereview.chromium.org/1676083002/diff/280001/third_party/WebKit/Source/web/ExternalPopupMenu.h > File third_party/WebKit/Source/web/ExternalPopupMenu.h (right): ...
4 years, 9 months ago (2016-03-01 02:50:21 UTC) #13
jbroman
+pdr for public/
4 years, 9 months ago (2016-03-01 02:50:59 UTC) #15
pdr.
On 2016/03/01 at 02:50:59, jbroman wrote: > +pdr for public/ LGTM
4 years, 9 months ago (2016-03-01 02:54:50 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1676083002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1676083002/300001
4 years, 9 months ago (2016-03-01 14:19:53 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-01 15:37:48 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1676083002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1676083002/300001
4 years, 9 months ago (2016-03-02 15:17:19 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1676083002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1676083002/300001
4 years, 9 months ago (2016-03-02 16:22:54 UTC) #26
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years, 9 months ago (2016-03-02 18:18:15 UTC) #27
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/737c4d032a36133f1045a3e399c922a948b29f85 Cr-Commit-Position: refs/heads/master@{#378773}
4 years, 9 months ago (2016-03-02 18:20:00 UTC) #29
Dmitry Titov
A revert of this CL (patchset #16 id:300001) has been created in https://codereview.chromium.org/1756343002/ by dimich@chromium.org. ...
4 years, 9 months ago (2016-03-02 22:04:46 UTC) #30
jbroman
On 2016/03/02 at 22:04:46, dimich wrote: > A revert of this CL (patchset #16 id:300001) ...
4 years, 9 months ago (2016-03-03 01:28:39 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1676083002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1676083002/320001
4 years, 9 months ago (2016-03-03 01:29:26 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/175694)
4 years, 9 months ago (2016-03-03 01:53:38 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1676083002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1676083002/320001
4 years, 9 months ago (2016-03-03 02:07:35 UTC) #39
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 9 months ago (2016-03-03 04:19:57 UTC) #40
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 04:22:09 UTC) #42
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/401833786b54e6b043f2c9b72f97b8fa377156c3
Cr-Commit-Position: refs/heads/master@{#378954}

Powered by Google App Engine
This is Rietveld 408576698