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

Unified Diff: sandbox/mac/xpc_message_server_unittest.cc

Issue 2733323002: Changing multiprocess test SpawnChild to return a struct. (Closed)
Patch Set: Synced Created 3 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
« no previous file with comments | « sandbox/mac/sandbox_mac_compiler_v2_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « sandbox/mac/sandbox_mac_compiler_v2_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698