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

Unified Diff: third_party/WebKit/Source/web/tests/WebFrameTest.cpp

Issue 2837593002: Nuked WebFrameImplBase. (Closed)
Patch Set: Replaced non-null params with refs. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/web/tests/TouchActionTest.cpp ('k') | third_party/WebKit/public/web/WebFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/WebFrameTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
index 434afea696e9f4349c5db8961f8b4e4b80d0723a..93ca1129870fb5500ff71dcc211e4927a7347f50 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -8717,7 +8717,7 @@ TEST_P(ParameterizedWebFrameTest, EmbedderTriggeredDetachWithRemoteMainFrame) {
FrameTestHelpers::CreateLocalChild(view->MainFrame()->ToWebRemoteFrame());
// Purposely keep the LocalFrame alive so it's the last thing to be destroyed.
- Persistent<Frame> child_core_frame = child_frame->ToImplBase()->GetFrame();
+ Persistent<Frame> child_core_frame = WebFrame::ToCoreFrame(*child_frame);
view->Close();
child_core_frame.Clear();
}
@@ -9412,7 +9412,7 @@ TEST_F(WebFrameSwapTest, WindowOpenOnRemoteFrame) {
DOMWindow* result =
main_window->open("", "frame1", "", main_window, main_window);
EXPECT_EQ(remote_client.LastRequest().Url(), WebURL(destination));
- EXPECT_EQ(result, remote_frame->ToImplBase()->GetFrame()->DomWindow());
+ EXPECT_EQ(result, WebFrame::ToCoreFrame(*remote_frame)->DomWindow());
Reset();
}
@@ -9445,7 +9445,7 @@ TEST_F(WebFrameTest, WindowOpenRemoteClose) {
WebSecurityOrigin::CreateFromString("http://127.0.0.1"));
LocalFrame* local_frame = ToLocalFrame(
- main_web_view.WebView()->MainFrame()->ToImplBase()->GetFrame());
+ WebFrame::ToCoreFrame(*main_web_view.WebView()->MainFrame()));
RemoteFrame* remote_frame = web_remote_frame->GetFrame();
// Attempt to close the window, which should fail as it isn't opened
@@ -9942,7 +9942,7 @@ TEST_P(ParameterizedWebFrameTest, SuspendedPageLoadWithRemoteMainFrame) {
// Check that ScopedPageSuspender properly triggers deferred loading for
// the current Page.
- Page* page = remote_root->ToImplBase()->GetFrame()->GetPage();
+ Page* page = WebFrame::ToCoreFrame(*remote_root)->GetPage();
EXPECT_FALSE(page->Suspended());
{
ScopedPageSuspender suspender;
« no previous file with comments | « third_party/WebKit/Source/web/tests/TouchActionTest.cpp ('k') | third_party/WebKit/public/web/WebFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698