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

Unified Diff: third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.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/svg/UnsafeSVGAttributeSanitizationTest.cpp
diff --git a/third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp b/third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp
index 27cccf53aaa516906fdd6c84339167f23e9698d6..8a8aaea9329ddda6abee321f07e2987e03d7c473 100644
--- a/third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp
+++ b/third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp
@@ -27,6 +27,7 @@
#include "wtf/Vector.h"
#include "wtf/text/AtomicString.h"
#include "wtf/text/WTFString.h"
+#include <memory>
// Test that SVG content with JavaScript URLs is sanitized by removing
// the URLs. This sanitization happens when the content is pasted or
@@ -76,7 +77,7 @@ TEST(
UnsafeSVGAttributeSanitizationTest,
pasteAnchor_javaScriptHrefIsStripped)
{
- OwnPtr<DummyPageHolder> pageHolder = DummyPageHolder::create(IntSize(1, 1));
+ std::unique_ptr<DummyPageHolder> pageHolder = DummyPageHolder::create(IntSize(1, 1));
static const char unsafeContent[] =
"<svg xmlns='http://www.w3.org/2000/svg' "
" width='1cm' height='1cm'>"
@@ -98,7 +99,7 @@ TEST(
UnsafeSVGAttributeSanitizationTest,
pasteAnchor_javaScriptXlinkHrefIsStripped)
{
- OwnPtr<DummyPageHolder> pageHolder = DummyPageHolder::create(IntSize(1, 1));
+ std::unique_ptr<DummyPageHolder> pageHolder = DummyPageHolder::create(IntSize(1, 1));
static const char unsafeContent[] =
"<svg xmlns='http://www.w3.org/2000/svg' "
" xmlns:xlink='http://www.w3.org/1999/xlink'"
@@ -121,7 +122,7 @@ TEST(
UnsafeSVGAttributeSanitizationTest,
pasteAnchor_javaScriptHrefIsStripped_caseAndEntityInProtocol)
{
- OwnPtr<DummyPageHolder> pageHolder = DummyPageHolder::create(IntSize(1, 1));
+ std::unique_ptr<DummyPageHolder> pageHolder = DummyPageHolder::create(IntSize(1, 1));
static const char unsafeContent[] =
"<svg xmlns='http://www.w3.org/2000/svg' "
" width='1cm' height='1cm'>"
@@ -143,7 +144,7 @@ TEST(
UnsafeSVGAttributeSanitizationTest,
pasteAnchor_javaScriptXlinkHrefIsStripped_caseAndEntityInProtocol)
{
- OwnPtr<DummyPageHolder> pageHolder = DummyPageHolder::create(IntSize(1, 1));
+ std::unique_ptr<DummyPageHolder> pageHolder = DummyPageHolder::create(IntSize(1, 1));
static const char unsafeContent[] =
"<svg xmlns='http://www.w3.org/2000/svg' "
" xmlns:xlink='http://www.w3.org/1999/xlink'"
@@ -166,7 +167,7 @@ TEST(
UnsafeSVGAttributeSanitizationTest,
pasteAnchor_javaScriptHrefIsStripped_entityWithoutSemicolonInProtocol)
{
- OwnPtr<DummyPageHolder> pageHolder = DummyPageHolder::create(IntSize(1, 1));
+ std::unique_ptr<DummyPageHolder> pageHolder = DummyPageHolder::create(IntSize(1, 1));
static const char unsafeContent[] =
"<svg xmlns='http://www.w3.org/2000/svg' "
" width='1cm' height='1cm'>"
@@ -188,7 +189,7 @@ TEST(
UnsafeSVGAttributeSanitizationTest,
pasteAnchor_javaScriptXlinkHrefIsStripped_entityWithoutSemicolonInProtocol)
{
- OwnPtr<DummyPageHolder> pageHolder = DummyPageHolder::create(IntSize(1, 1));
+ std::unique_ptr<DummyPageHolder> pageHolder = DummyPageHolder::create(IntSize(1, 1));
static const char unsafeContent[] =
"<svg xmlns='http://www.w3.org/2000/svg' "
" xmlns:xlink='http://www.w3.org/1999/xlink'"
@@ -216,7 +217,7 @@ TEST(
UnsafeSVGAttributeSanitizationTest,
pasteAnimatedAnchor_javaScriptHrefIsStripped_caseAndEntityInProtocol)
{
- OwnPtr<DummyPageHolder> pageHolder = DummyPageHolder::create(IntSize(1, 1));
+ std::unique_ptr<DummyPageHolder> pageHolder = DummyPageHolder::create(IntSize(1, 1));
static const char unsafeContent[] =
"<svg xmlns='http://www.w3.org/2000/svg' "
" width='1cm' height='1cm'>"
@@ -240,7 +241,7 @@ TEST(
UnsafeSVGAttributeSanitizationTest,
pasteAnimatedAnchor_javaScriptXlinkHrefIsStripped_caseAndEntityInProtocol)
{
- OwnPtr<DummyPageHolder> pageHolder = DummyPageHolder::create(IntSize(1, 1));
+ std::unique_ptr<DummyPageHolder> pageHolder = DummyPageHolder::create(IntSize(1, 1));
static const char unsafeContent[] =
"<svg xmlns='http://www.w3.org/2000/svg' "
" xmlns:xlink='http://www.w3.org/1999/xlink'"

Powered by Google App Engine
This is Rietveld 408576698