| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/renderer/layout_test/layout_test_content_renderer_client
.h" | 5 #include "content/shell/renderer/layout_test/layout_test_content_renderer_client
.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/debug/debugger.h" | 9 #include "base/debug/debugger.h" |
| 10 #include "components/test_runner/mock_credential_manager_client.h" | 10 #include "components/test_runner/mock_credential_manager_client.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 new LayoutTestRenderFrameObserver(render_frame); | 96 new LayoutTestRenderFrameObserver(render_frame); |
| 97 } | 97 } |
| 98 | 98 |
| 99 void LayoutTestContentRendererClient::RenderViewCreated( | 99 void LayoutTestContentRendererClient::RenderViewCreated( |
| 100 RenderView* render_view) { | 100 RenderView* render_view) { |
| 101 new ShellRenderViewObserver(render_view); | 101 new ShellRenderViewObserver(render_view); |
| 102 | 102 |
| 103 test_runner::WebTestProxyBase* proxy = GetWebTestProxyBase(render_view); | 103 test_runner::WebTestProxyBase* proxy = GetWebTestProxyBase(render_view); |
| 104 proxy->set_web_widget(render_view->GetWebView()); | 104 proxy->set_web_widget(render_view->GetWebView()); |
| 105 proxy->set_web_view(render_view->GetWebView()); | 105 proxy->set_web_view(render_view->GetWebView()); |
| 106 proxy->Reset(); |
| 106 proxy->SetSendWheelGestures(UseGestureBasedWheelScrolling()); | 107 proxy->SetSendWheelGestures(UseGestureBasedWheelScrolling()); |
| 107 | 108 |
| 108 BlinkTestRunner* test_runner = BlinkTestRunner::Get(render_view); | 109 BlinkTestRunner* test_runner = BlinkTestRunner::Get(render_view); |
| 109 test_runner->Reset(false /* for_new_test */); | 110 test_runner->Reset(false /* for_new_test */); |
| 110 | 111 |
| 111 LayoutTestRenderThreadObserver::GetInstance() | 112 LayoutTestRenderThreadObserver::GetInstance() |
| 112 ->test_interfaces() | 113 ->test_interfaces() |
| 113 ->TestRunner() | 114 ->TestRunner() |
| 114 ->InitializeWebViewWithMocks(render_view->GetWebView()); | 115 ->InitializeWebViewWithMocks(render_view->GetWebView()); |
| 115 | 116 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 LayoutTestContentRendererClient::CreateMediaStreamRendererFactory() { | 191 LayoutTestContentRendererClient::CreateMediaStreamRendererFactory() { |
| 191 #if defined(ENABLE_WEBRTC) | 192 #if defined(ENABLE_WEBRTC) |
| 192 return std::unique_ptr<MediaStreamRendererFactory>( | 193 return std::unique_ptr<MediaStreamRendererFactory>( |
| 193 new TestMediaStreamRendererFactory()); | 194 new TestMediaStreamRendererFactory()); |
| 194 #else | 195 #else |
| 195 return nullptr; | 196 return nullptr; |
| 196 #endif | 197 #endif |
| 197 } | 198 } |
| 198 | 199 |
| 199 } // namespace content | 200 } // namespace content |
| OLD | NEW |