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 "content/shell/test_runner/test_runner.h" | 5 #include "content/shell/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 1876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1887 bool TestRunner::shouldDumpResourceResponseMIMETypes() const { | 1887 bool TestRunner::shouldDumpResourceResponseMIMETypes() const { |
1888 return test_is_running_ && | 1888 return test_is_running_ && |
1889 layout_test_runtime_flags_.dump_resource_response_mime_types(); | 1889 layout_test_runtime_flags_.dump_resource_response_mime_types(); |
1890 } | 1890 } |
1891 | 1891 |
1892 WebContentSettingsClient* TestRunner::GetWebContentSettings() const { | 1892 WebContentSettingsClient* TestRunner::GetWebContentSettings() const { |
1893 return mock_content_settings_client_.get(); | 1893 return mock_content_settings_client_.get(); |
1894 } | 1894 } |
1895 | 1895 |
1896 void TestRunner::InitializeWebViewWithMocks(blink::WebView* web_view) { | 1896 void TestRunner::InitializeWebViewWithMocks(blink::WebView* web_view) { |
1897 web_view->setSpellCheckClient(spellcheck_.get()); | 1897 web_view->setTextCheckClient(spellcheck_.get()); |
1898 web_view->setCredentialManagerClient(credential_manager_client_.get()); | 1898 web_view->setCredentialManagerClient(credential_manager_client_.get()); |
1899 } | 1899 } |
1900 | 1900 |
1901 bool TestRunner::shouldDumpStatusCallbacks() const { | 1901 bool TestRunner::shouldDumpStatusCallbacks() const { |
1902 return layout_test_runtime_flags_.dump_window_status_changes(); | 1902 return layout_test_runtime_flags_.dump_window_status_changes(); |
1903 } | 1903 } |
1904 | 1904 |
1905 bool TestRunner::shouldDumpSpellCheckCallbacks() const { | 1905 bool TestRunner::shouldDumpSpellCheckCallbacks() const { |
1906 return layout_test_runtime_flags_.dump_spell_check_callbacks(); | 1906 return layout_test_runtime_flags_.dump_spell_check_callbacks(); |
1907 } | 1907 } |
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2839 | 2839 |
2840 void TestRunner::NotifyDone() { | 2840 void TestRunner::NotifyDone() { |
2841 if (layout_test_runtime_flags_.wait_until_done() && !topLoadingFrame() && | 2841 if (layout_test_runtime_flags_.wait_until_done() && !topLoadingFrame() && |
2842 !will_navigate_ && work_queue_.is_empty()) | 2842 !will_navigate_ && work_queue_.is_empty()) |
2843 delegate_->TestFinished(); | 2843 delegate_->TestFinished(); |
2844 layout_test_runtime_flags_.set_wait_until_done(false); | 2844 layout_test_runtime_flags_.set_wait_until_done(false); |
2845 OnLayoutTestRuntimeFlagsChanged(); | 2845 OnLayoutTestRuntimeFlagsChanged(); |
2846 } | 2846 } |
2847 | 2847 |
2848 } // namespace test_runner | 2848 } // namespace test_runner |
OLD | NEW |