diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-13 14:30:27 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-13 14:30:27 +0000 |
commit | 4794938ba46c128bd207c4f4509f86b1aceb1284 (patch) | |
tree | 9bf746f8ca8a11708a4255c37d00f87e30fb9c83 /chrome/test/automation/tab_proxy.cc | |
parent | def969b7488c51105269ffd50e775ab4a46dd022 (diff) | |
download | chromium_src-4794938ba46c128bd207c4f4509f86b1aceb1284.zip chromium_src-4794938ba46c128bd207c4f4509f86b1aceb1284.tar.gz chromium_src-4794938ba46c128bd207c4f4509f86b1aceb1284.tar.bz2 |
Two changes to help track down why session restore test is failing:
1. Adds a timeout in waiting for a tab to be restored.
2. Adds a bunch of printfs that will hopefully let me figure out where
the test is failing.
BUG=none
TEST=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@797 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/tab_proxy.cc')
-rw-r--r-- | chrome/test/automation/tab_proxy.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/test/automation/tab_proxy.cc b/chrome/test/automation/tab_proxy.cc index 2cca9a4..c359f34 100644 --- a/chrome/test/automation/tab_proxy.cc +++ b/chrome/test/automation/tab_proxy.cc @@ -797,13 +797,14 @@ bool TabProxy::ProcessUnhandledAccelerator(const MSG& msg) { // This message expects no response } -bool TabProxy::WaitForTabToBeRestored() { +bool TabProxy::WaitForTabToBeRestored(uint32 timeout_ms) { if (!is_valid()) return false; IPC::Message* response = NULL; - return sender_->SendAndWaitForResponse( + bool is_timeout; + return sender_->SendAndWaitForResponseWithTimeout( new AutomationMsg_WaitForTabToBeRestored(0, handle_), &response, - AutomationMsg_TabFinishedRestoring::ID); + AutomationMsg_TabFinishedRestoring::ID, timeout_ms, &is_timeout); } bool TabProxy::GetSecurityState(SecurityStyle* security_style, |