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 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 blink::WebImage drag_image_; | 822 blink::WebImage drag_image_; |
818 | 823 |
819 base::WeakPtrFactory<TestRunner> weak_factory_; | 824 base::WeakPtrFactory<TestRunner> weak_factory_; |
820 | 825 |
821 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 826 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
822 }; | 827 }; |
823 | 828 |
824 } // namespace test_runner | 829 } // namespace test_runner |
825 | 830 |
826 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 831 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |