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

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: rebase on master Created 4 years, 9 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
Index: sandbox/mac/bootstrap_sandbox_unittest.mm
diff --git a/sandbox/mac/bootstrap_sandbox_unittest.mm b/sandbox/mac/bootstrap_sandbox_unittest.mm
index 6ef1937fecb158a1658c8df3d95bfe14b39567b8..43a69977553fa1bdd2292c063238a19cb21d636e 100644
--- a/sandbox/mac/bootstrap_sandbox_unittest.mm
+++ b/sandbox/mac/bootstrap_sandbox_unittest.mm
@@ -100,7 +100,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;
@@ -116,7 +116,7 @@ class BootstrapSandboxTest : public base::MultiProcessTest {
}
protected:
- scoped_ptr<BootstrapSandbox> sandbox_;
+ std::unique_ptr<BootstrapSandbox> sandbox_;
};
const char kNotificationTestMain[] = "PostNotification";
@@ -441,7 +441,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();

Powered by Google App Engine
This is Rietveld 408576698