summaryrefslogtreecommitdiffstats
path: root/chrome/test/startup
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-24 20:11:33 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-24 20:11:33 +0000
commit66791d2e106c85b5af82e176409e7caf682989bd (patch)
tree484301f60b9cc72359d6cc75a1f8a9724f9ced38 /chrome/test/startup
parentea81ac968e926f50d62f24494479e8c12741d84d (diff)
downloadchromium_src-66791d2e106c85b5af82e176409e7caf682989bd.zip
chromium_src-66791d2e106c85b5af82e176409e7caf682989bd.tar.gz
chromium_src-66791d2e106c85b5af82e176409e7caf682989bd.tar.bz2
Platform cleanup in automation code.
Review URL: http://codereview.chromium.org/27098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10281 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/startup')
-rw-r--r--chrome/test/startup/startup_test.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/test/startup/startup_test.cc b/chrome/test/startup/startup_test.cc
index 70b54de..c8cf02ae 100644
--- a/chrome/test/startup/startup_test.cc
+++ b/chrome/test/startup/startup_test.cc
@@ -4,6 +4,7 @@
#include "base/file_util.h"
#include "base/path_service.h"
+#include "base/platform_thread.h"
#include "base/string_util.h"
#include "base/time.h"
#include "chrome/common/chrome_paths.h"
@@ -15,7 +16,7 @@ using base::TimeTicks;
namespace {
-// Wrapper around CopyFile to retry 10 times if there is an error.
+// Wrapper around CopyFile to retry 10 times if there is an error.
// For some reasons on buildbot it happens quite often that
// the test fails because the dll is still in use.
bool CopyFileWrapper(const std::wstring &src, const std::wstring &dest) {
@@ -65,7 +66,7 @@ class StartupTest : public UITest {
timings[i] = end_time - browser_launch_time_;
// TODO(beng): Can't shut down so quickly. Figure out why, and fix. If we
// do, we crash.
- Sleep(50);
+ PlatformThread::Sleep(50);
UITest::TearDown();
if (i == 0) {