diff options
author | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-15 00:13:23 +0000 |
---|---|---|
committer | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-15 00:13:23 +0000 |
commit | 49adfe26f0723d92b773dc63760ad5fb89be8137 (patch) | |
tree | e1d3fa02b9676a19903a30a547461989fa02de33 /chrome/browser/download | |
parent | dcc9e91bf1b5c2197d572ec2f6c1b84a661e5e1f (diff) | |
download | chromium_src-49adfe26f0723d92b773dc63760ad5fb89be8137.zip chromium_src-49adfe26f0723d92b773dc63760ad5fb89be8137.tar.gz chromium_src-49adfe26f0723d92b773dc63760ad5fb89be8137.tar.bz2 |
More ui_test purify changes.
Review URL: http://codereview.chromium.org/18069
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8052 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download')
-rw-r--r-- | chrome/browser/download/download_uitest.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/download/download_uitest.cc b/chrome/browser/download/download_uitest.cc index 52d67ba..e15733b 100644 --- a/chrome/browser/download/download_uitest.cc +++ b/chrome/browser/download/download_uitest.cc @@ -9,6 +9,7 @@ #include "base/command_line.h" #include "base/file_util.h" #include "base/path_service.h" +#include "base/platform_thread.h" #include "base/string_util.h" #include "chrome/browser/automation/url_request_mock_http_job.h" #include "chrome/browser/automation/url_request_slow_download_job.h" @@ -138,7 +139,7 @@ class DownloadTest : public UITest { for (int i = 0; i < 10; ++i) { if (file_util::Delete(download_prefix_ + filename, false)) break; - Sleep(kWaitForActionMaxMsec / 10); + PlatformThread::Sleep(action_max_timeout_ms() / 10); } EXPECT_FALSE(file_util::PathExists(download_prefix_ + filename)); } @@ -161,7 +162,7 @@ TEST_F(DownloadTest, DownloadMimeType) { WaitUntilTabCount(1); // Wait until the file is downloaded. - Sleep(1000); + PlatformThread::Sleep(action_timeout_ms()); CleanUpDownload(file); @@ -186,7 +187,7 @@ TEST_F(DownloadTest, NoDownload) { WaitUntilTabCount(1); // Wait to see if the file will be downloaded. - Sleep(1000); + PlatformThread::Sleep(action_timeout_ms()); EXPECT_FALSE(file_util::PathExists(file_path)); if (file_util::PathExists(file_path)) @@ -211,7 +212,7 @@ TEST_F(DownloadTest, ContentDisposition) { WaitUntilTabCount(1); // Wait until the file is downloaded. - Sleep(1000); + PlatformThread::Sleep(action_timeout_ms()); CleanUpDownload(download_file, file); |