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

Unified Diff: chrome/browser/ui/webui/web_ui_browsertest.h

Issue 7576024: Provide ability for WebUIBrowserTests to run asynchronous tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added tests to verify pass-pass and pass-fail work. Created 9 years, 4 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/browser/ui/webui/web_ui_browsertest.h
diff --git a/chrome/browser/ui/webui/web_ui_browsertest.h b/chrome/browser/ui/webui/web_ui_browsertest.h
index 5e483e6d69f3c90ef6b8cca33f9275c31e659fe0..604ddc9c283ac2e7fe195aa6f1ded26c7dbefc63 100644
--- a/chrome/browser/ui/webui/web_ui_browsertest.h
+++ b/chrome/browser/ui/webui/web_ui_browsertest.h
@@ -95,6 +95,10 @@ class WebUIBrowserTest
const std::string& preload_test_fixture,
const std::string& preload_test_name);
+ // Runs a message loop until async test finishes. Returns the result of the
+ // test.
+ bool WaitForAsyncResult();
+
protected:
WebUIBrowserTest();
« no previous file with comments | « no previous file | chrome/browser/ui/webui/web_ui_browsertest.cc » ('j') | chrome/browser/ui/webui/web_ui_test_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698