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

Unified Diff: third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.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/CSSStyleSheetResourceTest.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp b/third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp
index d78d662525535f01b573285734d1df55d22343cf..0cb68c16006a5d0eae7982a89e62e98c1d041a2b 100644
--- a/third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp
+++ b/third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp
@@ -31,8 +31,10 @@
#include "public/platform/Platform.h"
#include "public/platform/WebURLResponse.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "wtf/PtrUtil.h"
#include "wtf/RefPtr.h"
#include "wtf/text/WTFString.h"
+#include <memory>
namespace blink {
@@ -57,7 +59,7 @@ protected:
Document* document() { return &m_page->document(); }
Persistent<MemoryCache> m_originalMemoryCache;
- OwnPtr<DummyPageHolder> m_page;
+ std::unique_ptr<DummyPageHolder> m_page;
};
TEST_F(CSSStyleSheetResourceTest, PruneCanCauseEviction)
@@ -83,8 +85,8 @@ TEST_F(CSSStyleSheetResourceTest, PruneCanCauseEviction)
CSSImageValue::create(String("image"), imageURL),
CSSImageValue::create(String("image"), imageURL),
CSSPrimitiveValue::create(1.0, CSSPrimitiveValue::UnitType::Number));
- Vector<OwnPtr<CSSParserSelector>> selectors;
- selectors.append(adoptPtr(new CSSParserSelector()));
+ Vector<std::unique_ptr<CSSParserSelector>> selectors;
+ selectors.append(wrapUnique(new CSSParserSelector()));
selectors[0]->setMatch(CSSSelector::Id);
selectors[0]->setValue("foo");
CSSProperty property(CSSPropertyBackground, *crossfade);
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSSelectorList.cpp ('k') | third_party/WebKit/Source/core/css/DragUpdateTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698