| Index: third_party/WebKit/Source/platform/testing/RunAllTests.cpp
|
| diff --git a/third_party/WebKit/Source/platform/testing/RunAllTests.cpp b/third_party/WebKit/Source/platform/testing/RunAllTests.cpp
|
| index cf0b9bb8296072be618577682352bfa06c48213f..8127de17f8d80df48be197fa394141e80a24bd14 100644
|
| --- a/third_party/WebKit/Source/platform/testing/RunAllTests.cpp
|
| +++ b/third_party/WebKit/Source/platform/testing/RunAllTests.cpp
|
| @@ -41,6 +41,7 @@
|
| #include "public/platform/Platform.h"
|
| #include "wtf/CryptographicallyRandomNumber.h"
|
| #include "wtf/CurrentTime.h"
|
| +#include "wtf/PtrUtil.h"
|
| #include "wtf/WTF.h"
|
| #include "wtf/allocator/Partitions.h"
|
| #include <base/bind.h>
|
| @@ -50,6 +51,7 @@
|
| #include <base/test/launcher/unit_test_launcher.h>
|
| #include <base/test/test_suite.h>
|
| #include <cc/blink/web_compositor_support_impl.h>
|
| +#include <memory>
|
|
|
| namespace {
|
|
|
| @@ -81,7 +83,7 @@ int main(int argc, char** argv)
|
|
|
| base::StatisticsRecorder::Initialize();
|
|
|
| - OwnPtr<DummyPlatform> platform = adoptPtr(new DummyPlatform);
|
| + std::unique_ptr<DummyPlatform> platform = wrapUnique(new DummyPlatform);
|
| blink::Platform::setCurrentPlatformForTesting(platform.get());
|
|
|
| WTF::Partitions::initialize(nullptr);
|
| @@ -105,7 +107,7 @@ int main(int argc, char** argv)
|
|
|
| mojo::edk::Init();
|
| base::TestIOThread testIoThread(base::TestIOThread::kAutoStart);
|
| - WTF::OwnPtr<mojo::edk::test::ScopedIPCSupport> ipcSupport(adoptPtr(new mojo::edk::test::ScopedIPCSupport(testIoThread.task_runner())));
|
| + std::unique_ptr<mojo::edk::test::ScopedIPCSupport> ipcSupport(wrapUnique(new mojo::edk::test::ScopedIPCSupport(testIoThread.task_runner())));
|
| result = base::LaunchUnitTests(argc, argv, base::Bind(runTestSuite, base::Unretained(&testSuite)));
|
|
|
| blink::ThreadState::detachMainThread();
|
|
|