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

Issue 2165573003: Simplify tests by using Web*Impl types directly. (Closed)

Created:
4 years, 5 months ago by dcheng
Modified:
4 years, 5 months ago
Reviewers:
tkent
CC:
blink-reviews, chromium-reviews, dcheng, gavinp+prerender_chromium.org, kinuko+watch, mlamouri+watch-blink_chromium.org, Yoav Weiss
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify tests by using Web*Impl types directly. Casting between public and impl types is usually just noise in unit tests, so avoid it when possible. - Change WebViewHelper::webView() to just return WebViewImpl* - Removed WebViewHelper::webViewImpl() since it's redundant - Change FrameTestHelpers::createLocalChild() to return a WebLocalFrameImpl* - Change FrameTestHelpers::createRemoteChild() to return a WebRemoteFrameImpl* - Use WebViewImpl::mainFrameImpl() where possible to get the main frame. This should also provide an easy way to grep for how many things depend on a local main frame. BUG=none Committed: https://crrev.com/95a9b8c38be3669ad42b19ba9a29d08f4a302b34 Cr-Commit-Position: refs/heads/master@{#406506}

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+727 lines, -730 lines) Patch
M third_party/WebKit/Source/web/ExternalPopupMenuTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/PageOverlayTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.h View 1 chunk +1 line, -1 line 3 comments Download
M third_party/WebKit/Source/web/WebViewImplPaintArtifactCompositorTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/ActivityLoggerTest.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/CompositorWorkerTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/FrameSerializerTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.h View 3 chunks +4 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp View 5 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ImeOnFocusTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/MHTMLTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/PrerenderingTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/RootScrollerTest.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ScreenWakeLockTest.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/TextFinderTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/TopControlsTest.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ViewportTest.cpp View 157 chunks +164 lines, -164 lines 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebDocumentTest.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 179 chunks +443 lines, -443 lines 3 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 44 chunks +72 lines, -72 lines 0 comments Download
M third_party/WebKit/Source/web/tests/sim/SimTest.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (9 generated)
dcheng
Sorry, it's somewhat big but the changes should be straightforward.
4 years, 5 months ago (2016-07-20 04:34:31 UTC) #4
tkent
lgtm https://codereview.chromium.org/2165573003/diff/1/third_party/WebKit/Source/web/WebRemoteFrameImpl.h File third_party/WebKit/Source/web/WebRemoteFrameImpl.h (right): https://codereview.chromium.org/2165573003/diff/1/third_party/WebKit/Source/web/WebRemoteFrameImpl.h#newcode27 third_party/WebKit/Source/web/WebRemoteFrameImpl.h:27: static WebRemoteFrameImpl* create(WebTreeScopeType, WebRemoteFrameClient*, WebFrame* opener = nullptr); ...
4 years, 5 months ago (2016-07-20 04:51:01 UTC) #6
dcheng
https://codereview.chromium.org/2165573003/diff/1/third_party/WebKit/Source/web/WebRemoteFrameImpl.h File third_party/WebKit/Source/web/WebRemoteFrameImpl.h (right): https://codereview.chromium.org/2165573003/diff/1/third_party/WebKit/Source/web/WebRemoteFrameImpl.h#newcode27 third_party/WebKit/Source/web/WebRemoteFrameImpl.h:27: static WebRemoteFrameImpl* create(WebTreeScopeType, WebRemoteFrameClient*, WebFrame* opener = nullptr); On ...
4 years, 5 months ago (2016-07-20 06:18:07 UTC) #7
tkent
https://codereview.chromium.org/2165573003/diff/1/third_party/WebKit/Source/web/WebRemoteFrameImpl.h File third_party/WebKit/Source/web/WebRemoteFrameImpl.h (right): https://codereview.chromium.org/2165573003/diff/1/third_party/WebKit/Source/web/WebRemoteFrameImpl.h#newcode27 third_party/WebKit/Source/web/WebRemoteFrameImpl.h:27: static WebRemoteFrameImpl* create(WebTreeScopeType, WebRemoteFrameClient*, WebFrame* opener = nullptr); On ...
4 years, 5 months ago (2016-07-20 06:31:53 UTC) #10
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/2165573003/1
4 years, 5 months ago (2016-07-20 06:33:37 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-20 06:38:16 UTC) #14
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 06:40:29 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/95a9b8c38be3669ad42b19ba9a29d08f4a302b34
Cr-Commit-Position: refs/heads/master@{#406506}

Powered by Google App Engine
This is Rietveld 408576698