summaryrefslogtreecommitdiffstats
path: root/chrome/test/ui/ui_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/ui/ui_test.h')
-rw-r--r--chrome/test/ui/ui_test.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/test/ui/ui_test.h b/chrome/test/ui/ui_test.h
index 4b9bf600..8a6aa0a 100644
--- a/chrome/test/ui/ui_test.h
+++ b/chrome/test/ui/ui_test.h
@@ -142,6 +142,11 @@ class UITest : public testing::Test {
bool WaitForBookmarkBarVisibilityChange(BrowserProxy* browser,
bool wait_for_open);
+ // Sends the request to close the browser without blocking.
+ // This is so we can interact with dialogs opened on browser close,
+ // e.g. the beforeunload confirm dialog.
+ void CloseBrowserAsync(BrowserProxy* browser) const;
+
// Closes the specified browser. Returns true if the browser was closed.
// This call is blocking. |application_closed| is set to true if this was
// the last browser window (and therefore as a result of it closing the