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 <deque> | 8 #include <deque> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 const std::string& platform); | 553 const std::string& platform); |
554 | 554 |
555 // Calls setlocale(LC_ALL, ...) for a specified locale. | 555 // Calls setlocale(LC_ALL, ...) for a specified locale. |
556 // Resets between tests. | 556 // Resets between tests. |
557 void SetPOSIXLocale(const std::string& locale); | 557 void SetPOSIXLocale(const std::string& locale); |
558 | 558 |
559 // MIDI function to control permission handling. | 559 // MIDI function to control permission handling. |
560 void SetMIDIAccessorResult(bool result); | 560 void SetMIDIAccessorResult(bool result); |
561 | 561 |
562 // Simulates a click on a Web Notification. | 562 // Simulates a click on a Web Notification. |
563 void SimulateWebNotificationClick(const std::string& title); | 563 void SimulateWebNotificationClick(const std::string& title, int action_index); |
564 | 564 |
565 // Speech recognition related functions. | 565 // Speech recognition related functions. |
566 void AddMockSpeechRecognitionResult(const std::string& transcript, | 566 void AddMockSpeechRecognitionResult(const std::string& transcript, |
567 double confidence); | 567 double confidence); |
568 void SetMockSpeechRecognitionError(const std::string& error, | 568 void SetMockSpeechRecognitionError(const std::string& error, |
569 const std::string& message); | 569 const std::string& message); |
570 bool WasMockSpeechRecognitionAborted(); | 570 bool WasMockSpeechRecognitionAborted(); |
571 | 571 |
572 // Credential Manager mock functions | 572 // Credential Manager mock functions |
573 // TODO(mkwst): Support FederatedCredential. | 573 // TODO(mkwst): Support FederatedCredential. |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 bool use_mock_theme_; | 817 bool use_mock_theme_; |
818 | 818 |
819 base::WeakPtrFactory<TestRunner> weak_factory_; | 819 base::WeakPtrFactory<TestRunner> weak_factory_; |
820 | 820 |
821 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 821 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
822 }; | 822 }; |
823 | 823 |
824 } // namespace test_runner | 824 } // namespace test_runner |
825 | 825 |
826 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 826 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |