| Index: chrome/browser/ui/tests/browser_uitest.cc
|
| diff --git a/chrome/browser/ui/tests/browser_uitest.cc b/chrome/browser/ui/tests/browser_uitest.cc
|
| index 680a86a09c8759db6600f2fb705dcebcb212ce46..3b9c92c6b00b918c659854e7b01f7d8803793bf8 100644
|
| --- a/chrome/browser/ui/tests/browser_uitest.cc
|
| +++ b/chrome/browser/ui/tests/browser_uitest.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -9,6 +9,7 @@
|
| #include "base/string_util.h"
|
| #include "base/sys_info.h"
|
| #include "base/test/test_file_util.h"
|
| +#include "base/test/test_timeouts.h"
|
| #include "base/values.h"
|
| #include "chrome/app/chrome_command_ids.h"
|
| #include "chrome/browser/platform_util.h"
|
| @@ -113,7 +114,7 @@ TEST_F(BrowserTest, NullOpenerRedirectForksProcess) {
|
| // Make sure that a new tab has been created and that we have a new renderer
|
| // process for it.
|
| ASSERT_TRUE(tab->NavigateToURLAsync(fork_url));
|
| - PlatformThread::Sleep(sleep_timeout_ms());
|
| + PlatformThread::Sleep(TestTimeouts::action_timeout_ms());
|
| ASSERT_EQ(orig_process_count + 1, GetBrowserProcessCount());
|
| int new_tab_count = -1;
|
| ASSERT_TRUE(window->GetTabCount(&new_tab_count));
|
| @@ -166,7 +167,7 @@ TEST_F(BrowserTest, MAYBE_OtherRedirectsDontForkProcess) {
|
|
|
| // Make sure that a new tab but not new process has been created.
|
| ASSERT_TRUE(tab->NavigateToURLAsync(dont_fork_url));
|
| - base::PlatformThread::Sleep(sleep_timeout_ms());
|
| + base::PlatformThread::Sleep(TestTimeouts::action_timeout_ms());
|
| ASSERT_EQ(orig_process_count, GetBrowserProcessCount());
|
| int new_tab_count = -1;
|
| ASSERT_TRUE(window->GetTabCount(&new_tab_count));
|
| @@ -181,7 +182,7 @@ TEST_F(BrowserTest, MAYBE_OtherRedirectsDontForkProcess) {
|
|
|
| // Make sure that no new process has been created.
|
| ASSERT_TRUE(tab->NavigateToURLAsync(dont_fork_url2));
|
| - base::PlatformThread::Sleep(sleep_timeout_ms());
|
| + base::PlatformThread::Sleep(TestTimeouts::action_timeout_ms());
|
| ASSERT_EQ(orig_process_count, GetBrowserProcessCount());
|
| }
|
|
|
|
|