Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Side by Side Diff: content/shell/test_runner/test_runner.cc

Issue 2797073002: Move WebTextCheckClient reference from WebViewImpl to WebLocalFrameImpl (Closed)
Patch Set: Spell my name correctly Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/shell/test_runner/test_runner.h ('k') | content/shell/test_runner/web_test_runner.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1875 matching lines...) Expand 10 before | Expand all | Expand 10 after
1886 1886
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 WebTextCheckClient* TestRunner::GetWebTextCheckClient() const {
1897 return spellcheck_.get();
1898 }
1899
1896 void TestRunner::InitializeWebViewWithMocks(blink::WebView* web_view) { 1900 void TestRunner::InitializeWebViewWithMocks(blink::WebView* web_view) {
1897 web_view->setTextCheckClient(spellcheck_.get());
1898 web_view->setCredentialManagerClient(credential_manager_client_.get()); 1901 web_view->setCredentialManagerClient(credential_manager_client_.get());
1899 } 1902 }
1900 1903
1901 bool TestRunner::shouldDumpStatusCallbacks() const { 1904 bool TestRunner::shouldDumpStatusCallbacks() const {
1902 return layout_test_runtime_flags_.dump_window_status_changes(); 1905 return layout_test_runtime_flags_.dump_window_status_changes();
1903 } 1906 }
1904 1907
1905 bool TestRunner::shouldDumpSpellCheckCallbacks() const { 1908 bool TestRunner::shouldDumpSpellCheckCallbacks() const {
1906 return layout_test_runtime_flags_.dump_spell_check_callbacks(); 1909 return layout_test_runtime_flags_.dump_spell_check_callbacks();
1907 } 1910 }
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
2839 2842
2840 void TestRunner::NotifyDone() { 2843 void TestRunner::NotifyDone() {
2841 if (layout_test_runtime_flags_.wait_until_done() && !topLoadingFrame() && 2844 if (layout_test_runtime_flags_.wait_until_done() && !topLoadingFrame() &&
2842 !will_navigate_ && work_queue_.is_empty()) 2845 !will_navigate_ && work_queue_.is_empty())
2843 delegate_->TestFinished(); 2846 delegate_->TestFinished();
2844 layout_test_runtime_flags_.set_wait_until_done(false); 2847 layout_test_runtime_flags_.set_wait_until_done(false);
2845 OnLayoutTestRuntimeFlagsChanged(); 2848 OnLayoutTestRuntimeFlagsChanged();
2846 } 2849 }
2847 2850
2848 } // namespace test_runner 2851 } // namespace test_runner
OLDNEW
« no previous file with comments | « content/shell/test_runner/test_runner.h ('k') | content/shell/test_runner/web_test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698