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

Unified Diff: chrome/test/ui_test_utils.h

Issue 151189: reenable RenderViewHostManager browertest, add DownloadsCompleteObserver (Closed)
Patch Set: oops Created 11 years, 6 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
« no previous file with comments | « chrome/browser/renderer_host/render_view_host_manager_browsertest.cc ('k') | chrome/test/ui_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ui_test_utils.h
diff --git a/chrome/test/ui_test_utils.h b/chrome/test/ui_test_utils.h
index c25356edfbcdc93cabeb482963d73e91d696f4bd..2554a7d37256694fdbef5259d82bd5e10c2b1a4e 100644
--- a/chrome/test/ui_test_utils.h
+++ b/chrome/test/ui_test_utils.h
@@ -11,6 +11,7 @@
#include "chrome/common/notification_observer.h"
class Browser;
+class DownloadManager;
class GURL;
class NavigationController;
class Value;
@@ -72,6 +73,10 @@ bool ExecuteJavaScriptAndExtractString(TabContents* tab_contents,
std::string* result);
GURL GetTestUrl(const std::wstring& dir, const std::wstring file);
+
+// Creates an observer that waits for |download_manager| to report that it
+// has a total of |count| downloads that have been handles
+void WaitForDownloadCount(DownloadManager* download_manager, size_t count);
}
#endif // CHROME_TEST_UI_TEST_UTILS_H_
« no previous file with comments | « chrome/browser/renderer_host/render_view_host_manager_browsertest.cc ('k') | chrome/test/ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698