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

Side by Side Diff: components/test_runner/test_runner.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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TEST_RUNNER_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 // Causes the beforeinstallprompt event to be sent to the renderer. 581 // Causes the beforeinstallprompt event to be sent to the renderer.
582 void DispatchBeforeInstallPromptEvent( 582 void DispatchBeforeInstallPromptEvent(
583 int request_id, 583 int request_id,
584 const std::vector<std::string>& event_platforms, 584 const std::vector<std::string>& event_platforms,
585 v8::Local<v8::Function> callback); 585 v8::Local<v8::Function> callback);
586 586
587 // Resolve the beforeinstallprompt event with the matching request id. 587 // Resolve the beforeinstallprompt event with the matching request id.
588 void ResolveBeforeInstallPromptPromise(int request_id, 588 void ResolveBeforeInstallPromptPromise(int request_id,
589 const std::string& platform); 589 const std::string& platform);
590 590
591 // Immediately run all pending idle tasks, including all pending
592 // requestIdleCallback calls. Invoke the callback when all
593 // idle tasks are complete.
594 void RunIdleTasks(v8::Local<v8::Function> callback);
595
591 // Calls setlocale(LC_ALL, ...) for a specified locale. 596 // Calls setlocale(LC_ALL, ...) for a specified locale.
592 // Resets between tests. 597 // Resets between tests.
593 void SetPOSIXLocale(const std::string& locale); 598 void SetPOSIXLocale(const std::string& locale);
594 599
595 // MIDI function to control permission handling. 600 // MIDI function to control permission handling.
596 void SetMIDIAccessorResult(bool result); 601 void SetMIDIAccessorResult(bool result);
597 602
598 // Simulates a click on a Web Notification. 603 // Simulates a click on a Web Notification.
599 void SimulateWebNotificationClick(const std::string& title, int action_index); 604 void SimulateWebNotificationClick(const std::string& title, int action_index);
600 605
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 std::set<blink::WebView*> views_with_scheduled_animations_; 820 std::set<blink::WebView*> views_with_scheduled_animations_;
816 821
817 base::WeakPtrFactory<TestRunner> weak_factory_; 822 base::WeakPtrFactory<TestRunner> weak_factory_;
818 823
819 DISALLOW_COPY_AND_ASSIGN(TestRunner); 824 DISALLOW_COPY_AND_ASSIGN(TestRunner);
820 }; 825 };
821 826
822 } // namespace test_runner 827 } // namespace test_runner
823 828
824 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 829 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « components/scheduler/test/renderer_scheduler_test_support.cc ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698