diff options
author | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-16 02:57:22 +0000 |
---|---|---|
committer | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-16 02:57:22 +0000 |
commit | 7fb087e0800d0faaa31e4a029ad6813f251b4848 (patch) | |
tree | 2076a41c5df464dda2709950cde1c4b4786280ed /chrome/browser/errorpage_uitest.cc | |
parent | f643bc141744031f1e3b304f753dd3837e6600eb (diff) | |
download | chromium_src-7fb087e0800d0faaa31e4a029ad6813f251b4848.zip chromium_src-7fb087e0800d0faaa31e4a029ad6813f251b4848.tar.gz chromium_src-7fb087e0800d0faaa31e4a029ad6813f251b4848.tar.bz2 |
Remove timeout constants from ui_tests. All tests will now
use accessors for various timeouts which can be set (via
command line parameters) to values appropriate to the test
environment, such as longer timeouts when running under purify.
Review URL: http://codereview.chromium.org/18109
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/errorpage_uitest.cc')
-rw-r--r-- | chrome/browser/errorpage_uitest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/errorpage_uitest.cc b/chrome/browser/errorpage_uitest.cc index a071fb2..78939498 100644 --- a/chrome/browser/errorpage_uitest.cc +++ b/chrome/browser/errorpage_uitest.cc @@ -20,7 +20,7 @@ TEST_F(ErrorPageTest, DNSError) { int i; std::wstring title; for (i = 0; i < 10; ++i) { - Sleep(kWaitForActionMaxMsec / 10); + Sleep(sleep_timeout_ms()); title = GetActiveTabTitle(); if (title.find(test_host) != std::wstring::npos) { // Success, bail out. @@ -49,7 +49,7 @@ TEST_F(ErrorPageTest, IFrame404) { int i; std::wstring title; for (i = 0; i < 10; ++i) { - Sleep(kWaitForActionMaxMsec / 10); + Sleep(sleep_timeout_ms()); title = GetActiveTabTitle(); if (title == L"SUCCESS") { // Success, bail out. |