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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
Index: third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp b/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
index edea235b937a22d5c9119c91caa9838e015cc475..3cb162d8c0975c4bb114382e3785af81f4c3da99 100644
--- a/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
@@ -337,7 +337,7 @@ TEST_F(WebPluginContainerTest, CopyInsertKeyboardEventsTest)
modifierKey = static_cast<PlatformEvent::Modifiers>(PlatformEvent::MetaKey | PlatformEvent::NumLockOn | PlatformEvent::IsLeft);
#endif
PlatformKeyboardEvent platformKeyboardEventC(PlatformEvent::RawKeyDown, "", "", "67", "", "", 67, 0, false, modifierKey, 0.0);
- RefPtrWillBeRawPtr<KeyboardEvent> keyEventC = KeyboardEvent::create(platformKeyboardEventC, 0);
+ RawPtr<KeyboardEvent> keyEventC = KeyboardEvent::create(platformKeyboardEventC, 0);
toWebPluginContainerImpl(pluginContainerOneElement.pluginContainer())->handleEvent(keyEventC.get());
EXPECT_EQ(WebString("x"), Platform::current()->clipboard()->readPlainText(WebClipboard::Buffer()));
@@ -346,7 +346,7 @@ TEST_F(WebPluginContainerTest, CopyInsertKeyboardEventsTest)
EXPECT_EQ(WebString(""), Platform::current()->clipboard()->readPlainText(WebClipboard::Buffer()));
PlatformKeyboardEvent platformKeyboardEventInsert(PlatformEvent::RawKeyDown, "", "", "45", "", "", 45, 0, false, modifierKey, 0.0);
- RefPtrWillBeRawPtr<KeyboardEvent> keyEventInsert = KeyboardEvent::create(platformKeyboardEventInsert, 0);
+ RawPtr<KeyboardEvent> keyEventInsert = KeyboardEvent::create(platformKeyboardEventInsert, 0);
toWebPluginContainerImpl(pluginContainerOneElement.pluginContainer())->handleEvent(keyEventInsert.get());
EXPECT_EQ(WebString("x"), Platform::current()->clipboard()->readPlainText(WebClipboard::Buffer()));
}
@@ -427,7 +427,7 @@ TEST_F(WebPluginContainerTest, IsRectTopmostTest)
webView->updateAllLifecyclePhases();
runPendingTasks();
- RefPtrWillBeRawPtr<WebPluginContainerImpl> pluginContainerImpl =
+ RawPtr<WebPluginContainerImpl> pluginContainerImpl =
toWebPluginContainerImpl(getWebPluginContainer(webView, WebString::fromUTF8("translated-plugin")));
pluginContainerImpl->setFrameRect(IntRect(0, 0, 300, 300));
@@ -464,7 +464,7 @@ TEST_F(WebPluginContainerTest, ClippedRectsForIframedElement)
runPendingTasks();
WebElement pluginElement = webView->mainFrame()->firstChild()->document().getElementById("translated-plugin");
- RefPtrWillBeRawPtr<WebPluginContainerImpl> pluginContainerImpl = toWebPluginContainerImpl(pluginElement.pluginContainer());
+ RawPtr<WebPluginContainerImpl> pluginContainerImpl = toWebPluginContainerImpl(pluginElement.pluginContainer());
ASSERT(pluginContainerImpl.get());
pluginContainerImpl->setFrameRect(IntRect(0, 0, 300, 300));
@@ -494,7 +494,7 @@ TEST_F(WebPluginContainerTest, ClippedRectsForSubpixelPositionedPlugin)
runPendingTasks();
WebElement pluginElement = webView->mainFrame()->document().getElementById("subpixel-positioned-plugin");
- RefPtrWillBeRawPtr<WebPluginContainerImpl> pluginContainerImpl = toWebPluginContainerImpl(pluginElement.pluginContainer());
+ RawPtr<WebPluginContainerImpl> pluginContainerImpl = toWebPluginContainerImpl(pluginElement.pluginContainer());
ASSERT(pluginContainerImpl.get());
@@ -545,7 +545,7 @@ TEST_F(WebPluginContainerTest, TopmostAfterDetachTest)
webView->updateAllLifecyclePhases();
runPendingTasks();
- RefPtrWillBeRawPtr<WebPluginContainerImpl> pluginContainerImpl =
+ RawPtr<WebPluginContainerImpl> pluginContainerImpl =
toWebPluginContainerImpl(getWebPluginContainer(webView, WebString::fromUTF8("translated-plugin")));
pluginContainerImpl->setFrameRect(IntRect(0, 0, 300, 300));
@@ -617,7 +617,7 @@ TEST_F(WebPluginContainerTest, CompositedPluginSPv2)
WebPluginContainerImpl* container = static_cast<WebPluginContainerImpl*>(getWebPluginContainer(webView, WebString::fromUTF8("plugin")));
ASSERT_TRUE(container);
- RefPtrWillBeRawPtr<Element> element = static_cast<PassRefPtrWillBeRawPtr<Element>>(container->element());
+ RawPtr<Element> element = static_cast<RawPtr<Element>>(container->element());
const auto* plugin = static_cast<const CompositedPlugin*>(container->plugin());
OwnPtr<PaintController> paintController = PaintController::create();

Powered by Google App Engine
This is Rietveld 408576698