| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 static bool first_test_runner = true; | 64 static bool first_test_runner = true; |
| 65 if (first_test_runner) { | 65 if (first_test_runner) { |
| 66 first_test_runner = false; | 66 first_test_runner = false; |
| 67 interfaces->SetDelegate(test_runner); | 67 interfaces->SetDelegate(test_runner); |
| 68 } | 68 } |
| 69 | 69 |
| 70 proxy->set_delegate(test_runner); | 70 proxy->set_delegate(test_runner); |
| 71 proxy->set_view_test_client(LayoutTestRenderThreadObserver::GetInstance() | 71 proxy->set_view_test_client(LayoutTestRenderThreadObserver::GetInstance() |
| 72 ->test_interfaces() | 72 ->test_interfaces() |
| 73 ->CreateWebViewTestClient(proxy)); | 73 ->CreateWebViewTestClient(proxy)); |
| 74 proxy->set_widget_test_client(LayoutTestRenderThreadObserver::GetInstance() |
| 75 ->test_interfaces() |
| 76 ->CreateWebWidgetTestClient(proxy)); |
| 74 proxy->SetInterfaces(interfaces); | 77 proxy->SetInterfaces(interfaces); |
| 75 } | 78 } |
| 76 | 79 |
| 77 void WebFrameTestProxyCreated(RenderFrame* render_frame, | 80 void WebFrameTestProxyCreated(RenderFrame* render_frame, |
| 78 test_runner::WebFrameTestProxyBase* proxy) { | 81 test_runner::WebFrameTestProxyBase* proxy) { |
| 79 test_runner::WebTestProxyBase* web_test_proxy_base = | 82 test_runner::WebTestProxyBase* web_test_proxy_base = |
| 80 GetWebTestProxyBase(render_frame->GetRenderView()); | 83 GetWebTestProxyBase(render_frame->GetRenderView()); |
| 81 proxy->set_test_client(LayoutTestRenderThreadObserver::GetInstance() | 84 proxy->set_test_client(LayoutTestRenderThreadObserver::GetInstance() |
| 82 ->test_interfaces() | 85 ->test_interfaces() |
| 83 ->CreateWebFrameTestClient(web_test_proxy_base)); | 86 ->CreateWebFrameTestClient(web_test_proxy_base)); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 LayoutTestContentRendererClient::CreateMediaStreamRendererFactory() { | 189 LayoutTestContentRendererClient::CreateMediaStreamRendererFactory() { |
| 187 #if defined(ENABLE_WEBRTC) | 190 #if defined(ENABLE_WEBRTC) |
| 188 return std::unique_ptr<MediaStreamRendererFactory>( | 191 return std::unique_ptr<MediaStreamRendererFactory>( |
| 189 new TestMediaStreamRendererFactory()); | 192 new TestMediaStreamRendererFactory()); |
| 190 #else | 193 #else |
| 191 return nullptr; | 194 return nullptr; |
| 192 #endif | 195 #endif |
| 193 } | 196 } |
| 194 | 197 |
| 195 } // namespace content | 198 } // namespace content |
| OLD | NEW |