summaryrefslogtreecommitdiffstats
path: root/chrome/test/ui/ui_test.h
diff options
context:
space:
mode:
authorfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-28 16:31:57 +0000
committerfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-28 16:31:57 +0000
commit20e93d1f20dc0e3c626a2500c96f85e89cf184c9 (patch)
tree80307da7589ce802e88ca79c6b60493496770e80 /chrome/test/ui/ui_test.h
parent50664fdc92a8d1db14d83c902f67b7a8dce76480 (diff)
downloadchromium_src-20e93d1f20dc0e3c626a2500c96f85e89cf184c9.zip
chromium_src-20e93d1f20dc0e3c626a2500c96f85e89cf184c9.tar.gz
chromium_src-20e93d1f20dc0e3c626a2500c96f85e89cf184c9.tar.bz2
Adding a test to catch regressions where the Find box moves when you open and close a tab. Test is disabled until we fix the bug.
Also made the error message for when tests fails because crash_service isn't running a bit explicit (unrelated to the rest of this change). BUG=1343052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1488 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui/ui_test.h')
-rw-r--r--chrome/test/ui/ui_test.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/chrome/test/ui/ui_test.h b/chrome/test/ui/ui_test.h
index f7f9257..20c8b1b 100644
--- a/chrome/test/ui/ui_test.h
+++ b/chrome/test/ui/ui_test.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_TEST_UI_UI_TEST_H__
-#define CHROME_TEST_UI_UI_TEST_H__
+#ifndef CHROME_TEST_UI_UI_TEST_H_
+#define CHROME_TEST_UI_UI_TEST_H_
// This file provides a common base for running UI unit tests, which operate
// the entire browser application in a separate process for holistic
@@ -122,6 +122,11 @@ class UITest : public testing::Test {
// as possible.
bool WaitForDownloadShelfVisible(TabProxy* tab);
+ // Waits until the Find window has become fully visible (and stopped
+ // animating) in the specified tab. This function can time out (return false)
+ // if the window doesn't appear within a specific time.
+ bool WaitForFindWindowFullyVisible(TabProxy* tab);
+
// 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
@@ -345,5 +350,4 @@ std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) {
}
#endif // UNIT_TEST
-#endif // CHROME_TEST_UI_UI_TEST_H__
-
+#endif // CHROME_TEST_UI_UI_TEST_H_