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

Unified Diff: components/test_runner/web_test_delegate.h

Issue 1832673002: Add testRunner.runIdleTasks() to force idle tasks to run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: rebase Created 4 years, 8 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 | « components/test_runner/test_runner.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/web_test_delegate.h
diff --git a/components/test_runner/web_test_delegate.h b/components/test_runner/web_test_delegate.h
index 4e62e8add4d78b0704451fb183a9b5c6127b51c0..8cf9138d0fbbb7c66361e4475b969d9759f08288 100644
--- a/components/test_runner/web_test_delegate.h
+++ b/components/test_runner/web_test_delegate.h
@@ -278,6 +278,9 @@ class WebTestDelegate {
const blink::WebPluginParams& params) = 0;
virtual float GetDeviceScaleFactorForTest() const = 0;
+
+ // Run all pending idle tasks, and then run callback.
+ virtual void RunIdleTasks(const base::Closure& callback) = 0;
};
} // namespace test_runner
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698