diff options
Diffstat (limited to 'chrome/test/ui/ui_test.cc')
-rw-r--r-- | chrome/test/ui/ui_test.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc index 0fc08ad..b321ebf 100644 --- a/chrome/test/ui/ui_test.cc +++ b/chrome/test/ui/ui_test.cc @@ -265,8 +265,7 @@ void UITestBase::InitializeTimeouts() { } AutomationProxy* UITestBase::CreateAutomationProxy(int execution_timeout) { - // By default we create a plain vanilla AutomationProxy. - return new AutomationProxy(execution_timeout); + return new AutomationProxy(execution_timeout, false); } void UITestBase::LaunchBrowserAndServer() { @@ -1540,3 +1539,11 @@ void UITest::TearDown() { UITestBase::TearDown(); PlatformTest::TearDown(); } + +AutomationProxy* UITest::CreateAutomationProxy(int execution_timeout) { + // Make the AutomationProxy disconnect the channel on the first error, + // so that we avoid spending a lot of time in timeouts. The browser is likely + // hosed if we hit those errors. + return new AutomationProxy(execution_timeout, true); +} + |