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

Unified Diff: third_party/WebKit/Source/core/dom/custom/CustomElementTest.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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/dom/custom/CustomElementTest.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementTest.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementTest.cpp
index f3a4b563a80daad825adec6c628f8a2e192f3705..8567a58ac7cad0d4d40f8bcad62d60c60258d8b4 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementTest.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementTest.cpp
@@ -10,6 +10,7 @@
#include "core/html/HTMLElement.h"
#include "core/testing/DummyPageHolder.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include <memory>
namespace blink {
@@ -131,7 +132,7 @@ TEST(CustomElementTest, StateByParser)
const char* bodyContent = "<div id=div></div>"
"<a-a id=v1v0></a-a>"
"<font-face id=v0></font-face>";
- OwnPtr<DummyPageHolder> pageHolder = DummyPageHolder::create();
+ std::unique_ptr<DummyPageHolder> pageHolder = DummyPageHolder::create();
Document& document = pageHolder->document();
document.body()->setInnerHTML(String::fromUTF8(bodyContent), ASSERT_NO_EXCEPTION);
@@ -166,7 +167,7 @@ TEST(CustomElementTest, StateByCreateElement)
{ "font-face", CustomElementState::Uncustomized, Element::V0WaitingForUpgrade },
{ "_-X", CustomElementState::Uncustomized, Element::V0WaitingForUpgrade },
};
- OwnPtr<DummyPageHolder> pageHolder = DummyPageHolder::create();
+ std::unique_ptr<DummyPageHolder> pageHolder = DummyPageHolder::create();
Document& document = pageHolder->document();
for (const auto& data : createElementData) {
Element* element = document.createElement(data.name, ASSERT_NO_EXCEPTION);

Powered by Google App Engine
This is Rietveld 408576698