| 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
| 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 6 #define CONTENT_SHELL_RENDERER_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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 void SetMIDISysexPermission(bool value); | 519 void SetMIDISysexPermission(bool value); |
| 520 | 520 |
| 521 // Grants permission for desktop notifications to an origin | 521 // Grants permission for desktop notifications to an origin |
| 522 void GrantWebNotificationPermission(const GURL& origin, | 522 void GrantWebNotificationPermission(const GURL& origin, |
| 523 bool permission_granted); | 523 bool permission_granted); |
| 524 | 524 |
| 525 // Clears all previously granted Web Notification permissions. | 525 // Clears all previously granted Web Notification permissions. |
| 526 void ClearWebNotificationPermissions(); | 526 void ClearWebNotificationPermissions(); |
| 527 | 527 |
| 528 // Simulates a click on a desktop notification. | 528 // Simulates a click on a desktop notification. |
| 529 bool SimulateWebNotificationClick(const std::string& value); | 529 void SimulateWebNotificationClick(const std::string& title); |
| 530 | 530 |
| 531 // Speech recognition related functions. | 531 // Speech recognition related functions. |
| 532 void AddMockSpeechRecognitionResult(const std::string& transcript, | 532 void AddMockSpeechRecognitionResult(const std::string& transcript, |
| 533 double confidence); | 533 double confidence); |
| 534 void SetMockSpeechRecognitionError(const std::string& error, | 534 void SetMockSpeechRecognitionError(const std::string& error, |
| 535 const std::string& message); | 535 const std::string& message); |
| 536 bool WasMockSpeechRecognitionAborted(); | 536 bool WasMockSpeechRecognitionAborted(); |
| 537 | 537 |
| 538 // Credential Manager mock functions | 538 // Credential Manager mock functions |
| 539 // TODO(mkwst): Support FederatedCredential. | 539 // TODO(mkwst): Support FederatedCredential. |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 bool use_mock_theme_; | 775 bool use_mock_theme_; |
| 776 | 776 |
| 777 base::WeakPtrFactory<TestRunner> weak_factory_; | 777 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 778 | 778 |
| 779 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 779 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 780 }; | 780 }; |
| 781 | 781 |
| 782 } // namespace content | 782 } // namespace content |
| 783 | 783 |
| 784 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 784 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |