summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_browser_main_posix.cc
diff options
context:
space:
mode:
authorachuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-25 18:29:33 +0000
committerachuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-25 18:29:33 +0000
commit2421393bedf6a437f30f493c61fa017526e17264 (patch)
treed3957ff3a8af60e6638b561770e4a3f93cb20475 /chrome/browser/chrome_browser_main_posix.cc
parent06a76685518bcee5265548047003dd9cfdfb6002 (diff)
downloadchromium_src-2421393bedf6a437f30f493c61fa017526e17264.zip
chromium_src-2421393bedf6a437f30f493c61fa017526e17264.tar.gz
chromium_src-2421393bedf6a437f30f493c61fa017526e17264.tar.bz2
UI test for browser termination with beforeunload handler and some cleanup.
This test will pass only after http://codereview.chromium.org/8262009 lands. * Rename CloseAllBrowsersAndExitPosted to ExitPosted. * Add VerifyCleanExit to UITest, code which existed in BrowserTest.SessionEnd. * Move ui tests in browser_uitest.cc to non-anonymous namespace; the test names need to be unique. * Create UnloadTest.BrowserTerminateBeforeUnload which sets up onbeforeunload handler and sends a SIGTERM. BUG=chromium-os:21961 TEST=UnloadTest.BrowserTerminateBeforeUnload passes. Review URL: http://codereview.chromium.org/8376001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107163 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_browser_main_posix.cc')
-rw-r--r--chrome/browser/chrome_browser_main_posix.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/chrome_browser_main_posix.cc b/chrome/browser/chrome_browser_main_posix.cc
index c7ea527..a733606 100644
--- a/chrome/browser/chrome_browser_main_posix.cc
+++ b/chrome/browser/chrome_browser_main_posix.cc
@@ -105,7 +105,7 @@ NOINLINE void ShutdownFDClosedError() {
sleep(UINT_MAX);
}
-NOINLINE void CloseAllBrowsersAndExitPosted() {
+NOINLINE void ExitPosted() {
// Ensure function isn't optimized away.
asm("");
sleep(UINT_MAX);
@@ -161,7 +161,7 @@ void ShutdownDetector::ThreadMain() {
RAW_LOG(WARNING, "Still here, exiting really ungracefully.");
_exit(signal | (1 << 7));
}
- CloseAllBrowsersAndExitPosted();
+ ExitPosted();
}
// Sets the file descriptor soft limit to |max_descriptors| or the OS hard