Index: sandbox/mac/xpc_message_server_unittest.cc |
diff --git a/sandbox/mac/xpc_message_server_unittest.cc b/sandbox/mac/xpc_message_server_unittest.cc |
index 0feaac975e434c0a34b5993e946d671a212e99a8..630833f28533e15c7a9a3fea72777f2e67088b62 100644 |
--- a/sandbox/mac/xpc_message_server_unittest.cc |
+++ b/sandbox/mac/xpc_message_server_unittest.cc |
@@ -147,18 +147,17 @@ TEST(XPCMessageServerTest, GetSenderPID) { |
#pragma GCC diagnostic pop |
ASSERT_EQ(KERN_SUCCESS, kr); |
- base::Process child = base::SpawnMultiProcessTestChild( |
- "GetSenderPID", |
- base::GetMultiProcessTestChildBaseCommandLine(), |
+ base::SpawnChildResult spawn_child = base::SpawnMultiProcessTestChild( |
+ "GetSenderPID", base::GetMultiProcessTestChildBaseCommandLine(), |
base::LaunchOptions()); |
- ASSERT_TRUE(child.IsValid()); |
+ ASSERT_TRUE(spawn_child.process.IsValid()); |
int exit_code = -1; |
- ASSERT_TRUE(child.WaitForExit(&exit_code)); |
+ ASSERT_TRUE(spawn_child.process.WaitForExit(&exit_code)); |
EXPECT_EQ(0, exit_code); |
- EXPECT_EQ(child.Pid(), sender_pid); |
- EXPECT_EQ(child.Pid(), child_pid); |
+ EXPECT_EQ(spawn_child.process.Pid(), sender_pid); |
+ EXPECT_EQ(spawn_child.process.Pid(), child_pid); |
EXPECT_EQ(sender_pid, child_pid); |
} |