| 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 #include "components/test_runner/test_runner.h" | 5 #include "components/test_runner/test_runner.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1598 delegate_->UseUnfortunateSynchronousResizeMode(false); | 1598 delegate_->UseUnfortunateSynchronousResizeMode(false); |
| 1599 delegate_->DisableAutoResizeMode(WebSize()); | 1599 delegate_->DisableAutoResizeMode(WebSize()); |
| 1600 delegate_->DeleteAllCookies(); | 1600 delegate_->DeleteAllCookies(); |
| 1601 delegate_->SetBluetoothManualChooser(false); | 1601 delegate_->SetBluetoothManualChooser(false); |
| 1602 delegate_->ResetPermissions(); | 1602 delegate_->ResetPermissions(); |
| 1603 ResetDeviceLight(); | 1603 ResetDeviceLight(); |
| 1604 } | 1604 } |
| 1605 | 1605 |
| 1606 dump_as_audio_ = false; | 1606 dump_as_audio_ = false; |
| 1607 dump_create_view_ = false; | 1607 dump_create_view_ = false; |
| 1608 can_open_windows_ = false; | |
| 1609 dump_window_status_changes_ = false; | 1608 dump_window_status_changes_ = false; |
| 1610 dump_spell_check_callbacks_ = false; | 1609 dump_spell_check_callbacks_ = false; |
| 1611 dump_back_forward_list_ = false; | 1610 dump_back_forward_list_ = false; |
| 1612 test_repaint_ = false; | 1611 test_repaint_ = false; |
| 1613 sweep_horizontally_ = false; | 1612 sweep_horizontally_ = false; |
| 1614 midi_accessor_result_ = true; | 1613 midi_accessor_result_ = true; |
| 1615 has_custom_text_output_ = false; | 1614 has_custom_text_output_ = false; |
| 1616 custom_text_output_.clear(); | 1615 custom_text_output_.clear(); |
| 1617 | 1616 |
| 1618 http_headers_to_clear_.clear(); | 1617 http_headers_to_clear_.clear(); |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1775 | 1774 |
| 1776 bool TestRunner::shouldDumpIconChanges() const { | 1775 bool TestRunner::shouldDumpIconChanges() const { |
| 1777 return layout_test_runtime_flags_.dump_icon_changes(); | 1776 return layout_test_runtime_flags_.dump_icon_changes(); |
| 1778 } | 1777 } |
| 1779 | 1778 |
| 1780 bool TestRunner::shouldDumpCreateView() const { | 1779 bool TestRunner::shouldDumpCreateView() const { |
| 1781 return dump_create_view_; | 1780 return dump_create_view_; |
| 1782 } | 1781 } |
| 1783 | 1782 |
| 1784 bool TestRunner::canOpenWindows() const { | 1783 bool TestRunner::canOpenWindows() const { |
| 1785 return can_open_windows_; | 1784 return layout_test_runtime_flags_.can_open_windows(); |
| 1786 } | 1785 } |
| 1787 | 1786 |
| 1788 bool TestRunner::shouldDumpResourceLoadCallbacks() const { | 1787 bool TestRunner::shouldDumpResourceLoadCallbacks() const { |
| 1789 return test_is_running_ && | 1788 return test_is_running_ && |
| 1790 layout_test_runtime_flags_.dump_resource_load_callbacks(); | 1789 layout_test_runtime_flags_.dump_resource_load_callbacks(); |
| 1791 } | 1790 } |
| 1792 | 1791 |
| 1793 bool TestRunner::shouldDumpResourceResponseMIMETypes() const { | 1792 bool TestRunner::shouldDumpResourceResponseMIMETypes() const { |
| 1794 return test_is_running_ && | 1793 return test_is_running_ && |
| 1795 layout_test_runtime_flags_.dump_resource_response_mime_types(); | 1794 layout_test_runtime_flags_.dump_resource_response_mime_types(); |
| (...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2426 void TestRunner::DumpTitleChanges() { | 2425 void TestRunner::DumpTitleChanges() { |
| 2427 layout_test_runtime_flags_.set_dump_title_changes(true); | 2426 layout_test_runtime_flags_.set_dump_title_changes(true); |
| 2428 OnLayoutTestRuntimeFlagsChanged(); | 2427 OnLayoutTestRuntimeFlagsChanged(); |
| 2429 } | 2428 } |
| 2430 | 2429 |
| 2431 void TestRunner::DumpCreateView() { | 2430 void TestRunner::DumpCreateView() { |
| 2432 dump_create_view_ = true; | 2431 dump_create_view_ = true; |
| 2433 } | 2432 } |
| 2434 | 2433 |
| 2435 void TestRunner::SetCanOpenWindows() { | 2434 void TestRunner::SetCanOpenWindows() { |
| 2436 can_open_windows_ = true; | 2435 layout_test_runtime_flags_.set_can_open_windows(true); |
| 2436 OnLayoutTestRuntimeFlagsChanged(); |
| 2437 } | 2437 } |
| 2438 | 2438 |
| 2439 void TestRunner::DumpResourceLoadCallbacks() { | 2439 void TestRunner::DumpResourceLoadCallbacks() { |
| 2440 layout_test_runtime_flags_.set_dump_resource_load_callbacks(true); | 2440 layout_test_runtime_flags_.set_dump_resource_load_callbacks(true); |
| 2441 OnLayoutTestRuntimeFlagsChanged(); | 2441 OnLayoutTestRuntimeFlagsChanged(); |
| 2442 } | 2442 } |
| 2443 | 2443 |
| 2444 void TestRunner::DumpResourceResponseMIMETypes() { | 2444 void TestRunner::DumpResourceResponseMIMETypes() { |
| 2445 layout_test_runtime_flags_.set_dump_resource_response_mime_types(true); | 2445 layout_test_runtime_flags_.set_dump_resource_response_mime_types(true); |
| 2446 OnLayoutTestRuntimeFlagsChanged(); | 2446 OnLayoutTestRuntimeFlagsChanged(); |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2718 | 2718 |
| 2719 void TestRunner::NotifyDone() { | 2719 void TestRunner::NotifyDone() { |
| 2720 if (layout_test_runtime_flags_.wait_until_done() && !topLoadingFrame() && | 2720 if (layout_test_runtime_flags_.wait_until_done() && !topLoadingFrame() && |
| 2721 work_queue_.is_empty()) | 2721 work_queue_.is_empty()) |
| 2722 delegate_->TestFinished(); | 2722 delegate_->TestFinished(); |
| 2723 layout_test_runtime_flags_.set_wait_until_done(false); | 2723 layout_test_runtime_flags_.set_wait_until_done(false); |
| 2724 OnLayoutTestRuntimeFlagsChanged(); | 2724 OnLayoutTestRuntimeFlagsChanged(); |
| 2725 } | 2725 } |
| 2726 | 2726 |
| 2727 } // namespace test_runner | 2727 } // namespace test_runner |
| OLD | NEW |