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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/SearchBufferTest.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/core/editing/iterators/SearchBufferTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/iterators/SearchBufferTest.cpp b/third_party/WebKit/Source/core/editing/iterators/SearchBufferTest.cpp
index 5185b6a958b06c7f37d651777c64147c6b72369f..32e482861179cdf5541139a3559e6b31803f58ae 100644
--- a/third_party/WebKit/Source/core/editing/iterators/SearchBufferTest.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/SearchBufferTest.cpp
@@ -38,12 +38,12 @@ namespace blink {
class SearchBufferTest : public EditingTestBase {
protected:
- PassRefPtrWillBeRawPtr<Range> getBodyRange() const;
+ RawPtr<Range> getBodyRange() const;
};
-PassRefPtrWillBeRawPtr<Range> SearchBufferTest::getBodyRange() const
+RawPtr<Range> SearchBufferTest::getBodyRange() const
{
- RefPtrWillBeRawPtr<Range> range(Range::create(document()));
+ RawPtr<Range> range(Range::create(document()));
range->selectNode(document().body());
return range.release();
}
@@ -52,9 +52,9 @@ TEST_F(SearchBufferTest, FindPlainTextInvalidTarget)
{
static const char* bodyContent = "<div>foo bar test</div>";
setBodyContent(bodyContent);
- RefPtrWillBeRawPtr<Range> range = getBodyRange();
+ RawPtr<Range> range = getBodyRange();
- RefPtrWillBeRawPtr<Range> expectedRange = range->cloneRange();
+ RawPtr<Range> expectedRange = range->cloneRange();
expectedRange->collapse(false);
// A lone lead surrogate (0xDA0A) example taken from fuzz-58.
@@ -78,7 +78,7 @@ TEST_F(SearchBufferTest, FindPlainTextInvalidTarget)
for (size_t i = 0; i < WTF_ARRAY_LENGTH(invalidUStrings); ++i) {
String invalidTarget(invalidUStrings[i]);
EphemeralRange foundRange = findPlainText(EphemeralRange(range.get()), invalidTarget, 0);
- RefPtrWillBeRawPtr<Range> actualRange = Range::create(document(), foundRange.startPosition(), foundRange.endPosition());
+ RawPtr<Range> actualRange = Range::create(document(), foundRange.startPosition(), foundRange.endPosition());
EXPECT_TRUE(areRangesEqual(expectedRange.get(), actualRange.get()));
}
}

Powered by Google App Engine
This is Rietveld 408576698