| Index: third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp b/third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp
|
| index 8b2cea6fbc00507369a082a6ad6a12c5fd2091b2..bb6f205f68f945d14899edc483885718b2407484 100644
|
| --- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp
|
| +++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp
|
| @@ -16,6 +16,8 @@
|
| #include "public/web/modules/serviceworker/WebServiceWorkerContextClient.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| +#include "wtf/PtrUtil.h"
|
| +#include <memory>
|
|
|
| namespace blink {
|
| namespace {
|
| @@ -61,7 +63,7 @@ protected:
|
| void SetUp() override
|
| {
|
| m_mockClient = new MockServiceWorkerContextClient();
|
| - m_worker = adoptPtr(WebEmbeddedWorker::create(m_mockClient, nullptr));
|
| + m_worker = wrapUnique(WebEmbeddedWorker::create(m_mockClient, nullptr));
|
|
|
| WebURL scriptURL = URLTestHelpers::toKURL("https://www.example.com/sw.js");
|
| WebURLResponse response;
|
| @@ -85,7 +87,7 @@ protected:
|
|
|
| WebEmbeddedWorkerStartData m_startData;
|
| MockServiceWorkerContextClient* m_mockClient;
|
| - OwnPtr<WebEmbeddedWorker> m_worker;
|
| + std::unique_ptr<WebEmbeddedWorker> m_worker;
|
| };
|
|
|
| } // namespace
|
|
|