From f5b3bda9fea3606111ed4e1b7cb36df44e8448b7 Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Thu, 9 Apr 2009 18:49:02 +0000 Subject: UI test string portage. These files now compile on linux (but they don't link) and they still pass windows. When Pawel gets done with his changes to UI test stuff, we should be able to just enable these tests. The changes to chrome.gyp are just to fix lint errors. Review URL: http://codereview.chromium.org/63149 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13442 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/crash_recovery_uitest.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome/browser/crash_recovery_uitest.cc') diff --git a/chrome/browser/crash_recovery_uitest.cc b/chrome/browser/crash_recovery_uitest.cc index bbd577a..e533b09 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,7 @@ TEST_F(CrashRecoveryUITest, Reload) { expected_crashes_ = 1; tab->NavigateToURLAsync(GURL("about:crash")); - Sleep(1000); // Wait for the browser to notice the renderer crash. + PlatformThread::Sleep(1000); // Wait for the browser to notice the renderer crash. tab->Reload(); @@ -66,7 +67,7 @@ TEST_F(CrashRecoveryUITest, LoadInNewTab) { expected_crashes_ = 1; tab->NavigateToURLAsync(GURL("about:crash")); - Sleep(1000); // Wait for the browser to notice the renderer crash. + PlatformThread::Sleep(1000); // Wait for the browser to notice the renderer crash. scoped_ptr browser_proxy(automation()->GetBrowserWindow(0)); ASSERT_TRUE(browser_proxy->AppendTab(url)); -- cgit v1.1