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

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: add test 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
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 41da496b783b5864b45cc10c39ac953a08e46745..14e68ae4b376132e447dca920827de6228968601 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

Powered by Google App Engine
This is Rietveld 408576698