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

Unified Diff: third_party/WebKit/Source/web/tests/LinkSelectionTest.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/LinkSelectionTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp b/third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp
index 28a8b4bc96b18cbe894883de24b931342e59cd29..5693121f76d89dfa9c861adf961450848dc58a8e 100644
--- a/third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp
+++ b/third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp
@@ -46,7 +46,7 @@ protected:
FrameTestHelpers::WebViewHelper m_helper;
WebViewImpl* m_webView = nullptr;
- RawPtrWillBePersistent<WebLocalFrameImpl> m_mainFrame = nullptr;
+ Persistent<WebLocalFrameImpl> m_mainFrame = nullptr;
};
void LinkSelectionTestBase::emulateMouseDrag(const IntPoint& downPoint, const IntPoint& upPoint, int modifiers, DragFlags dragFlags)
@@ -200,7 +200,7 @@ TEST_F(LinkSelectionTest, SingleClickWithAltStartsDownloadWhenTextSelected)
ASSERT_NE(nullptr, textToSelect);
// Select some page text outside the link element.
- const RefPtrWillBeRawPtr<Range> rangeToSelect = Range::create(*document, textToSelect, 1, textToSelect, 20);
+ const RawPtr<Range> rangeToSelect = Range::create(*document, textToSelect, 1, textToSelect, 20);
const auto& selectionRect = rangeToSelect->boundingBox();
m_mainFrame->moveRangeSelection(selectionRect.minXMinYCorner(), selectionRect.maxXMaxYCorner());
EXPECT_FALSE(getSelectionText().isEmpty());
@@ -213,9 +213,9 @@ class LinkSelectionClickEventsTest : public LinkSelectionTestBase {
protected:
class MockEventListener final : public EventListener {
public:
- static PassRefPtrWillBeRawPtr<MockEventListener> create()
+ static RawPtr<MockEventListener> create()
{
- return adoptRefWillBeNoop(new MockEventListener());
+ return new MockEventListener();
}
bool operator==(const EventListener& other) const final
@@ -262,10 +262,10 @@ protected:
m_element->removeAllEventListeners();
}
- RawPtrWillBePersistent<Element> m_element;
+ Persistent<Element> m_element;
} const listenersCleaner(&element);
- RefPtrWillBeRawPtr<MockEventListener> eventHandler = MockEventListener::create();
+ RawPtr<MockEventListener> eventHandler = MockEventListener::create();
element.addEventListener(
doubleClickEvent ? EventTypeNames::dblclick : EventTypeNames::click,
eventHandler);
« no previous file with comments | « third_party/WebKit/Source/web/tests/KeyboardTest.cpp ('k') | third_party/WebKit/Source/web/tests/TextFinderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698