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

Unified Diff: third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.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/css/CSSStyleSheetResourceTest.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp b/third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp
index 0cb68c16006a5d0eae7982a89e62e98c1d041a2b..d78d662525535f01b573285734d1df55d22343cf 100644
--- a/third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp
+++ b/third_party/WebKit/Source/core/css/CSSStyleSheetResourceTest.cpp
@@ -31,10 +31,8 @@
#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 {
@@ -59,7 +57,7 @@ protected:
Document* document() { return &m_page->document(); }
Persistent<MemoryCache> m_originalMemoryCache;
- std::unique_ptr<DummyPageHolder> m_page;
+ OwnPtr<DummyPageHolder> m_page;
};
TEST_F(CSSStyleSheetResourceTest, PruneCanCauseEviction)
@@ -85,8 +83,8 @@ TEST_F(CSSStyleSheetResourceTest, PruneCanCauseEviction)
CSSImageValue::create(String("image"), imageURL),
CSSImageValue::create(String("image"), imageURL),
CSSPrimitiveValue::create(1.0, CSSPrimitiveValue::UnitType::Number));
- Vector<std::unique_ptr<CSSParserSelector>> selectors;
- selectors.append(wrapUnique(new CSSParserSelector()));
+ Vector<OwnPtr<CSSParserSelector>> selectors;
+ selectors.append(adoptPtr(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