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

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

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