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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 // Calls setlocale(LC_ALL, ...) for a specified locale. | 583 // Calls setlocale(LC_ALL, ...) for a specified locale. |
584 // Resets between tests. | 584 // Resets between tests. |
585 void SetPOSIXLocale(const std::string& locale); | 585 void SetPOSIXLocale(const std::string& locale); |
586 | 586 |
587 // MIDI function to control permission handling. | 587 // MIDI function to control permission handling. |
588 void SetMIDIAccessorResult(bool result); | 588 void SetMIDIAccessorResult(bool result); |
589 | 589 |
590 // Simulates a click on a Web Notification. | 590 // Simulates a click on a Web Notification. |
591 void SimulateWebNotificationClick(const std::string& title, int action_index); | 591 void SimulateWebNotificationClick(const std::string& title, int action_index); |
592 | 592 |
| 593 // Simulates closing a Web Notification. |
| 594 void SimulateWebNotificationClose(const std::string& title, bool by_user); |
| 595 |
593 // Speech recognition related functions. | 596 // Speech recognition related functions. |
594 void AddMockSpeechRecognitionResult(const std::string& transcript, | 597 void AddMockSpeechRecognitionResult(const std::string& transcript, |
595 double confidence); | 598 double confidence); |
596 void SetMockSpeechRecognitionError(const std::string& error, | 599 void SetMockSpeechRecognitionError(const std::string& error, |
597 const std::string& message); | 600 const std::string& message); |
598 bool WasMockSpeechRecognitionAborted(); | 601 bool WasMockSpeechRecognitionAborted(); |
599 | 602 |
600 // Credential Manager mock functions | 603 // Credential Manager mock functions |
601 // TODO(mkwst): Support FederatedCredential. | 604 // TODO(mkwst): Support FederatedCredential. |
602 void AddMockCredentialManagerResponse(const std::string& id, | 605 void AddMockCredentialManagerResponse(const std::string& id, |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 bool use_mock_theme_; | 847 bool use_mock_theme_; |
845 | 848 |
846 base::WeakPtrFactory<TestRunner> weak_factory_; | 849 base::WeakPtrFactory<TestRunner> weak_factory_; |
847 | 850 |
848 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 851 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
849 }; | 852 }; |
850 | 853 |
851 } // namespace test_runner | 854 } // namespace test_runner |
852 | 855 |
853 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 856 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |