| 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);
|
|
|