| Index: sandbox/win/src/service_resolver_unittest.cc
|
| diff --git a/sandbox/win/src/service_resolver_unittest.cc b/sandbox/win/src/service_resolver_unittest.cc
|
| index 25d087573238233ff64d1b4ae5a37bfad9b01740..ff59629c56aae91eb7a737aca2a8f2218107f079 100644
|
| --- a/sandbox/win/src/service_resolver_unittest.cc
|
| +++ b/sandbox/win/src/service_resolver_unittest.cc
|
| @@ -6,9 +6,10 @@
|
|
|
| #include <stddef.h>
|
|
|
| +#include <memory>
|
| +
|
| #include "base/bit_cast.h"
|
| #include "base/macros.h"
|
| -#include "base/memory/scoped_ptr.h"
|
| #include "base/win/windows_version.h"
|
| #include "sandbox/win/src/resolver.h"
|
| #include "sandbox/win/src/sandbox_utils.h"
|
| @@ -108,7 +109,7 @@ NTSTATUS PatchNtdllWithResolver(const char* function, bool relaxed,
|
| // Any pointer will do as an interception_entry_point
|
| void* function_entry = resolver;
|
| size_t thunk_size = resolver->GetThunkSize();
|
| - scoped_ptr<char[]> thunk(new char[thunk_size]);
|
| + std::unique_ptr<char[]> thunk(new char[thunk_size]);
|
| size_t used;
|
|
|
| resolver->AllowLocalPatches();
|
| @@ -246,7 +247,7 @@ TEST(ServiceResolverTest, LocalPatchesAllowed) {
|
| // Any pointer will do as an interception_entry_point
|
| void* function_entry = resolver;
|
| size_t thunk_size = resolver->GetThunkSize();
|
| - scoped_ptr<char[]> thunk(new char[thunk_size]);
|
| + std::unique_ptr<char[]> thunk(new char[thunk_size]);
|
| size_t used;
|
|
|
| NTSTATUS ret = STATUS_UNSUCCESSFUL;
|
|
|