Index: sandbox/linux/seccomp-bpf/bpf_tests_unittest.cc |
diff --git a/sandbox/linux/seccomp-bpf/bpf_tests_unittest.cc b/sandbox/linux/seccomp-bpf/bpf_tests_unittest.cc |
index e300baf9ba2907b511ced2b767daa421072ef0bf..c16cd72dd895d3fdf7340ded44bcbbeb311e1371 100644 |
--- a/sandbox/linux/seccomp-bpf/bpf_tests_unittest.cc |
+++ b/sandbox/linux/seccomp-bpf/bpf_tests_unittest.cc |
@@ -10,9 +10,10 @@ |
#include <sys/types.h> |
#include <unistd.h> |
+#include <memory> |
+ |
#include "base/logging.h" |
#include "base/macros.h" |
-#include "base/memory/scoped_ptr.h" |
#include "build/build_config.h" |
#include "sandbox/linux/bpf_dsl/bpf_dsl.h" |
#include "sandbox/linux/bpf_dsl/policy.h" |
@@ -76,7 +77,7 @@ TEST(BPFTest, BPFTesterCompatibilityDelegateLeakTest) { |
} |
{ |
// Test polymorphism. |
- scoped_ptr<BPFTesterDelegate> simple_delegate( |
+ std::unique_ptr<BPFTesterDelegate> simple_delegate( |
new BPFTesterCompatibilityDelegate<EmptyClassTakingPolicy, FourtyTwo>( |
DummyTestFunction)); |
} |
@@ -113,8 +114,8 @@ class BasicBPFTesterDelegate : public BPFTesterDelegate { |
BasicBPFTesterDelegate() {} |
~BasicBPFTesterDelegate() override {} |
- scoped_ptr<bpf_dsl::Policy> GetSandboxBPFPolicy() override { |
- return scoped_ptr<bpf_dsl::Policy>(new EnosysPtracePolicy()); |
+ std::unique_ptr<bpf_dsl::Policy> GetSandboxBPFPolicy() override { |
+ return std::unique_ptr<bpf_dsl::Policy>(new EnosysPtracePolicy()); |
} |
void RunTestFunction() override { |
errno = 0; |