summaryrefslogtreecommitdiffstats
path: root/chrome/browser/crash_recovery_uitest.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-09 21:46:15 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-09 21:46:15 +0000
commit3683cbb58a3e46cc3bb3860268e7bcf6ca499a0b (patch)
treec72557a7a4f3f24328757dd3c658b58865b57c0c /chrome/browser/crash_recovery_uitest.cc
parentb3d7a18cfceb5305aa563a321408665e4d7d3d12 (diff)
downloadchromium_src-3683cbb58a3e46cc3bb3860268e7bcf6ca499a0b.zip
chromium_src-3683cbb58a3e46cc3bb3860268e7bcf6ca499a0b.tar.gz
chromium_src-3683cbb58a3e46cc3bb3860268e7bcf6ca499a0b.tar.bz2
UI test portage, second try.
first try here: <http://codereview.chromium.org/63149> Review URL: http://codereview.chromium.org/67006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13464 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/crash_recovery_uitest.cc')
-rw-r--r--chrome/browser/crash_recovery_uitest.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/crash_recovery_uitest.cc b/chrome/browser/crash_recovery_uitest.cc
index bbd577a..994661b 100644
--- a/chrome/browser/crash_recovery_uitest.cc
+++ b/chrome/browser/crash_recovery_uitest.cc
@@ -4,6 +4,7 @@
#include "base/file_path.h"
#include "base/file_util.h"
+#include "base/platform_thread.h"
#include "chrome/test/automation/browser_proxy.h"
#include "chrome/test/automation/tab_proxy.h"
#include "chrome/test/ui/ui_test.h"
@@ -33,7 +34,8 @@ TEST_F(CrashRecoveryUITest, Reload) {
expected_crashes_ = 1;
tab->NavigateToURLAsync(GURL("about:crash"));
- Sleep(1000); // Wait for the browser to notice the renderer crash.
+ // Wait for the browser to notice the renderer crash.
+ PlatformThread::Sleep(1000);
tab->Reload();
@@ -66,7 +68,8 @@ TEST_F(CrashRecoveryUITest, LoadInNewTab) {
expected_crashes_ = 1;
tab->NavigateToURLAsync(GURL("about:crash"));
- Sleep(1000); // Wait for the browser to notice the renderer crash.
+ // Wait for the browser to notice the renderer crash.
+ PlatformThread::Sleep(1000);
scoped_ptr<BrowserProxy> browser_proxy(automation()->GetBrowserWindow(0));
ASSERT_TRUE(browser_proxy->AppendTab(url));