|
|
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}
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
|
Total messages: 16 (9 generated)
|