Fix renderer process host backgrounding test on Windows.
commit33743baa0cb90a708715160d01b3941284d16e6a
authordalecurtis@chromium.org <dalecurtis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 4 Jun 2014 11:34:51 +0000 (4 11:34 +0000)
committerdalecurtis@chromium.org <dalecurtis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 4 Jun 2014 11:34:51 +0000 (4 11:34 +0000)
treebc94273a35b000cfd940fb41bfd8e6f6c07ee352
parent66a1b7cff25e92bcf9c54e9e6d10f6fc86828c24
Fix renderer process host backgrounding test on Windows.

Now that process backgrounding is controlled from within the renderer
process on Windows, we need to wait for the process to handle the IPC
message before the background state changes.

This fix changes the test to wait for the result of a script from
the renderer process before checking background status.  Doing so
ensures the renderer will process the background IPC before the
check is performed.

BUG=362294
TEST=Ran unittest on Windows.

Review URL: https://codereview.chromium.org/305373004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274778 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc