diff options
author | rvargas <rvargas@chromium.org> | 2014-12-09 18:09:53 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-10 02:10:10 +0000 |
commit | 6bfa2520a5a94d9ec23c68957ea8583557f0f411 (patch) | |
tree | 89b9afa0b4c9649ebc29351fd9144f52f01f8b4d /apps/load_and_launch_browsertest.cc | |
parent | 59bd86cf6727dd5704bbf54f512c74dd5974d0d2 (diff) | |
download | chromium_src-6bfa2520a5a94d9ec23c68957ea8583557f0f411.zip chromium_src-6bfa2520a5a94d9ec23c68957ea8583557f0f411.tar.gz chromium_src-6bfa2520a5a94d9ec23c68957ea8583557f0f411.tar.bz2 |
Update apps/ to use the new version of LaunchProcess.
BUG=417532
Review URL: https://codereview.chromium.org/788953002
Cr-Commit-Position: refs/heads/master@{#307617}
Diffstat (limited to 'apps/load_and_launch_browsertest.cc')
-rw-r--r-- | apps/load_and_launch_browsertest.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/load_and_launch_browsertest.cc b/apps/load_and_launch_browsertest.cc index 92e9576..6624de9 100644 --- a/apps/load_and_launch_browsertest.cc +++ b/apps/load_and_launch_browsertest.cc @@ -50,13 +50,13 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, app_path.value()); new_cmdline.AppendSwitch(content::kLaunchAsBrowser); - base::ProcessHandle process; - base::LaunchProcess(new_cmdline, base::LaunchOptionsForTest(), &process); - ASSERT_NE(base::kNullProcessHandle, process); + base::Process process = + base::LaunchProcess(new_cmdline, base::LaunchOptionsForTest()); + ASSERT_TRUE(process.IsValid()); ASSERT_TRUE(launched_listener.WaitUntilSatisfied()); - ASSERT_TRUE(base::WaitForSingleProcess( - process, TestTimeouts::action_timeout())); + ASSERT_TRUE(base::WaitForSingleProcess(process.Handle(), + TestTimeouts::action_timeout())); } // TODO(jackhou): Enable this test once it works on OSX. It currently does not @@ -93,13 +93,13 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, new_cmdline.AppendSwitch(content::kLaunchAsBrowser); new_cmdline.AppendArgPath(test_file_path); - base::ProcessHandle process; - base::LaunchProcess(new_cmdline, base::LaunchOptionsForTest(), &process); - ASSERT_NE(base::kNullProcessHandle, process); + base::Process process = + base::LaunchProcess(new_cmdline, base::LaunchOptionsForTest()); + ASSERT_TRUE(process.IsValid()); ASSERT_TRUE(launched_listener.WaitUntilSatisfied()); - ASSERT_TRUE(base::WaitForSingleProcess( - process, TestTimeouts::action_timeout())); + ASSERT_TRUE(base::WaitForSingleProcess(process.Handle(), + TestTimeouts::action_timeout())); } namespace { |