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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 virtual void DispatchBeforeInstallPromptEvent( 271 virtual void DispatchBeforeInstallPromptEvent(
272 int request_id, 272 int request_id,
273 const std::vector<std::string>& event_platforms, 273 const std::vector<std::string>& event_platforms,
274 const base::Callback<void(bool)>& callback) = 0; 274 const base::Callback<void(bool)>& callback) = 0;
275 275
276 virtual blink::WebPlugin* CreatePluginPlaceholder( 276 virtual blink::WebPlugin* CreatePluginPlaceholder(
277 blink::WebLocalFrame* frame, 277 blink::WebLocalFrame* frame,
278 const blink::WebPluginParams& params) = 0; 278 const blink::WebPluginParams& params) = 0;
279 279
280 virtual float GetDeviceScaleFactorForTest() const = 0; 280 virtual float GetDeviceScaleFactorForTest() const = 0;
281
282 // Run all pending idle tasks, and then run callback.
283 virtual void RunIdleTasks(const base::Closure& callback) = 0;
281 }; 284 };
282 285
283 } // namespace test_runner 286 } // namespace test_runner
284 287
285 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 288 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_
OLDNEW
« 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