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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 const std::string& value, | 540 const std::string& value, |
541 const GURL& origin, | 541 const GURL& origin, |
542 const GURL& embedding_origin); | 542 const GURL& embedding_origin); |
543 | 543 |
544 // Calls setlocale(LC_ALL, ...) for a specified locale. | 544 // Calls setlocale(LC_ALL, ...) for a specified locale. |
545 // Resets between tests. | 545 // Resets between tests. |
546 void SetPOSIXLocale(const std::string& locale); | 546 void SetPOSIXLocale(const std::string& locale); |
547 | 547 |
548 // MIDI function to control permission handling. | 548 // MIDI function to control permission handling. |
549 void SetMIDIAccessorResult(bool result); | 549 void SetMIDIAccessorResult(bool result); |
550 void SetMIDISysexPermission(bool value); | |
551 | 550 |
552 // Grants permission for desktop notifications to an origin | 551 // Grants permission for desktop notifications to an origin |
553 void GrantWebNotificationPermission(const GURL& origin, | 552 void GrantWebNotificationPermission(const GURL& origin, |
554 bool permission_granted); | 553 bool permission_granted); |
555 | 554 |
556 // Clears all previously granted Web Notification permissions. | 555 // Clears all previously granted Web Notification permissions. |
557 void ClearWebNotificationPermissions(); | 556 void ClearWebNotificationPermissions(); |
558 | 557 |
559 // Simulates a click on a Web Notification. | 558 // Simulates a click on a Web Notification. |
560 void SimulateWebNotificationClick(const std::string& title); | 559 void SimulateWebNotificationClick(const std::string& title); |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 bool use_mock_theme_; | 809 bool use_mock_theme_; |
811 | 810 |
812 base::WeakPtrFactory<TestRunner> weak_factory_; | 811 base::WeakPtrFactory<TestRunner> weak_factory_; |
813 | 812 |
814 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 813 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
815 }; | 814 }; |
816 | 815 |
817 } // namespace content | 816 } // namespace content |
818 | 817 |
819 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 818 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |