OLD | NEW |
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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 // Causes the beforeinstallprompt event to be sent to the renderer. | 587 // Causes the beforeinstallprompt event to be sent to the renderer. |
588 void DispatchBeforeInstallPromptEvent( | 588 void DispatchBeforeInstallPromptEvent( |
589 int request_id, | 589 int request_id, |
590 const std::vector<std::string>& event_platforms, | 590 const std::vector<std::string>& event_platforms, |
591 v8::Local<v8::Function> callback); | 591 v8::Local<v8::Function> callback); |
592 | 592 |
593 // Resolve the beforeinstallprompt event with the matching request id. | 593 // Resolve the beforeinstallprompt event with the matching request id. |
594 void ResolveBeforeInstallPromptPromise(int request_id, | 594 void ResolveBeforeInstallPromptPromise(int request_id, |
595 const std::string& platform); | 595 const std::string& platform); |
596 | 596 |
| 597 // Immediately run all pending idle tasks, including all pending |
| 598 // requestIdleCallback calls. Invoke the callback when all |
| 599 // idle tasks are complete. |
| 600 void RunIdleTasks(v8::Local<v8::Function> callback); |
| 601 |
597 // Calls setlocale(LC_ALL, ...) for a specified locale. | 602 // Calls setlocale(LC_ALL, ...) for a specified locale. |
598 // Resets between tests. | 603 // Resets between tests. |
599 void SetPOSIXLocale(const std::string& locale); | 604 void SetPOSIXLocale(const std::string& locale); |
600 | 605 |
601 // MIDI function to control permission handling. | 606 // MIDI function to control permission handling. |
602 void SetMIDIAccessorResult(bool result); | 607 void SetMIDIAccessorResult(bool result); |
603 | 608 |
604 // Simulates a click on a Web Notification. | 609 // Simulates a click on a Web Notification. |
605 void SimulateWebNotificationClick(const std::string& title, int action_index); | 610 void SimulateWebNotificationClick(const std::string& title, int action_index); |
606 | 611 |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 std::set<blink::WebView*> views_with_scheduled_animations_; | 833 std::set<blink::WebView*> views_with_scheduled_animations_; |
829 | 834 |
830 base::WeakPtrFactory<TestRunner> weak_factory_; | 835 base::WeakPtrFactory<TestRunner> weak_factory_; |
831 | 836 |
832 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 837 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
833 }; | 838 }; |
834 | 839 |
835 } // namespace test_runner | 840 } // namespace test_runner |
836 | 841 |
837 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 842 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |