Index: base/files/file_locking_unittest.cc |
diff --git a/base/files/file_locking_unittest.cc b/base/files/file_locking_unittest.cc |
index b709b7536c4ad87f9bd4984a7e2d4dbe9bb338ad..0cb8d8fe5845f5bb36a63ab3354f5cca9bddd86b 100644 |
--- a/base/files/file_locking_unittest.cc |
+++ b/base/files/file_locking_unittest.cc |
@@ -152,10 +152,10 @@ class FileLockingTest : public testing::Test { |
base::GetMultiProcessTestChildBaseCommandLine()); |
child_command_line.AppendSwitchPath(kTempDirFlag, temp_path); |
child_command_line.AppendSwitch(unlock_action); |
- lock_child_ = |
- base::SpawnMultiProcessTestChild(ChildMainString, child_command_line, |
- base::LaunchOptions()); |
- ASSERT_TRUE(lock_child_.IsValid()); |
+ |
+ spawn_child_ = base::SpawnMultiProcessTestChild( |
+ ChildMainString, child_command_line, base::LaunchOptions()); |
+ ASSERT_TRUE(spawn_child_.process.IsValid()); |
// Wait for the child to lock the file. |
ASSERT_TRUE(WaitForEventOrTimeout(kSignalLockFileLocked)); |
@@ -166,13 +166,13 @@ class FileLockingTest : public testing::Test { |
ASSERT_TRUE(SignalEvent(kSignalExit)); |
int rv = -1; |
ASSERT_TRUE(WaitForMultiprocessTestChildExit( |
- lock_child_, TestTimeouts::action_timeout(), &rv)); |
+ spawn_child_.process, TestTimeouts::action_timeout(), &rv)); |
ASSERT_EQ(0, rv); |
} |
base::ScopedTempDir temp_dir_; |
base::File lock_file_; |
- base::Process lock_child_; |
+ base::SpawnChildResult spawn_child_; |
private: |
DISALLOW_COPY_AND_ASSIGN(FileLockingTest); |
@@ -220,7 +220,7 @@ TEST_F(FileLockingTest, UnlockOnTerminate) { |
StartChildAndSignalLock(kExitUnlock); |
ASSERT_NE(File::FILE_OK, lock_file_.Lock()); |
- ASSERT_TRUE(TerminateMultiProcessTestChild(lock_child_, 0, true)); |
+ ASSERT_TRUE(TerminateMultiProcessTestChild(spawn_child_.process, 0, true)); |
ASSERT_EQ(File::FILE_OK, lock_file_.Lock()); |
ASSERT_EQ(File::FILE_OK, lock_file_.Unlock()); |
} |