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

Unified Diff: third_party/WebKit/Source/core/css/DragUpdateTest.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/css/DragUpdateTest.cpp
diff --git a/third_party/WebKit/Source/core/css/DragUpdateTest.cpp b/third_party/WebKit/Source/core/css/DragUpdateTest.cpp
index 0e53520481bc9b8385ac5c87d34a6aa8308f6e98..14bced50df4b99e1f2cd1d69ec49a1cb452697f3 100644
--- a/third_party/WebKit/Source/core/css/DragUpdateTest.cpp
+++ b/third_party/WebKit/Source/core/css/DragUpdateTest.cpp
@@ -10,6 +10,7 @@
#include "core/layout/LayoutObject.h"
#include "core/testing/DummyPageHolder.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include <memory>
namespace blink {
@@ -18,7 +19,7 @@ TEST(DragUpdateTest, AffectedByDragUpdate)
// Check that when dragging the div in the document below, you only get a
// single element style recalc.
- OwnPtr<DummyPageHolder> dummyPageHolder = DummyPageHolder::create(IntSize(800, 600));
+ std::unique_ptr<DummyPageHolder> dummyPageHolder = DummyPageHolder::create(IntSize(800, 600));
HTMLDocument& document = toHTMLDocument(dummyPageHolder->document());
document.documentElement()->setInnerHTML("<style>div {width:100px;height:100px} div:-webkit-drag { background-color: green }</style>"
"<div>"
@@ -44,7 +45,7 @@ TEST(DragUpdateTest, ChildAffectedByDragUpdate)
// Check that when dragging the div in the document below, you get a
// single element style recalc.
- OwnPtr<DummyPageHolder> dummyPageHolder = DummyPageHolder::create(IntSize(800, 600));
+ std::unique_ptr<DummyPageHolder> dummyPageHolder = DummyPageHolder::create(IntSize(800, 600));
HTMLDocument& document = toHTMLDocument(dummyPageHolder->document());
document.documentElement()->setInnerHTML("<style>div {width:100px;height:100px} div:-webkit-drag .drag { background-color: green }</style>"
"<div>"
@@ -70,7 +71,7 @@ TEST(DragUpdateTest, SiblingAffectedByDragUpdate)
// Check that when dragging the div in the document below, you get a
// single element style recalc.
- OwnPtr<DummyPageHolder> dummyPageHolder = DummyPageHolder::create(IntSize(800, 600));
+ std::unique_ptr<DummyPageHolder> dummyPageHolder = DummyPageHolder::create(IntSize(800, 600));
HTMLDocument& document = toHTMLDocument(dummyPageHolder->document());
document.documentElement()->setInnerHTML("<style>div {width:100px;height:100px} div:-webkit-drag + .drag { background-color: green }</style>"
"<div>"
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp ('k') | third_party/WebKit/Source/core/css/MediaList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698