| 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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 const std::string& platform); | 522 const std::string& platform); |
| 523 | 523 |
| 524 // Calls setlocale(LC_ALL, ...) for a specified locale. | 524 // Calls setlocale(LC_ALL, ...) for a specified locale. |
| 525 // Resets between tests. | 525 // Resets between tests. |
| 526 void SetPOSIXLocale(const std::string& locale); | 526 void SetPOSIXLocale(const std::string& locale); |
| 527 | 527 |
| 528 // MIDI function to control permission handling. | 528 // MIDI function to control permission handling. |
| 529 void SetMIDIAccessorResult(bool result); | 529 void SetMIDIAccessorResult(bool result); |
| 530 | 530 |
| 531 // Simulates a click on a Web Notification. | 531 // Simulates a click on a Web Notification. |
| 532 void SimulateWebNotificationClick(const std::string& title, int action_index); | 532 void SimulateWebNotificationClick(const std::string& title, |
| 533 int action_index, |
| 534 const std::string& reply); |
| 533 | 535 |
| 534 // Simulates closing a Web Notification. | 536 // Simulates closing a Web Notification. |
| 535 void SimulateWebNotificationClose(const std::string& title, bool by_user); | 537 void SimulateWebNotificationClose(const std::string& title, bool by_user); |
| 536 | 538 |
| 537 // Speech recognition related functions. | 539 // Speech recognition related functions. |
| 538 void AddMockSpeechRecognitionResult(const std::string& transcript, | 540 void AddMockSpeechRecognitionResult(const std::string& transcript, |
| 539 double confidence); | 541 double confidence); |
| 540 void SetMockSpeechRecognitionError(const std::string& error, | 542 void SetMockSpeechRecognitionError(const std::string& error, |
| 541 const std::string& message); | 543 const std::string& message); |
| 542 | 544 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 blink::WebEffectiveConnectionType effective_connection_type_; | 658 blink::WebEffectiveConnectionType effective_connection_type_; |
| 657 | 659 |
| 658 base::WeakPtrFactory<TestRunner> weak_factory_; | 660 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 659 | 661 |
| 660 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 662 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 661 }; | 663 }; |
| 662 | 664 |
| 663 } // namespace test_runner | 665 } // namespace test_runner |
| 664 | 666 |
| 665 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 667 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |