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

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

Issue 7645007: WebUI Testing: async support - global mocking, deferred runs, continued run. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test runAllActionsAsync with various combinations of arguments. 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 13b2c4096acdb3c0b527b00a2f21d71404b94ea1..79b77309b8cc5860184282841e483de1b3bc7411 100644
--- a/chrome/browser/ui/webui/web_ui_browsertest.h
+++ b/chrome/browser/ui/webui/web_ui_browsertest.h
@@ -59,7 +59,8 @@ class WebUIBrowserTest
const ConstValueVector& function_arguments);
// Runs a test fixture that may include calls to functions in test_api.js.
- bool RunJavascriptTestF(const std::string& test_fixture,
+ bool RunJavascriptTestF(bool is_async,
+ const std::string& test_fixture,
const std::string& test_name);
// Runs a test that may include calls to functions in test_api.js.
@@ -107,10 +108,16 @@ class WebUIBrowserTest
const std::string& preload_test_name);
protected:
+ // URL to dummy WebUI page for testing framework.
+ static const char kDummyURL[];
+
WebUIBrowserTest();
- // Setup test path.
- virtual void SetUpInProcessBrowserTestFixture();
+ // Set up test path & override for |kDummyURL|.
+ virtual void SetUpInProcessBrowserTestFixture() OVERRIDE;
+
+ // Tear down override for |kDummyURL|.
+ virtual void TearDownInProcessBrowserTestFixture() OVERRIDE;
// Returns a mock WebUI object under test (if any).
virtual WebUIMessageHandler* GetMockMessageHandler();

Powered by Google App Engine
This is Rietveld 408576698