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 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 // Sets a flag causing the next call to DrawingBuffer::create to fail. | 679 // Sets a flag causing the next call to DrawingBuffer::create to fail. |
680 void ForceNextDrawingBufferCreationToFail(); | 680 void ForceNextDrawingBufferCreationToFail(); |
681 | 681 |
682 bool test_is_running_; | 682 bool test_is_running_; |
683 | 683 |
684 // When reset is called, go through and close all but the main test shell | 684 // When reset is called, go through and close all but the main test shell |
685 // window. By default, set to true but toggled to false using | 685 // window. By default, set to true but toggled to false using |
686 // setCloseRemainingWindowsWhenComplete(). | 686 // setCloseRemainingWindowsWhenComplete(). |
687 bool close_remaining_windows_; | 687 bool close_remaining_windows_; |
688 | 688 |
689 // If true, ends the test when a URL is loaded externally via | |
690 // WebFrameClient::loadURLExternally(). | |
691 bool wait_until_external_url_load_; | |
692 | |
693 WorkQueue work_queue_; | 689 WorkQueue work_queue_; |
694 | 690 |
695 // Bound variable to return the name of this platform (chromium). | 691 // Bound variable to return the name of this platform (chromium). |
696 std::string platform_name_; | 692 std::string platform_name_; |
697 | 693 |
698 // Bound variable to store the last tooltip text | 694 // Bound variable to store the last tooltip text |
699 std::string tooltip_text_; | 695 std::string tooltip_text_; |
700 | 696 |
701 // Bound variable counting the number of top URLs visited. | 697 // Bound variable counting the number of top URLs visited. |
702 int web_history_item_count_; | 698 int web_history_item_count_; |
703 | 699 |
704 // Bound variable to set whether postMessages should be intercepted or not | |
705 bool intercept_post_message_; | |
706 | |
707 // If true, the test_shell will write a descriptive line for each editing | |
708 // command. | |
709 bool dump_editting_callbacks_; | |
710 | |
711 // Flags controlling what content gets dumped as a layout text result. | 700 // Flags controlling what content gets dumped as a layout text result. |
712 LayoutTestRuntimeFlags layout_test_runtime_flags_; | 701 LayoutTestRuntimeFlags layout_test_runtime_flags_; |
713 | 702 |
714 // If true, the test_shell will print out the icon change notifications. | |
715 bool dump_icon_changes_; | |
716 | |
717 // If true, the test_shell will output a base64 encoded WAVE file. | 703 // If true, the test_shell will output a base64 encoded WAVE file. |
718 bool dump_as_audio_; | 704 bool dump_as_audio_; |
719 | 705 |
720 // If true, the test_shell will output a descriptive line for each frame | |
721 // load callback. | |
722 bool dump_frame_load_callbacks_; | |
723 | |
724 // If true, the test_shell will output a descriptive line for each | |
725 // PingLoader dispatched. | |
726 bool dump_ping_loader_callbacks_; | |
727 | |
728 // If true, the test_shell will output a line of the user gesture status | |
729 // text for some frame load callbacks. | |
730 bool dump_user_gesture_in_frame_load_callbacks_; | |
731 | |
732 // If true, output a message when the page title is changed. | |
733 bool dump_title_changes_; | |
734 | |
735 // If true, output a descriptive line each time WebViewClient::createView | 706 // If true, output a descriptive line each time WebViewClient::createView |
736 // is invoked. | 707 // is invoked. |
737 bool dump_create_view_; | 708 bool dump_create_view_; |
738 | 709 |
739 // If true, new windows can be opened via javascript or by plugins. By | 710 // If true, new windows can be opened via javascript or by plugins. By |
740 // default, set to false and can be toggled to true using | 711 // default, set to false and can be toggled to true using |
741 // setCanOpenWindows(). | 712 // setCanOpenWindows(). |
742 bool can_open_windows_; | 713 bool can_open_windows_; |
743 | 714 |
744 // If true, the test_shell will output a descriptive line for each resource | |
745 // load callback. | |
746 bool dump_resource_load_callbacks_; | |
747 | |
748 // If true, the test_shell will output the MIME type for each resource that | |
749 // was loaded. | |
750 bool dump_resource_response_mime_types_; | |
751 | |
752 // If true, the test_shell will dump all changes to window.status. | 715 // If true, the test_shell will dump all changes to window.status. |
753 bool dump_window_status_changes_; | 716 bool dump_window_status_changes_; |
754 | 717 |
755 // If true, the test_shell will output descriptive test for spellcheck | 718 // If true, the test_shell will output descriptive test for spellcheck |
756 // execution. | 719 // execution. |
757 bool dump_spell_check_callbacks_; | 720 bool dump_spell_check_callbacks_; |
758 | 721 |
759 // If true, the test_shell will produce a dump of the back forward list as | 722 // If true, the test_shell will produce a dump of the back forward list as |
760 // well. | 723 // well. |
761 bool dump_back_forward_list_; | 724 bool dump_back_forward_list_; |
762 | 725 |
763 // If true, content_shell will dump the default navigation policy passed to | |
764 // WebFrameClient::decidePolicyForNavigation. | |
765 bool dump_navigation_policy_; | |
766 | |
767 // If true, pixel dump will be produced as a series of 1px-tall, view-wide | 726 // If true, pixel dump will be produced as a series of 1px-tall, view-wide |
768 // individual paints over the height of the view. | 727 // individual paints over the height of the view. |
769 bool test_repaint_; | 728 bool test_repaint_; |
770 | 729 |
771 // If true and test_repaint_ is true as well, pixel dump will be produced as | 730 // If true and test_repaint_ is true as well, pixel dump will be produced as |
772 // a series of 1px-wide, view-tall paints across the width of the view. | 731 // a series of 1px-wide, view-tall paints across the width of the view. |
773 bool sweep_horizontally_; | 732 bool sweep_horizontally_; |
774 | 733 |
775 // If false, MockWebMIDIAccessor fails on startSession() for testing. | 734 // If false, MockWebMIDIAccessor fails on startSession() for testing. |
776 bool midi_accessor_result_; | 735 bool midi_accessor_result_; |
777 | 736 |
778 bool should_stay_on_page_after_handling_before_unload_; | |
779 | |
780 bool should_dump_resource_priorities_; | |
781 | |
782 bool has_custom_text_output_; | 737 bool has_custom_text_output_; |
783 std::string custom_text_output_; | 738 std::string custom_text_output_; |
784 | 739 |
785 std::set<std::string> http_headers_to_clear_; | 740 std::set<std::string> http_headers_to_clear_; |
786 | 741 |
787 // WAV audio data is stored here. | 742 // WAV audio data is stored here. |
788 std::vector<unsigned char> audio_data_; | 743 std::vector<unsigned char> audio_data_; |
789 | 744 |
790 TestInterfaces* test_interfaces_; | 745 TestInterfaces* test_interfaces_; |
791 WebTestDelegate* delegate_; | 746 WebTestDelegate* delegate_; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 std::set<blink::WebView*> views_with_scheduled_animations_; | 780 std::set<blink::WebView*> views_with_scheduled_animations_; |
826 | 781 |
827 base::WeakPtrFactory<TestRunner> weak_factory_; | 782 base::WeakPtrFactory<TestRunner> weak_factory_; |
828 | 783 |
829 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 784 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
830 }; | 785 }; |
831 | 786 |
832 } // namespace test_runner | 787 } // namespace test_runner |
833 | 788 |
834 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 789 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |