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

Unified Diff: third_party/WebKit/Source/core/dom/AttrTest.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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Attr.cpp ('k') | third_party/WebKit/Source/core/dom/CDATASection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/AttrTest.cpp
diff --git a/third_party/WebKit/Source/core/dom/AttrTest.cpp b/third_party/WebKit/Source/core/dom/AttrTest.cpp
index 101ce883b277374c62ceb285ebefa2028745c884..eeb5a8275de0b30772349fc1d2349494ea9cd729 100644
--- a/third_party/WebKit/Source/core/dom/AttrTest.cpp
+++ b/third_party/WebKit/Source/core/dom/AttrTest.cpp
@@ -14,11 +14,11 @@ class AttrTest : public ::testing::Test {
protected:
void SetUp() override;
- PassRefPtrWillBeRawPtr<Attr> createAttribute();
+ RawPtr<Attr> createAttribute();
const AtomicString& value() const { return m_value; }
private:
- RefPtrWillBePersistent<Document> m_document;
+ Persistent<Document> m_document;
AtomicString m_value;
};
@@ -28,14 +28,14 @@ void AttrTest::SetUp()
m_value = "value";
}
-PassRefPtrWillBeRawPtr<Attr> AttrTest::createAttribute()
+RawPtr<Attr> AttrTest::createAttribute()
{
return m_document->createAttribute("name", ASSERT_NO_EXCEPTION);
}
TEST_F(AttrTest, InitialValueState)
{
- RefPtrWillBeRawPtr<Attr> attr = createAttribute();
+ RawPtr<Attr> attr = createAttribute();
EXPECT_EQ(emptyAtom, attr->value());
EXPECT_EQ(emptyString(), attr->toNode()->nodeValue());
EXPECT_EQ(String(), attr->textContent());
@@ -43,7 +43,7 @@ TEST_F(AttrTest, InitialValueState)
TEST_F(AttrTest, SetValue)
{
- RefPtrWillBeRawPtr<Attr> attr = createAttribute();
+ RawPtr<Attr> attr = createAttribute();
attr->setValue(value());
EXPECT_EQ(value(), attr->value());
EXPECT_EQ(value(), attr->toNode()->nodeValue());
@@ -53,7 +53,7 @@ TEST_F(AttrTest, SetValue)
TEST_F(AttrTest, SetNodeValue)
{
- RefPtrWillBeRawPtr<Attr> attr = createAttribute();
+ RawPtr<Attr> attr = createAttribute();
attr->toNode()->setNodeValue(value());
EXPECT_EQ(value(), attr->value());
EXPECT_EQ(value(), attr->toNode()->nodeValue());
@@ -63,7 +63,7 @@ TEST_F(AttrTest, SetNodeValue)
TEST_F(AttrTest, SetTextContent)
{
- RefPtrWillBeRawPtr<Attr> attr = createAttribute();
+ RawPtr<Attr> attr = createAttribute();
// Node::setTextContent() does nothing for Attr.
attr->setTextContent(value());
EXPECT_EQ(emptyAtom, attr->value());
@@ -73,7 +73,7 @@ TEST_F(AttrTest, SetTextContent)
TEST_F(AttrTest, LengthOfContents)
{
- RefPtrWillBeRawPtr<Attr> attr = createAttribute();
+ RawPtr<Attr> attr = createAttribute();
EXPECT_EQ(0u, attr->lengthOfContents());
attr->setValue(value());
EXPECT_EQ(0u, attr->lengthOfContents());
« no previous file with comments | « third_party/WebKit/Source/core/dom/Attr.cpp ('k') | third_party/WebKit/Source/core/dom/CDATASection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698