Index: chrome/test/base/ui_test_utils.h |
diff --git a/chrome/test/base/ui_test_utils.h b/chrome/test/base/ui_test_utils.h |
index 38ac0db71686916b457c353bb064adc34845b63f..e317b18a430512fc03ea14a4388ab651d757a6dc 100644 |
--- a/chrome/test/base/ui_test_utils.h |
+++ b/chrome/test/base/ui_test_utils.h |
@@ -26,6 +26,7 @@ |
#include "ui/gfx/native_widget_types.h" |
#include "url/gurl.h" |
+class AutocompleteController; |
class Browser; |
class LocationBar; |
class Profile; |
@@ -131,6 +132,11 @@ bool GetRelativeBuildDirectory(base::FilePath* build_dir); |
// Blocks until an application modal dialog is showns and returns it. |
app_modal::AppModalDialog* WaitForAppModalDialog(); |
+// Waits for |autocomplete_controller| to stop, i.e. waits |
+// NOTIFICATION_AUTOCOMPLETE_CONTROLLER_RESULT_READY. |
+void WaitForAutocompleteController( |
+ const AutocompleteController& autocomplete_controller); |
+ |
// Performs a find in the page of the specified tab. Returns the number of |
// matches found. |ordinal| is an optional parameter which is set to the index |
// of the current match. |selection_rect| is an optional parameter which is set |