summaryrefslogtreecommitdiffstats
path: root/chrome/test/in_process_browser_test.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-14 19:07:45 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-14 19:07:45 +0000
commitce8bac8fa733c584a659665606f694a4835f1fbf (patch)
tree65d37d9fb37d9b40ddc76d8236c0a4bc05a5db9f /chrome/test/in_process_browser_test.cc
parentf3da4e1a1804845ad62364e7fe1cc66abda71e67 (diff)
downloadchromium_src-ce8bac8fa733c584a659665606f694a4835f1fbf.zip
chromium_src-ce8bac8fa733c584a659665606f694a4835f1fbf.tar.gz
chromium_src-ce8bac8fa733c584a659665606f694a4835f1fbf.tar.bz2
GTTF: Move browser_tests test launcher timeout to chrome/test/test_timeouts
BUG=none TEST=browser_tests Review URL: http://codereview.chromium.org/3327023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59409 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/in_process_browser_test.cc')
-rw-r--r--chrome/test/in_process_browser_test.cc31
1 files changed, 1 insertions, 30 deletions
diff --git a/chrome/test/in_process_browser_test.cc b/chrome/test/in_process_browser_test.cc
index 870cf95..276556d 100644
--- a/chrome/test/in_process_browser_test.cc
+++ b/chrome/test/in_process_browser_test.cc
@@ -69,13 +69,6 @@ const wchar_t kUnitTestShowWindows[] = L"show-windows";
// Passed as value of kTestType.
static const char kBrowserTestType[] = "browser";
-// Default delay for the time-out at which we stop the
-// inner-message loop the first time.
-const int kInitialTimeoutInMS = 30000;
-
-// Delay for sub-sequent time-outs once the initial time-out happened.
-const int kSubsequentTimeoutInMS = 5000;
-
InProcessBrowserTest::InProcessBrowserTest()
: browser_(NULL),
test_server_(net::TestServer::TYPE_HTTP,
@@ -83,8 +76,7 @@ InProcessBrowserTest::InProcessBrowserTest()
show_window_(false),
dom_automation_enabled_(false),
tab_closeable_state_watcher_enabled_(false),
- original_single_process_(false),
- initial_timeout_(kInitialTimeoutInMS) {
+ original_single_process_(false) {
}
InProcessBrowserTest::~InProcessBrowserTest() {
@@ -302,11 +294,6 @@ void InProcessBrowserTest::RunTestOnMainThreadLoop() {
browser_ = CreateBrowser(profile);
pool.Recycle();
- // Start the timeout timer to prevent hangs.
- MessageLoopForUI::current()->PostDelayedTask(FROM_HERE,
- NewRunnableMethod(this, &InProcessBrowserTest::TimedOut),
- initial_timeout_);
-
// Pump any pending events that were created as a result of creating a
// browser.
MessageLoopForUI::current()->RunAllPending();
@@ -333,19 +320,3 @@ void InProcessBrowserTest::QuitBrowsers() {
NewRunnableFunction(&BrowserList::CloseAllBrowsersAndExit));
ui_test_utils::RunMessageLoop();
}
-
-void InProcessBrowserTest::TimedOut() {
- std::string error_message = "Test timed out. Each test runs for a max of ";
- error_message += base::IntToString(initial_timeout_);
- error_message += " ms (kInitialTimeoutInMS).";
-
- MessageLoopForUI::current()->Quit();
-
- // WARNING: This must be after Quit as it returns.
- FAIL() << error_message;
-}
-
-void InProcessBrowserTest::SetInitialTimeoutInMS(int timeout_value) {
- DCHECK_GT(timeout_value, 0);
- initial_timeout_ = timeout_value;
-}