Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1201)

Unified Diff: sandbox/mac/bootstrap_sandbox_unittest.mm

Issue 1849323003: Convert //sandbox to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixup nonsfi_sandbox_unittest.cc Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/mac/bootstrap_sandbox.cc ('k') | sandbox/mac/launchd_interception_server.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/mac/bootstrap_sandbox_unittest.mm
diff --git a/sandbox/mac/bootstrap_sandbox_unittest.mm b/sandbox/mac/bootstrap_sandbox_unittest.mm
index e4c13e5d4861dc27f76837392c9644bedc304dac..f81cd114eec0247f79c9a2d1f1a5b60d95b74c2a 100644
--- a/sandbox/mac/bootstrap_sandbox_unittest.mm
+++ b/sandbox/mac/bootstrap_sandbox_unittest.mm
@@ -98,7 +98,7 @@ class BootstrapSandboxTest : public base::MultiProcessTest {
void RunChildWithPolicy(int policy_id,
const char* child_name,
base::ProcessHandle* out_pid) {
- scoped_ptr<PreExecDelegate> pre_exec_delegate(
+ std::unique_ptr<PreExecDelegate> pre_exec_delegate(
sandbox_->NewClient(policy_id));
base::LaunchOptions options;
@@ -114,7 +114,7 @@ class BootstrapSandboxTest : public base::MultiProcessTest {
}
protected:
- scoped_ptr<BootstrapSandbox> sandbox_;
+ std::unique_ptr<BootstrapSandbox> sandbox_;
};
const char kNotificationTestMain[] = "PostNotification";
@@ -434,7 +434,7 @@ TEST_F(BootstrapSandboxTest, ChildOutliveSandbox) {
sandbox_->RegisterSandboxPolicy(kTestPolicyId, policy);
// Launch the child.
- scoped_ptr<PreExecDelegate> pre_exec_delegate(
+ std::unique_ptr<PreExecDelegate> pre_exec_delegate(
sandbox_->NewClient(kTestPolicyId));
base::LaunchOptions options;
options.pre_exec_delegate = pre_exec_delegate.get();
« no previous file with comments | « sandbox/mac/bootstrap_sandbox.cc ('k') | sandbox/mac/launchd_interception_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698