Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: chrome/test/base/ui_test_utils.h

Issue 7489019: Fix up various browser tests not to use WaitForNavigation. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Use the single WNO ctor. Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 15f08982b104631e21f54e0983ae765b6ca1955a..455469e5f4c5a22b776c2355c65d56a8fdeb6806 100644
--- a/chrome/test/base/ui_test_utils.h
+++ b/chrome/test/base/ui_test_utils.h
@@ -229,10 +229,14 @@ bool IsViewFocused(const Browser* browser, ViewID vid);
void ClickOnView(const Browser* browser, ViewID vid);
// Blocks until a notification for given |type| is received.
+// TODO(gbillock): remove this race hazard.
+// Use WindowedNotificationObserver instead.
void WaitForNotification(int type);
// Blocks until a notification for given |type| from the specified |source|
// is received.
+// TODO(gbillock): remove this race hazard.
+// Use WindowedNotificationObserver instead.
void WaitForNotificationFrom(int type,
const NotificationSource& source);
@@ -404,6 +408,7 @@ class WindowedNotificationObserver : public NotificationObserver {
// NotificationService::AllSources().
WindowedNotificationObserver(int notification_type,
const NotificationSource& source);
+
Paweł Hajdan Jr. 2011/08/04 17:56:48 nit: I'd prefer not to add an empty line here.
Greg Billock 2011/08/11 22:57:45 Done.
virtual ~WindowedNotificationObserver();
// Wait until the specified notification occurs. If the notification was

Powered by Google App Engine
This is Rietveld 408576698